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 java.lang.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,
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, getObservationDateTime, getObservationUID, getParent, getParentAsContentItem, getPositionInTreeToUseAsReferencedContentItemIdentifier, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, getValueType, isLeaf
protected 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
- identifier of reference content itemDicomException
- if error in DICOM encodingpublic boolean contentItemNameMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted, java.lang.String csdWanted)
ContentItem
contentItemNameMatchesCodeValueAndCodingSchemeDesignator
in class ContentItem
cvWanted
- the code value wantedcsdWanted
- the coding scheme designator wantedpublic 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 ContentItem
public java.lang.String getReferencedContentItemIdentifier()
Get the Referenced Content Item Identifier, if present.
getReferencedContentItemIdentifier
in class ContentItem
public int[] getReferencedContentItemIdentifierArray()
Get the Referenced Content Item Identifier, if present.
getReferencedContentItemIdentifierArray
in class ContentItem
public java.lang.String toString()
Get a human-readable string representation of the content item.
toString
in class java.lang.Object