|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.dicom.ValueRepresentation
public class ValueRepresentation
Utilities to support the concept of the DICOM Value Representation (VR), including two byte arrays for each VR, and tester methods that determine whether or not a particular two byte array is a particular type of VR.
| Field Summary | |
|---|---|
static byte[] |
AE
|
static ValueRepresentation |
AgeString
AGE STRING Value Representation |
static ValueRepresentation |
ApplicationEntity
APPLICATION ENTITY Value Representation |
static byte[] |
AS
|
static byte[] |
AT
|
static ValueRepresentation |
AttributeTag
ATTRIBUTE TAG Value Representation |
static ValueRepresentation |
CodeString
CODE STRING Value Representation |
static byte[] |
CS
|
static byte[] |
DA
|
static ValueRepresentation |
Date
DATE Value Representation |
static ValueRepresentation |
DateTime
DATE TIME Value Representation |
static ValueRepresentation |
DecimalString
DECIMAL STRING Value Representation |
static byte[] |
DS
|
static byte[] |
DT
|
static byte[] |
FD
|
static byte[] |
FL
|
static ValueRepresentation |
FloatingPointDouble
FLOATING POINT DOUBLE Value Representation |
static ValueRepresentation |
FloatingPointSingle
FLOATING POINT SINGLE Value Representation |
static ValueRepresentation |
IntegerString
INTGER STRING Value Representation |
static byte[] |
IS
|
static byte[] |
LO
|
static ValueRepresentation |
LongString
LONG STRING Value Representation |
static ValueRepresentation |
LongText
LONG TEXT Value Representation |
static byte[] |
LT
|
static byte[] |
OB
|
static byte[] |
OF
|
static ValueRepresentation |
OtherByteString
OTHER BYTE STRING Value Representation |
static ValueRepresentation |
OtherFloatString
OTHER FLOAT STRING Value Representation |
static ValueRepresentation |
OtherWordString
OTHER WORD STRING Value Representation |
static byte[] |
OW
|
static byte[] |
OX
|
static ValueRepresentation |
PersonName
PERSON NAME Value Representation |
static byte[] |
PN
|
static ValueRepresentation |
SequenceOfItems
SEQUENCE OF ITEMS Value Representation |
static byte[] |
SH
|
static ValueRepresentation |
ShortString
SHORT STRING Value Representation |
static ValueRepresentation |
ShortText
SHORT TEXT Value Representation |
static ValueRepresentation |
SignedLong
SIGNED LONG Value Representation |
static ValueRepresentation |
SignedShort
SIGNED SHORT Value Representation |
static byte[] |
SL
|
static byte[] |
SQ
|
static byte[] |
SS
|
static byte[] |
ST
|
static ValueRepresentation |
Time
TIME Value Representation |
static byte[] |
TM
|
static byte[] |
UI
|
static byte[] |
UL
|
static byte[] |
UN
|
static ValueRepresentation |
UniqueIdentifier
UNIQUE IDENTIFIER Value Representation |
static ValueRepresentation |
Unknown
UNKNOW Value Representation |
static ValueRepresentation |
UnlimitedText
UNLIMITED TEXT Value Representation |
static ValueRepresentation |
UnsignedLong
UNSIGNED LONG Value Representation |
static ValueRepresentation |
UnsignedShort
UNSIGNED SHORT Value Representation |
static byte[] |
US
|
static byte[] |
UT
|
static byte[] |
XO
|
static byte[] |
XS
|
| Constructor Summary | |
|---|---|
ValueRepresentation(byte[] aVR)
create a new VR from bytes |
|
ValueRepresentation(String aVR,
String aName)
creates a new VR from a VR's code and name |
|
| Method Summary | |
|---|---|
int |
compareTo(ValueRepresentation aValueRepresentation)
|
boolean |
equals(Object o)
|
static String |
getAsString(byte[] vr)
|
String |
getName()
|
static ValueRepresentation |
getValueRepresentation(byte[] aVr)
TODO |
static int |
getWordLengthOfValueAffectedByEndianness(byte[] vr)
Get the length of the "word" corresponding to an individual value for this VR, such as may be needed when swapping the endianness of values. |
int |
hashCode()
|
static boolean |
isAffectedBySpecificCharacterSet(byte[] vr)
|
static boolean |
isCodeStringVR(byte[] vr)
|
static boolean |
isDateTimeVR(byte[] vr)
|
static boolean |
isDateVR(byte[] vr)
|
static boolean |
isDecimalStringVR(byte[] vr)
Deprecated. |
static boolean |
isFloatDoubleVR(byte[] vr)
|
static boolean |
isFloatSingleVR(byte[] vr)
|
static boolean |
isIntegerStringVR(byte[] vr)
|
static boolean |
isLongStringVR(byte[] vr)
|
static boolean |
isLongTextVR(byte[] vr)
|
static boolean |
isOtherByteOrWordVR(byte[] vr)
|
static boolean |
isOtherByteVR(byte[] vr)
|
static boolean |
isOtherFloatVR(byte[] vr)
|
static boolean |
isOtherUnspecifiedVR(byte[] vr)
|
static boolean |
isOtherUnspecifiedVR(ValueRepresentation aVR)
|
static boolean |
isOtherWordVR(byte[] vr)
|
static boolean |
isPersonNameVR(byte[] vr)
|
static boolean |
isSequenceVR(byte[] vr)
|
static boolean |
isShortStringVR(byte[] vr)
|
static boolean |
isShortTextVR(byte[] vr)
|
static boolean |
isShortValueLengthVR(byte[] vr)
|
static boolean |
isSignedLongVR(byte[] vr)
|
static boolean |
isSignedShortVR(byte[] vr)
|
static boolean |
isTimeVR(byte[] vr)
|
static boolean |
isUniqueIdentifierVR(byte[] vr)
|
static boolean |
isUnknownVR(byte[] vr)
|
static boolean |
isUnlimitedTextVR(byte[] vr)
|
static boolean |
isUnsignedLongVR(byte[] vr)
|
static boolean |
isUnsignedShortVR(byte[] vr)
|
static boolean |
isUnspecifiedShortOrOtherWordVR(byte[] vr)
|
static boolean |
isUnspecifiedShortOrOtherWordVR(ValueRepresentation aVR)
|
static boolean |
isUnspecifiedShortVR(byte[] vr)
|
static boolean |
isUnspecifiedShortVR(ValueRepresentation aVR)
|
byte[] |
toBytes()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static byte[] AE
public static final ValueRepresentation ApplicationEntity
public static byte[] AS
public static final ValueRepresentation AgeString
public static byte[] AT
public static final ValueRepresentation AttributeTag
public static byte[] CS
public static final ValueRepresentation CodeString
public static byte[] DA
public static final ValueRepresentation Date
public static byte[] DT
public static final ValueRepresentation DateTime
public static byte[] DS
public static final ValueRepresentation DecimalString
public static byte[] FD
public static final ValueRepresentation FloatingPointDouble
public static byte[] FL
public static final ValueRepresentation FloatingPointSingle
public static final ValueRepresentation IntegerString
public static byte[] IS
public static byte[] LO
public static final ValueRepresentation LongString
public static final ValueRepresentation LongText
public static byte[] LT
public static byte[] OB
public static byte[] OF
public static final ValueRepresentation OtherByteString
public static final ValueRepresentation OtherFloatString
public static final ValueRepresentation OtherWordString
public static byte[] OW
public static byte[] OX
public static final ValueRepresentation PersonName
public static byte[] PN
public static final ValueRepresentation SequenceOfItems
public static byte[] SH
public static final ValueRepresentation ShortString
public static final ValueRepresentation ShortText
public static final ValueRepresentation SignedLong
public static final ValueRepresentation SignedShort
public static byte[] SL
public static byte[] SQ
public static byte[] SS
public static byte[] ST
public static final ValueRepresentation Time
public static byte[] TM
public static byte[] UI
public static byte[] UL
public static byte[] UN
public static final ValueRepresentation UniqueIdentifier
public static final ValueRepresentation Unknown
public static final ValueRepresentation UnlimitedText
public static final ValueRepresentation UnsignedLong
public static final ValueRepresentation UnsignedShort
public static byte[] US
public static byte[] UT
public static byte[] XO
public static byte[] XS
| Constructor Detail |
|---|
public ValueRepresentation(byte[] aVR)
aVR -
public ValueRepresentation(String aVR,
String aName)
aVR - aName - | Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic int compareTo(ValueRepresentation aValueRepresentation)
compareTo in interface Comparable<ValueRepresentation>public boolean equals(Object o)
equals in class Objectpublic String getName()
public byte[] toBytes()
public String toString()
toString in class Objectpublic static final String getAsString(byte[] vr)
vr -
public static ValueRepresentation getValueRepresentation(byte[] aVr)
throws Exception
Exceptionpublic static final int getWordLengthOfValueAffectedByEndianness(byte[] vr)
Get the length of the "word" corresponding to an individual value for this VR, such as may be needed when swapping the endianness of values.
vr - public static final boolean isAffectedBySpecificCharacterSet(byte[] vr)
vr - public static final boolean isCodeStringVR(byte[] vr)
vr - public static final boolean isDateTimeVR(byte[] vr)
vr - public static final boolean isDateVR(byte[] vr)
vr - public static final boolean isDecimalStringVR(byte[] vr)
vr - public static final boolean isFloatDoubleVR(byte[] vr)
vr - public static final boolean isFloatSingleVR(byte[] vr)
vr - public static final boolean isIntegerStringVR(byte[] vr)
vr - public static final boolean isLongStringVR(byte[] vr)
vr - public static final boolean isLongTextVR(byte[] vr)
vr - public static final boolean isOtherByteOrWordVR(byte[] vr)
vr - public static final boolean isOtherByteVR(byte[] vr)
vr - public static final boolean isOtherFloatVR(byte[] vr)
vr - public static final boolean isOtherUnspecifiedVR(byte[] vr)
vr - public static final boolean isOtherUnspecifiedVR(ValueRepresentation aVR)
aVR - public static final boolean isOtherWordVR(byte[] vr)
vr - public static final boolean isPersonNameVR(byte[] vr)
vr - public static final boolean isSequenceVR(byte[] vr)
vr - public static final boolean isShortStringVR(byte[] vr)
vr - public static final boolean isShortTextVR(byte[] vr)
vr - public static final boolean isShortValueLengthVR(byte[] vr)
vr - public static final boolean isSignedLongVR(byte[] vr)
vr - public static final boolean isSignedShortVR(byte[] vr)
vr - public static final boolean isTimeVR(byte[] vr)
vr - public static final boolean isUniqueIdentifierVR(byte[] vr)
vr - public static final boolean isUnknownVR(byte[] vr)
vr - public static final boolean isUnlimitedTextVR(byte[] vr)
vr - public static final boolean isUnsignedLongVR(byte[] vr)
vr - public static final boolean isUnsignedShortVR(byte[] vr)
vr - public static final boolean isUnspecifiedShortOrOtherWordVR(byte[] vr)
vr - public static final boolean isUnspecifiedShortOrOtherWordVR(ValueRepresentation aVR)
public static final boolean isUnspecifiedShortVR(byte[] vr)
vr - public static final boolean isUnspecifiedShortVR(ValueRepresentation aVR)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||