public class EmptyDataNode extends DefaultDataNode
Constructor and Description |
---|
EmptyDataNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren()
The
DefaultDataNode implementation of this method returns
false . |
Iterator |
getChildIterator()
The
DefaultDataNode implementation of this method throws
UnsupportedOperationException
(DefaultDataNode.allowsChildren() is false). |
String |
getName()
Gets the name of this object.
|
String |
toString() |
beep, configureDetail, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getNodeTLA, getNodeType, getParentObject, getPathElement, getPathSeparator, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject
public boolean allowsChildren()
DefaultDataNode
DefaultDataNode
implementation of this method returns
false
.allowsChildren
in interface DataNode
allowsChildren
in class DefaultDataNode
true
if the node is of a type which can have
child nodes, false
otherwisepublic Iterator getChildIterator()
DefaultDataNode
DefaultDataNode
implementation of this method throws
UnsupportedOperationException
(DefaultDataNode.allowsChildren()
is false).getChildIterator
in interface DataNode
getChildIterator
in class DefaultDataNode
Iterator
over the children. Each object
iterated over should be a DataNode
.
Behaviour is undefined if this method is called on an
object for which allowsChildren
returns
false
.public String getName()
DataNode
getName
in interface DataNode
getName
in class DefaultDataNode
public String toString()
toString
in class DefaultDataNode
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.