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 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,
String relationshipType,
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(String cvWanted,
String csdWanted)
Test if the coded concept name of the content item matches the specified code value and coding scheme designator.
|
String |
getConceptValue()
Get a string representation of the value of the concept.
|
String |
getReferencedContentItemIdentifier()
Get the Referenced Content Item Identifier, if present.
|
int[] |
getReferencedContentItemIdentifierArray()
Get the Referenced Content Item Identifier, if present.
|
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 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, String relationshipType, 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 String getConceptValue()
Get a string representation of the value of the concept.
Always returns an empty string for a ContentItemWithReference.
getConceptValue in class ContentItempublic 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 String toString()
Get a human-readable string representation of the content item.
public boolean contentItemNameMatchesCodeValueAndCodingSchemeDesignator(String cvWanted, String csdWanted)
contentItemNameMatchesCodeValueAndCodingSchemeDesignator in class ContentItemcsdWanted - cvWanted -