|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.DicomDictionaryBase
public abstract class DicomDictionaryBase
The DicomDictionaryBase class
is an abstract class for creating and accessing a dictionary of DICOM
attributes and associated information.
Defines methods for creating a dictionary of DICOM attributes and associated information, and implements methods for accessing that information.
| Field Summary | |
|---|---|
protected HashMap |
fullNameByTag
|
protected HashMap |
informationEntityByTag
|
protected HashMap |
nameByTag
|
protected HashMap |
tagByName
|
protected TreeSet |
tagList
|
protected HashMap |
valueRepresentationsByTag
|
| Constructor Summary | |
|---|---|
DicomDictionaryBase()
Instantiate a dictionary by calling all create methods of the concrete sub-class. |
|
| Method Summary | |
|---|---|
protected abstract void |
createFullNameByTag()
Concrete sub-classes implement this method to create a map of attribute full names from tags for each tag in the dictionary. |
protected abstract void |
createInformationEntityByTag()
Concrete sub-classes implement this method to create a map of information entities for each tag in the dictionary. |
protected abstract void |
createNameByTag()
Concrete sub-classes implement this method to create a map of attribute names from tags for each tag in the dictionary. |
protected abstract void |
createTagByName()
Concrete sub-classes implement this method to create a map of tags from attribute names for each tag in the dictionary. |
protected abstract void |
createTagList()
Concrete sub-classes implement this method to create a list of all tags in the dictionary. |
protected abstract void |
createValueRepresentationsByTag()
Concrete sub-classes implement this method to create a map of value representations for each tag in the dictionary. |
String |
getFullNameFromTag(AttributeTag tag)
Get the string full name of an attribute from its tag. |
InformationEntity |
getInformationEntityFromTag(AttributeTag tag)
Get the information entity (patient, study, and so on) of an attribute. |
String |
getNameFromTag(AttributeTag tag)
Get the string name of an attribute from its tag. |
AttributeTag |
getTagFromName(String name)
Get the tag of an attribute from its string name. |
Iterator |
getTagIterator()
Get an Iterator to iterate through every tag in the dictionary. |
byte[] |
getValueRepresentationFromTag(AttributeTag tag)
Get the value representation of an attribute. |
static void |
main(String[] arg)
Unit test. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TreeSet tagList
protected HashMap valueRepresentationsByTag
protected HashMap informationEntityByTag
protected HashMap nameByTag
protected HashMap tagByName
protected HashMap fullNameByTag
| Constructor Detail |
|---|
public DicomDictionaryBase()
Instantiate a dictionary by calling all create methods of the concrete sub-class.
| Method Detail |
|---|
protected abstract void createTagList()
Concrete sub-classes implement this method to create a list of all tags in the dictionary.
protected abstract void createValueRepresentationsByTag()
Concrete sub-classes implement this method to create a map of value representations for each tag in the dictionary.
protected abstract void createInformationEntityByTag()
Concrete sub-classes implement this method to create a map of information entities for each tag in the dictionary.
protected abstract void createTagByName()
Concrete sub-classes implement this method to create a map of tags from attribute names for each tag in the dictionary.
protected abstract void createNameByTag()
Concrete sub-classes implement this method to create a map of attribute names from tags for each tag in the dictionary.
protected abstract void createFullNameByTag()
Concrete sub-classes implement this method to create a map of attribute full names from tags for each tag in the dictionary.
public byte[] getValueRepresentationFromTag(AttributeTag tag)
Get the value representation of an attribute.
tag - the tag of the attribute
public InformationEntity getInformationEntityFromTag(AttributeTag tag)
Get the information entity (patient, study, and so on) of an attribute.
tag - the tag of the attribute
public AttributeTag getTagFromName(String name)
Get the tag of an attribute from its string name.
Though the DICOM standard does not formally define names to be used as keys for attributes, the convention used here is to use the name from the PS 3.6 Name field and remove spaces, apostrophes, capitalize first letters of words and so on to come up with a unique name for each attribute.
name - the string name of the attribute
public String getNameFromTag(AttributeTag tag)
Get the string name of an attribute from its tag.
tag - the tag of the attribute
getTagFromName(String)public String getFullNameFromTag(AttributeTag tag)
Get the string full name of an attribute from its tag.
The full name may not be unique, so do not use it as a key (e.g., "Group Length").
tag - the tag of the attribute
public Iterator getTagIterator()
Get an Iterator to iterate through every tag in the dictionary.
The order in which the dictionary attributes are returned is by ascending tag value.
AttributeTag.compareTo(Object)public static void main(String[] arg)
Unit test.
arg - ignored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||