protected abstract class ContentItemFactory.StringContentItem extends ContentItemWithValue
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
stringValue |
conceptName, referencedContentItemIdentifier, valueType
observationDateTime, observationUID, relationshipType
Constructor and Description |
---|
StringContentItem(ContentItem parent,
AttributeList list,
AttributeTag tag) |
StringContentItem(ContentItem parent,
java.lang.String valueType,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
AttributeTag tagForValue,
java.lang.String stringValue,
java.lang.String observationDateTime,
java.lang.String observationUID) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
void |
setConceptValue(AttributeTag tagForValue,
java.lang.String stringValue) |
java.lang.String |
toString()
Get a human-readable string representation of the content item.
|
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, getConceptNameAndValue, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getValueType
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getObservationDateTime, getObservationUID, getParent, getParentAsContentItem, getPositionInTreeToUseAsReferencedContentItemIdentifier, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, isLeaf
public StringContentItem(ContentItem parent, AttributeList list, AttributeTag tag)
parent
- parent content item to add tolist
- list of attributes for this content itemtag
- tag of the attribute containing the string value of this content itempublic StringContentItem(ContentItem parent, java.lang.String valueType, java.lang.String relationshipType, CodedSequenceItem conceptName, AttributeTag tagForValue, java.lang.String stringValue, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
parent
- parent content item to add tovalueType
- the value typerelationshipType
- relationship typeconceptName
- coded concept nametagForValue
- tag of the attribute to encode the string value of this content itemstringValue
- string valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)DicomException
- if error in DICOM encodingpublic java.lang.String getConceptValue()
ContentItemWithValue
Get a string representation of the value of the concept.
The exact form of the returned string is specific to the type of ContentItem.
getConceptValue
in class ContentItemWithValue
public void setConceptValue(AttributeTag tagForValue, java.lang.String stringValue) throws DicomException
tagForValue
- tag of the attribute to encode the string value of this content itemstringValue
- if null, removes the valueDicomException
- if error in DICOM encodingpublic java.lang.String toString()
ContentItemWithValue
Get a human-readable string representation of the content item.
toString
in class ContentItemWithValue