public class DDictBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.HashMap<java.lang.Integer,DDictEntry> |
dctList |
static int |
dUNDEFINED |
protected static java.util.HashMap<java.lang.String,java.lang.Integer> |
privateList |
static int |
tAE |
static int |
tAS |
static int |
tAT |
static int |
tCS |
static int |
tDA |
static int |
tDS |
static int |
tDT |
static int |
tFD |
static int |
tFL |
static int |
tIS |
static int |
tLO |
static int |
tLT |
static int |
tNONE |
static int |
tOB |
static int |
tOD |
static int |
tOF |
static int |
tOL |
static int |
tOW |
static int |
tOW_OB |
static int |
tPN |
static int |
tSH |
static int |
tSL |
static int |
tSQ |
static int |
tSS |
static int |
tST |
static int |
tTM |
static int |
tUC |
static int |
tUI |
static int |
tUL |
static int |
tUN |
static int |
tUNKNOWN
This constant is identical to tUN and is retained for backwards
compatability.
|
static int |
tUR |
static int |
tUS |
static int |
tUS_SS |
static int |
tUT |
Constructor and Description |
---|
DDictBase() |
Modifier and Type | Method and Description |
---|---|
static int |
addEntry(DDictEntry de)
adds a DDictEntry to the dictionary.
|
static java.util.Enumeration<DDictEntry> |
ddictEntries()
returns an enumeration of all entries in this dictionary.
|
static java.lang.String |
getDescription(int dct)
returns a short description of the specified tag.
|
static int |
getElement(int dct)
returns the element value of a tag for a DDict constant representing a tag.
|
static DDictEntry |
getEntry(int dct)
returns the DDictEntry instance for the specified tag.
|
static int |
getGroup(int dct)
returns the group value of a tag for a DDict constant representing a tag.
|
static int |
getTypeCode(int dct)
returns one of the DDictBase constants representing VR types (DDictBase.tXX
constants) for a tag also specified by a DDict constant.
|
static int |
getTypeCode(int group,
int element)
returns the VR type for a tag with specified group and element number.
|
static int |
getTypeCode(int group,
int element,
java.lang.String creator)
returns the VR type for a tag with the specified group and element number and creator.
|
static java.lang.String |
getTypeCodeName(int dct)
returns the two character type name (eg: US,SQ,...
|
static java.lang.String |
getTypeName(int type)
returns the two character String representing a value representation.
|
static int |
lookupDDict(int group,
int element)
returns the DDict constant representing the tag for
a tag with specified group and element value.
|
static int |
lookupDDict(int group,
int element,
java.lang.String creator)
returns the DDict constant or private constant generated with
addEntry(DDictEntry)
for the specified group and element. |
public static final int tUN
public static final int tUNKNOWN
public static final int tUL
public static final int tUI
public static final int tUS
public static final int tAE
public static final int tAT
public static final int tLO
public static final int tSH
public static final int tOB
public static final int tCS
public static final int tSQ
public static final int tDA
public static final int tTM
public static final int tST
public static final int tPN
public static final int tIS
public static final int tDS
public static final int tAS
public static final int tLT
public static final int tSL
public static final int tFD
public static final int tUS_SS
public static final int tOW_OB
public static final int tSS
public static final int tOW
public static final int tNONE
public static final int tFL
public static final int tUT
public static final int tDT
public static final int tOF
public static final int tOL
public static final int tOD
public static final int tUC
public static final int tUR
public static final int dUNDEFINED
protected static java.util.HashMap<java.lang.Integer,DDictEntry> dctList
protected static java.util.HashMap<java.lang.String,java.lang.Integer> privateList
public static java.lang.String getTypeName(int type)
type
- one of the tXX constants of DDictBasepublic static java.lang.String getTypeCodeName(int dct)
dct
- a DDict constant or key to a privately added DDict entry.public static int lookupDDict(int group, int element, java.lang.String creator)
addEntry(DDictEntry)
for the specified group and element. An optional creator can be specified.
If a non-null creator is specified and the group and element
correspond to private tag then this method returns the constant generated when registering the
private tag in the dictionary with the addEntry
method with the corresponding creator.
If a non-null creator is specified, it is sufficient to specify only the last 2 significant bytes of
the element value.
If the creator is null the method returns the constant representing the tag if it is a public tag present
in the dictionary or the constant generated registering the
private tag in the dictionary with the addEntry
method with creator null.group
- the group part of the specified tagelement
- the element part of the specified tagcreator
- a private creator StringaddEntry
public static int lookupDDict(int group, int element)
lookupDDict
method with null for the creator.group
- the group part of the tagelement
- the element part of the tagpublic static int getGroup(int dct)
dct
- the DDict constantpublic static int getElement(int dct)
dct
- the DDict constantpublic static int getTypeCode(int dct)
dct
- the DDict constantpublic static int getTypeCode(int group, int element)
lookupDDict
. If no DDict constant
can be found, it returns DDict.tUN except for group,element combination for private creator IDs
for which DDict.tLO is returned.group
- the group part of the tagelement
- the element part of the tagpublic static int getTypeCode(int group, int element, java.lang.String creator)
lookupDDict
. If no DDict constant
can be found, it returns DDict.tUN .group
- the group part of the tagelement
- the element part of the tagcreator
- a private creator stingpublic static java.lang.String getDescription(int dct)
dct
- the DDict constant or 'Undefined' if no DDictEntry was found in DDictpublic static java.util.Enumeration<DDictEntry> ddictEntries()
com.archimed.DDictEntry
.public static DDictEntry getEntry(int dct)
dct
- DDict constant or privately added constant.public static int addEntry(DDictEntry de) throws DicomException
de
- a DDictEntryDicomException
- is thrown if the tag corresponding to a public element already exists in DDict