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()
Returns the children of this node as an
Enumeration. |
int |
compareTo(java.lang.Object o) |
protected int |
compareToByIntegerValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual) |
protected int |
compareToByStringValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual) |
boolean |
equals(java.lang.Object o) |
boolean |
getAllowsChildren()
Always returns true, since children may always be added.
|
AttributeList |
getAttributeList() |
javax.swing.tree.TreeNode |
getChildAt(int index)
Returns the child at the specified index.
|
int |
getChildCount()
Return the number of children that this node contains.
|
int |
getIndex(javax.swing.tree.TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
|
protected int |
getIntegerValue() |
javax.swing.tree.TreeNode |
getParent()
Returns the parent node of this node.
|
protected java.lang.String |
getStringValue() |
protected java.lang.String |
getUIDForComparison() |
boolean |
isLeaf()
Returns true if the receiver is a leaf (has no children).
|
protected abstract void |
makeIntegerValue() |
protected abstract void |
makeStringValue() |
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 - l - public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - protected abstract void makeStringValue()
protected abstract void makeIntegerValue()
protected java.lang.String getStringValue()
protected int getIntegerValue()
protected final java.lang.String getUIDForComparison()
protected final int compareToByStringValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
record - protected final int compareToByIntegerValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
record - public javax.swing.tree.TreeNode getParent()
Returns the parent node of this node.
getParent in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int index)
Returns the child at the specified index.
getChildAt in interface javax.swing.tree.TreeNodeindex - the index of the child to be returned, numbered from 0TreeNode at the specified indexpublic int getIndex(javax.swing.tree.TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
getIndex in interface javax.swing.tree.TreeNodechild - the child to search for amongst this node's childrenpublic boolean getAllowsChildren()
Always returns true, since children may always be added.
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
Returns true if the receiver is a leaf (has no children).
isLeaf in interface javax.swing.tree.TreeNodepublic int getChildCount()
Return the number of children that this node contains.
getChildCount in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
Returns the children of this node as an Enumeration.
children in interface javax.swing.tree.TreeNodepublic void addChild(DicomDirectoryRecord child)
child - public void removeChild(DicomDirectoryRecord child)
child - public void addSibling(DicomDirectoryRecord sibling) throws DicomException
sibling - DicomExceptionpublic void setParent(DicomDirectoryRecord parent)
Set the parent node of this node.
parent - public AttributeList getAttributeList()