|
||||||||||
| 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
public class DvText
The Text class represents any kind of atomic text item, coded or uncoded. Instances of this class are immutable.
| Constructor Summary | |
|---|---|
protected |
DvText()
|
|
DvText(java.lang.String value)
Constructs a DvText by required value |
|
DvText(java.lang.String value,
CodePhrase language,
CodePhrase charset,
TerminologyService terminologyService)
Constructs a DvText by string value, language and charset |
|
DvText(java.lang.String value,
java.util.List<TermMapping> mappings,
java.lang.String formatting,
DvURI hyperlink,
CodePhrase language,
CodePhrase charset,
TerminologyService terminologyService)
Constructs a Text from the given components. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if both has the same values for string value, language and charset, all optional attributes are not included in comparision |
CodePhrase |
getCharset()
Name of character set in which this value is encoded. |
java.lang.String |
getFormatting()
Returns formatting of this Text |
DvURI |
getHyperlink()
Returns hyperlink of this Text |
CodePhrase |
getLanguage()
Optional indicator of the localised language in which the value is written. |
java.util.List<TermMapping> |
getMappings()
Return mappings of this Text |
java.lang.String |
getValue()
Returns value of this Text |
int |
hashCode()
Returns a hash code of this Text |
protected void |
setCharset(CodePhrase charset)
|
protected void |
setFormatting(java.lang.String formatting)
|
protected void |
setHyperlink(DvURI hyperlink)
|
protected void |
setLanguage(CodePhrase language)
|
protected void |
setMappings(java.util.List<TermMapping> mappings)
|
protected void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
string form displayable for humans |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DvText(java.lang.String value,
java.util.List<TermMapping> mappings,
java.lang.String formatting,
DvURI hyperlink,
CodePhrase language,
CodePhrase charset,
TerminologyService terminologyService)
value - not null or empty or containsmappings - null if unspecifiedformatting - null if unspecifiedhyperlink - null if unspecifedlanguage - not null and valid language codecharset - not null and valid charset codeterminologyService - not null
java.lang.IllegalArgumentException - if any of the components
is invalid
public DvText(java.lang.String value,
CodePhrase language,
CodePhrase charset,
TerminologyService terminologyService)
value - language - charset - terminologyService -
java.lang.IllegalArgumentException - if value, language or charset
are empty or invalidpublic DvText(java.lang.String value)
value - protected DvText()
| Method Detail |
|---|
public java.lang.String toString()
toString in class DataValueStringpublic java.lang.String getValue()
public java.util.List<TermMapping> getMappings()
public java.lang.String getFormatting()
public DvURI getHyperlink()
public CodePhrase getLanguage()
public CodePhrase getCharset()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto -
public int hashCode()
hashCode in class java.lang.Objectprotected void setValue(java.lang.String value)
protected void setMappings(java.util.List<TermMapping> mappings)
protected void setFormatting(java.lang.String formatting)
protected void setHyperlink(DvURI hyperlink)
protected void setLanguage(CodePhrase language)
protected void setCharset(CodePhrase charset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||