|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openehr.rm.RMObject
org.openehr.rm.datatypes.basic.DataValue
org.openehr.rm.datatypes.text.DvText
org.openehr.rm.datatypes.text.DvCodedText
public final class DvCodedText
A text item whose value must be the rubric from a controlled terminology, the key (the code ) of which is the defining code attribute. Instances of this class are immutable.
| Constructor Summary | |
|---|---|
DvCodedText(java.lang.String value,
CodePhrase language,
CodePhrase charset,
CodePhrase definingCode,
TerminologyService terminologyService)
Constructs a Text by only required values |
|
DvCodedText(java.lang.String value,
java.util.List<TermMapping> mapping,
java.lang.String formatting,
DvURI hyperlink,
CodePhrase language,
CodePhrase charset,
CodePhrase definingCode,
TerminologyService terminologyService)
Constructs a CodedText of given components |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Two CodedText euqual if super class equals and has same value for defining code |
CodePhrase |
getDefiningCode()
Return defining code |
int |
hashCode()
Return a hash code of this CodedText |
java.lang.String |
toString()
Return string presentation of this CodedText |
| Methods inherited from class org.openehr.rm.datatypes.text.DvText |
|---|
getCharset, getFormatting, getHyperlink, getLanguage, getMappings, getValue, setCharset, setFormatting, setHyperlink, setLanguage, setMappings, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DvCodedText(java.lang.String value,
java.util.List<TermMapping> mapping,
java.lang.String formatting,
DvURI hyperlink,
CodePhrase language,
CodePhrase charset,
CodePhrase definingCode,
TerminologyService terminologyService)
value - mapping - formatting - hyperlink - language - charset - definingCode - not nullterminologyService - not null
java.lang.IllegalArgumentException - if
public DvCodedText(java.lang.String value,
CodePhrase language,
CodePhrase charset,
CodePhrase definingCode,
TerminologyService terminologyService)
value - language - charset - terminologyService - not null
java.lang.IllegalArgumentException - if value, language or charset
are empty or invalid| Method Detail |
|---|
public CodePhrase getDefiningCode()
public boolean equals(java.lang.Object o)
equals in class DvTexto -
public int hashCode()
hashCode in class DvTextpublic java.lang.String toString()
toString in class DvText
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||