public class ContentItemWithReference extends ContentItem
An abstract class for representing a node in an internal representation of a structured reporting
tree (an instance of StructuredReport).
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
referencedContentItemIdentifier |
relationshipType| Modifier | Constructor and Description |
|---|---|
protected |
ContentItemWithReference(ContentItem p,
AttributeList l)
Construct a content item for a list of attributes, and add it as a child of the specified parent.
|
|
ContentItemWithReference(ContentItem p,
java.lang.String relationshipType,
java.lang.String referencedContentItemIdentifier)
Construct a content item of a specified type and relationship, creating a new
AttributeList, and add it as a child of the specified parent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentItemNameMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted,
java.lang.String csdWanted)
Test if the coded concept name of the content item matches the specified code value and coding scheme designator.
|
java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
java.lang.String |
getReferencedContentItemIdentifier()
Get the Referenced Content Item Identifier, if present.
|
int[] |
getReferencedContentItemIdentifierArray()
Get the Referenced Content Item Identifier, if present.
|
java.lang.String |
toString()
Get a human-readable string representation of the content item.
|
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getConceptName, getConceptNameAndValue, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getParent, getParentAsContentItem, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, getValueType, isLeafprotected java.lang.String referencedContentItemIdentifier
protected ContentItemWithReference(ContentItem p, AttributeList l)
Construct a content item for a list of attributes, and add it as a child of the specified parent.
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory.
p - the parentl - the list of attributespublic ContentItemWithReference(ContentItem p, java.lang.String relationshipType, java.lang.String referencedContentItemIdentifier) throws DicomException
Construct a content item of a specified type and relationship, creating a new AttributeList, and add it as a child of the specified parent.
p - the parentrelationshipType - added only if not null or zero lengthreferencedContentItemIdentifier - DicomExceptionpublic java.lang.String getConceptValue()
Get a string representation of the value of the concept.
Always returns an empty string for a ContentItemWithReference.
getConceptValue in class ContentItempublic java.lang.String getReferencedContentItemIdentifier()
Get the Referenced Content Item Identifier, if present.
getReferencedContentItemIdentifier in class ContentItempublic int[] getReferencedContentItemIdentifierArray()
Get the Referenced Content Item Identifier, if present.
getReferencedContentItemIdentifierArray in class ContentItempublic java.lang.String toString()
Get a human-readable string representation of the content item.
toString in class java.lang.Objectpublic boolean contentItemNameMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted,
java.lang.String csdWanted)
contentItemNameMatchesCodeValueAndCodingSchemeDesignator in class ContentItemcsdWanted - cvWanted -