public class MCdataElement
extends java.lang.Object
DICOM data elements may be "standard" (i.e. they are defined in the data dictionary) or "non-standard" (those not defined in the data dictionary).
Static methods and instances of this class can be used by multiple threads concurrently.
Modifier and Type | Method and Description |
---|---|
static MCdataElement |
getElement(int tag)
Retrieves the data dictionary element for the specified tag.
|
static MCdataElement |
getElement(MCtag tag)
Retrieves the data dictionary element for the specified tag.
|
java.lang.String |
getKeyword()
Gets a a keyword for this element based on the name of the data
element as described by section 6 part 6 in the DICOM standard.
|
java.lang.String |
getName()
Gets the element's name.
|
MCtag |
getTag()
Gets the element's identifying tag.
|
int |
getVmHigh()
Gets the maximum number of values for this element.
|
int |
getVmLow()
Gets the minimum number of values for this element.
|
MCvr |
getVr()
Gets the value representation for this element.
|
boolean |
isPrivateDataElement()
Tells if this is a private data element.
|
boolean |
isStandardElement()
Tells if this data element is defined in the data dictionary.
|
java.lang.String |
toString()
Returns a string representation of the Data Element.
|
public static MCdataElement getElement(int tag)
tag
- The tag number of the element.MCdataElement
instance.public static MCdataElement getElement(MCtag tag)
tag
- The tag of the element.MCdataElement
instance.MCexception
- If the tag parameter is invalid.public boolean isStandardElement()
true
if the data element is defined in the data dictionarypublic java.lang.String getName()
public MCtag getTag()
MCtag
object identifying this elementpublic int getVmHigh()
The returned value is 65536 if the element has no upper limit for the number of values.
public int getVmLow()
public MCvr getVr()
MCvr
object that identifies this element's DICOM Value Representationpublic boolean isPrivateDataElement()
true
if this element is identified by a private tag (i.e. a tag with a private group number).public java.lang.String getKeyword()
null
if the keyword can not be generated.public java.lang.String toString()
The string includes the data element's tag, name, Value Multiplicity, and Value Representation in the following format:
Tag: (xxxxxxxx) Name: xxxxxxxxxx VM: nnn-nnn VR: xxxx
toString
in class java.lang.Object