public abstract class DicomDirectoryRecord
extends java.lang.Object
implements java.lang.Comparable, javax.swing.tree.TreeNode
| Modifier and Type | Field and Description |
|---|---|
protected int |
integerValue |
protected java.lang.String |
stringValue |
protected java.lang.String |
uid |
| Constructor and Description |
|---|
DicomDirectoryRecord(DicomDirectoryRecord p,
AttributeList l) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(DicomDirectoryRecord child) |
void |
addSibling(DicomDirectoryRecord sibling) |
java.util.Enumeration |
children() |
int |
compareTo(java.lang.Object o) |
protected int |
compareToByIntegerValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual)
Compares this object with the specified directory record for order based on integer value.
|
protected int |
compareToByStringValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual)
Compares this object with the specified directory record for order based on string value.
|
boolean |
equals(java.lang.Object o) |
boolean |
getAllowsChildren() |
AttributeList |
getAttributeList() |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getIndex(javax.swing.tree.TreeNode child) |
protected int |
getIntegerValue() |
javax.swing.tree.TreeNode |
getParent() |
protected java.lang.String |
getStringValue() |
protected java.lang.String |
getUIDForComparison() |
boolean |
isLeaf() |
protected abstract void |
makeIntegerValue()
Make the value that will be retured on a call to
getIntegerValue(). |
protected abstract void |
makeStringValue()
Make the value that will be retured on a call to
getStringValue(). |
void |
removeChild(DicomDirectoryRecord child) |
void |
setParent(DicomDirectoryRecord parent)
Set the parent node of this node.
|
protected java.lang.String uid
protected java.lang.String stringValue
protected int integerValue
public DicomDirectoryRecord(DicomDirectoryRecord p, AttributeList l)
p - directory recordl - list of attributespublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected abstract void makeStringValue()
Make the value that will be retured on a call to getStringValue().
protected abstract void makeIntegerValue()
Make the value that will be retured on a call to getIntegerValue().
protected java.lang.String getStringValue()
String describing this directory record containing identifiers, dates, etc.protected int getIntegerValue()
protected final java.lang.String getUIDForComparison()
protected final int compareToByStringValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
Compares this object with the specified directory record for order based on string value.
Considers whether same record type, same string value, and if so, orders by UID.
record - the directory record to compare withmustBeSameObjectToBeEqual - if true requires them to be the same Java object, not just the same UIDprotected final int compareToByIntegerValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
Compares this object with the specified directory record for order based on integer value.
Considers whether same record type, same integer value, and if so orders by string value, then by UID.
record - the directory record to compare withmustBeSameObjectToBeEqual - if true requires them to be the same Java object, not just the same UIDpublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode child)
getIndex in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic void addChild(DicomDirectoryRecord child)
child - child directory record to addpublic void removeChild(DicomDirectoryRecord child)
child - child directory record to removepublic void addSibling(DicomDirectoryRecord sibling) throws DicomException
sibling - sibling to addDicomException - if no parentpublic void setParent(DicomDirectoryRecord parent)
Set the parent node of this node.
parent - parent directory recordpublic AttributeList getAttributeList()