public class MCitemIdentifer extends MCcontentItem
An ordered set of one or more integers that uniquely identifies the Target Content Item of the relationship. The root Content Item is referenced by a single value of 1. Each subsequent integer represents an ordinal position of a Content Item in the Content Sequence (0040,A730) in which it belongs. The number of values in this Multi-Value Attribute is exactly the number of relationships traversed in the SR content tree plus one.
| Constructor and Description |
|---|
MCitemIdentifer(java.util.List<java.lang.Long> id)
Constructs identifer from the list.
|
MCitemIdentifer(long[] id)
Constructs identifer from the array.
|
| Modifier and Type | Method and Description |
|---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
boolean |
equals(java.lang.Object obj)
Compares two item identifers.
|
java.lang.Long[] |
getId()
Returns an ordered set of one or more integers that uniquely identifies the Target Content Item.
|
void |
read(MCattributeSet source)
Reads the common attributes defined for all types of content items from the source attribute set.
|
java.lang.String |
toString()
Returns a string representation for the identifer formatted by specified delimiter ".".
|
java.lang.String |
toString(java.lang.String delimiter)
Returns a string representation for the identifer formatted by specified delimiter.
|
void |
write(MCattributeSet destination)
Writes the common attributes defined for all types of content items to the destination attribute set.
|
addChild, addChildAt, addReference, getChildAt, getChildren, getConceptName, getDataContext, getItemId, getObservationDateTime, getObservationUID, getParent, getPosition, getReferences, getRelationshipType, getRootItem, removeChild, removeChildAt, removeReference, removeReference, setConceptName, setDataContext, setObservationDataTime, setObservationUID, setRelationshipTypepublic MCitemIdentifer(long[] id)
id - The array containing identifers at each tree level.MCexception - if the id parameter is null or has a length less than 1.public MCitemIdentifer(java.util.List<java.lang.Long> id)
id - The list containing identifers at each tree level.MCexception - if the id parameter is null or has length less than 1.public MCcontentItemType contentItemType()
contentItemType in class MCcontentItemMCcontentItemType.CODE.public java.lang.Long[] getId()
public void read(MCattributeSet source)
The attributes include Referenced Content Item Identifier (0040,DB73). The attribute is set to be null in this object if not present in the source attribute set.
read in interface MCdataSetSerializableread in class MCcontentItemsource - Source attribute set.MCexception - If the source parameter is null.public void write(MCattributeSet destination)
write in interface MCdataSetSerializablewrite in class MCcontentItemdestination - Destination attribute set.MCexception - If the destination parameter is null or isn't an MCitem
object for a non-container content item.public java.lang.String toString(java.lang.String delimiter)
delimiter - Used to separate the identifiers of different levels in the document tree.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to compare with.