public abstract class DicomDirectoryRecord extends Object implements Comparable, TreeNode
Modifier and Type | Field and Description |
---|---|
protected int |
integerValue |
protected String |
stringValue |
protected String |
uid |
Constructor and Description |
---|
DicomDirectoryRecord(DicomDirectoryRecord p,
AttributeList l) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(DicomDirectoryRecord child) |
void |
addSibling(DicomDirectoryRecord sibling) |
Enumeration |
children()
Returns the children of this node as an
Enumeration . |
int |
compareTo(Object o) |
protected int |
compareToByIntegerValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual) |
protected int |
compareToByStringValue(DicomDirectoryRecord record,
boolean mustBeSameObjectToBeEqual) |
boolean |
equals(Object o) |
boolean |
getAllowsChildren()
Always returns true, since children may always be added.
|
AttributeList |
getAttributeList() |
TreeNode |
getChildAt(int index)
Returns the child at the specified index.
|
int |
getChildCount()
Return the number of children that this node contains.
|
int |
getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
|
protected int |
getIntegerValue() |
TreeNode |
getParent()
Returns the parent node of this node.
|
protected String |
getStringValue() |
protected 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 String uid
protected String stringValue
protected int integerValue
public DicomDirectoryRecord(DicomDirectoryRecord p, AttributeList l)
p
- l
- public int compareTo(Object o)
compareTo
in interface Comparable
o
- protected abstract void makeStringValue()
protected abstract void makeIntegerValue()
protected String getStringValue()
protected int getIntegerValue()
protected final String getUIDForComparison()
protected final int compareToByStringValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
record
- protected final int compareToByIntegerValue(DicomDirectoryRecord record, boolean mustBeSameObjectToBeEqual)
record
- public TreeNode getParent()
Returns the parent node of this node.
public TreeNode getChildAt(int index)
Returns the child at the specified index.
getChildAt
in interface TreeNode
index
- the index of the child to be returned, numbered from 0TreeNode
at the specified indexpublic int getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
public boolean getAllowsChildren()
Always returns true, since children may always be added.
getAllowsChildren
in interface TreeNode
public boolean isLeaf()
Returns true if the receiver is a leaf (has no children).
public int getChildCount()
Return the number of children that this node contains.
getChildCount
in interface TreeNode
public Enumeration children()
Returns the children of this node as an Enumeration
.
public void addChild(DicomDirectoryRecord child)
child
- public void removeChild(DicomDirectoryRecord child)
child
- public void addSibling(DicomDirectoryRecord sibling) throws DicomException
sibling
- DicomException
public void setParent(DicomDirectoryRecord parent)
Set the parent node of this node.
parent
- public AttributeList getAttributeList()