public class MCtextItem extends MCcontentItem
TEXT Content Item is used to keep free text, narrative description of unlimited length. May also be used to provide a label or identifier value.
| Constructor and Description |
|---|
MCtextItem()
Default constructor
|
MCtextItem(java.lang.String text,
MCbasicCodedEntry conceptName)
Creates a new instance of the TEXT Content Item.
|
| Modifier and Type | Method and Description |
|---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
java.lang.String |
getText()
Gets the value of the TEXT content item.
|
void |
read(MCattributeSet source)
Reads the TEXT content item from the source attribute set.
|
void |
setText(java.lang.String value)
Sets the value of the TEXT content item.
|
void |
write(MCattributeSet destination)
Writes the TEXT content item to the destination attribute set.
|
addChild, addChildAt, addReference, getChildAt, getChildren, getConceptName, getDataContext, getItemId, getObservationDateTime, getObservationUID, getParent, getPosition, getReferences, getRelationshipType, getRootItem, removeChild, removeChildAt, removeReference, removeReference, setConceptName, setDataContext, setObservationDataTime, setObservationUID, setRelationshipTypepublic MCtextItem()
public MCtextItem(java.lang.String text,
MCbasicCodedEntry conceptName)
text - Textual expression of the concept.conceptName - Concept Name.public MCcontentItemType contentItemType()
contentItemType in class MCcontentItemMCcontentItemType.TEXT.public java.lang.String getText()
public void setText(java.lang.String value)
The text value may contain spaces, as well as multiple lines separated by either LF, CR, CR LF or LF CR, but otherwise no format control characters (such as horizontal or vertical tab and form feed) shall be present, even if permitted by the Value Representation of UT.
value - The value of the TEXT content item.public void read(MCattributeSet source)
read in interface MCdataSetSerializableread in class MCcontentItemsource - Source attribute set.MCexception - If the source parameter is null.public void write(MCattributeSet destination)
write in interface MCdataSetSerializablewrite in class MCcontentItemdestination - Destination attribute set.MCexception - If the destination parameter is null or
is NOT an MCitem object.