public class MCvr
extends java.lang.Object
DICOM defines a set of valid value representations for data elements encoded to the standard. The library creates instances of this class for every such Value Representation, which can be accessed through static fields of this class.
Instances of this class can be used by multiple threads concurrently.
Modifier and Type | Class and Description |
---|---|
static class |
MCvr.Code |
Modifier and Type | Field and Description |
---|---|
static MCvr |
AE
The AE value representation instance.
|
static MCvr |
AS
The AS value representation instance.
|
static MCvr |
AT
The AT value representation instance.
|
static MCvr |
CS
The CS value representation instance.
|
static MCvr |
DA
The DA value representation instance.
|
static MCvr |
DS
The DS value representation instance.
|
static MCvr |
DT
The DT value representation instance.
|
static MCvr |
FD
The FD value representation instance.
|
static MCvr |
FL
The FL value representation instance.
|
static MCvr |
IS
The IS value representation instance.
|
static MCvr |
LO
The LO value representation instance.
|
static MCvr |
LT
The LT value representation instance.
|
long |
maxLen
The maximum size of one value of this VR.
|
static MCvr |
OB
The OB value representation instance.
|
static MCvr |
OD
The OD value representation instance.
|
static MCvr |
OF
The OF value representation instance.
|
static MCvr |
OL
The OL value representation instance.
|
static MCvr |
OV
The OV value representation instance.
|
static MCvr |
OW
The OW value representation instance.
|
static MCvr |
PN
The PN value representation instance.
|
static MCvr |
SH
The SH value representation instance.
|
static MCvr |
SL
The SL value representation instance.
|
static MCvr |
SQ
The SQ value representation instance.
|
static MCvr |
SS
The SS value representation instance.
|
static MCvr |
ST
The ST value representation instance.
|
static MCvr |
SV
The SV value representation instance.
|
static MCvr |
TM
The TM value representation instance.
|
static MCvr |
UC
The UC value representation instance
|
static MCvr |
UI
The UI value representation instance.
|
static MCvr |
UL
The UL value representation instance.
|
static MCvr |
UN
The UN value representation instance.
|
static MCvr |
UR
The UR value representation instance.
|
static MCvr |
US
The US value representation instance.
|
static MCvr |
UT
The UT value representation instance.
|
static MCvr |
UV
The UV value representation instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The two character DICOM name by which this VR is known.
|
java.lang.Class<?> |
getValueType()
The Java type used by the toolkit for attribute values of this value representation.
|
static MCvr |
getVRByName(java.lang.String vrName)
Gets the value representation instance for the specified name.
|
boolean |
isBinary()
Determines whether this Value Representation is for a binary value.
|
boolean |
isBulk()
Tells whether this Value Representation is for binary bulk values.
|
boolean |
isBulkDataUri()
Tells whether the Value Representation is for a BulkDataURI.
|
boolean |
isCharsetSpecific()
Determines whether this Value Representation is for text value whose encoding depends on the
value of the Specific Character Set attribute.
|
boolean |
isFloatingPoint()
Determines whether this Value Representation is for a binary floating point value.
|
boolean |
isMultiValued()
Determines whether this Value Representation is for data elements that can have multiple values.
|
boolean |
isMultiValuedBinary()
Determines whether this Value Representation is for data elements with binary values
with multiple values.
|
boolean |
isMultiValuedInteger()
Determines whether this Value Representation is for an integer value.
|
boolean |
isMultiValuedText()
Determines whether this Value Representation is for data elements with text values that can
have multiple values.
|
boolean |
isSingleValued()
Determines whether this Value Representation is for data elements that can not have more
than one value.
|
boolean |
isSingleValuedBinary()
Determines whether this Value Representation is for data elements with binary values
that can not have more than one value.
|
boolean |
isSingleValuedText()
Determines whether this Value Representation is for data elements with text values
that can not have more than one value.
|
boolean |
isText()
Determines whether this Value Representation is for data elements with text values
that can not have more than one value.
|
java.lang.String |
toString() |
public static final MCvr AE
public static final MCvr AS
public static final MCvr CS
public static final MCvr DA
public static final MCvr DS
public static final MCvr DT
public static final MCvr IS
public static final MCvr LO
public static final MCvr LT
public static final MCvr PN
public static final MCvr SH
public static final MCvr ST
public static final MCvr TM
public static final MCvr UC
public static final MCvr UR
public static final MCvr UT
public static final MCvr UI
public static final MCvr SS
public static final MCvr US
public static final MCvr AT
public static final MCvr SL
public static final MCvr UL
public static final MCvr SV
public static final MCvr UV
public static final MCvr FL
public static final MCvr FD
public static final MCvr UN
public static final MCvr OB
public static final MCvr OW
public static final MCvr OV
public static final MCvr OL
public static final MCvr OD
public static final MCvr OF
public static final MCvr SQ
public final long maxLen
This value is Integer.MAX_VALUE
if the size is unlimited.
If this value representation is character set specific the size is given in characters, otherwise the size is in bytes.
public java.lang.String getName()
public java.lang.Class<?> getValueType()
public static MCvr getVRByName(java.lang.String vrName)
vrName
- The two character DICOM name of the requested value representation.null
if the specified name
is not a known value representation name.public java.lang.String toString()
toString
in class java.lang.Object
public boolean isBinary()
true
for the following Value Representations: SS, US, AT, SL, UL, SV, UV,
FL, FD, UN, OB, OW, OV, OL, OD, OFpublic boolean isFloatingPoint()
true
for the following Value Representations: FL, FDpublic boolean isMultiValuedBinary()
true
for the following Value Representations: SS, US, AT, SL, UL, SV, UV, FL, FD.public boolean isMultiValuedInteger()
true
for the following Value Representations: SS, US, AT, SL, UL, SV, UV.public boolean isMultiValuedText()
true
for the following Value Representations: AE, AS, CS, DA, DS, DT,
IS, LO, PN, SH, TM, UI.public boolean isMultiValued()
true
for the following Value Representations: SQ, SS, US, AT, SL, UL, SV, UV, FL,
FD, AS, CS, DA, DS, DT, IS, LO, PN, SH, TM, UI.public boolean isSingleValuedBinary()
true
for the following Value Representations: UN, OB, OW, OV, OL, OD, OF.public boolean isSingleValuedText()
true
for the following Value Representations: LT, ST, UR, UT.public boolean isSingleValued()
true
for the following Value Representations: UN, OB, OW, OV, OL, OD, OF, LT, ST, UR, UR, UT.public boolean isText()
true
for the following Value Representations: AE, AS, CS, DA,
DS, DT, IS, LO, PN, SH, TM, UI, LT, ST, UR, UT.public boolean isCharsetSpecific()
true
for the following Value Representations: LO, LT, SH, ST, UT, PN.public boolean isBulk()
true
for the following Value Representations: OB, OW, OV, OL, OD, OF, UN.public boolean isBulkDataUri()
true
for the following Value Representations:
FL, FD, IS, LT, OB, OL, OD, OF, OW, OV, SL, SS, ST, UL, SV, UV, UN, US, or UT