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.
ContentItem,
ContentItemFactory,
ContentItemWithValue,
StructuredReport,
StructuredReportBrowser| Modifier and Type | Field and Description |
|---|---|
protected String |
referencedContentItemIdentifier |
observationDateTime, observationUID, 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, getObservationDateTime, getObservationUID, getParent, getParentAsContentItem, getPositionInTreeToUseAsReferencedContentItemIdentifier, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, getValueType, isLeaf, walkTreeBuldingStringprotected 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 - identifier of reference content itemDicomException - if error in DICOM encodingpublic boolean contentItemNameMatchesCodeValueAndCodingSchemeDesignator(String cvWanted, String csdWanted)
ContentItemcontentItemNameMatchesCodeValueAndCodingSchemeDesignator in class ContentItemcvWanted - the code value wantedcsdWanted - the coding scheme designator wantedpublic 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.
toString in class ContentItem