|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.io.directory.DicomDirectoryItem
public abstract class DicomDirectoryItem
base class for DICOMDIR's items
| Constructor Summary | |
|---|---|
DicomDirectoryItem(DicomDirectoryItem p,
DataSet l)
|
|
DicomDirectoryItem(DirectoryRecordType aDirectoryRecordType,
DicomDirectoryItem p,
DataSet l)
|
|
| Method Summary | |
|---|---|
void |
addChild(DicomDirectoryItem child)
|
void |
addSibling(DicomDirectoryItem sibling)
|
Enumeration |
children()
Returns the children of this node as an Enumeration. |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
boolean |
getAllowsChildren()
Always returns true, since children may always be added. |
TreeNode |
getChildAt(int index)
Returns the child at the specified index. |
int |
getChildCount()
Return the number of children that this node contains. |
DataSet |
getDataSet()
|
int |
getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present. |
TreeNode |
getParent()
return the parent node |
DirectoryRecordType |
getType()
|
boolean |
isLeaf()
Returns true if the receiver is a leaf (has no children). |
void |
removeChild(DicomDirectoryItem child)
|
void |
setUID(String uid)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DicomDirectoryItem(DicomDirectoryItem p,
DataSet l)
p - l -
public DicomDirectoryItem(DirectoryRecordType aDirectoryRecordType,
DicomDirectoryItem p,
DataSet l)
p - l - | Method Detail |
|---|
public void addChild(DicomDirectoryItem child)
child -
public void addSibling(DicomDirectoryItem sibling)
throws DicomException
sibling -
DicomExceptionpublic void setUID(String uid)
public Enumeration children()
Returns the children of this node as an
Enumeration.
children in interface TreeNodepublic int compareTo(Object o)
compareTo in interface Comparableo - public boolean equals(Object o)
equals in class Objecto - public boolean getAllowsChildren()
Always returns true, since children may always be added.
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int index)
Returns the child at the specified index.
getChildAt in interface TreeNodeindex - the index of the child to be returned, numbered from 0
TreeNode at the specified indexpublic int getChildCount()
Return the number of children that this node contains.
getChildCount in interface TreeNodepublic DataSet getDataSet()
public int getIndex(TreeNode child)
Returns the index of the specified child from amongst this node's children, if present.
getIndex in interface TreeNodechild - the child to search for amongst this node's children
public TreeNode getParent()
getParent in interface TreeNodepublic DirectoryRecordType getType()
public boolean isLeaf()
Returns true if the receiver is a leaf (has no children).
isLeaf in interface TreeNodepublic void removeChild(DicomDirectoryItem child)
child - public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||