Package uk.ac.starlink.datanode.nodes
Class EmptyDataNode
- java.lang.Object
-
- uk.ac.starlink.datanode.nodes.DefaultDataNode
-
- uk.ac.starlink.datanode.nodes.EmptyDataNode
-
- All Implemented Interfaces:
DataNode
public class EmptyDataNode extends DefaultDataNode
Blank node.
-
-
Constructor Summary
Constructors Constructor Description EmptyDataNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsChildren()The DefaultDataNode implementation of this method returns false.java.util.IteratorgetChildIterator()The DefaultDataNode implementation of this method throws UnsupportedOperationException (DefaultDataNode.allowsChildren()is false).java.lang.StringgetName()Gets the name of this object.java.lang.StringtoString()-
Methods inherited from class uk.ac.starlink.datanode.nodes.DefaultDataNode
beep, configureDetail, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getNodeTLA, getNodeType, getParentObject, getPathElement, getPathSeparator, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject
-
-
-
-
Method Detail
-
allowsChildren
public boolean allowsChildren()
Description copied from class:DefaultDataNodeThe DefaultDataNode implementation of this method returns false.- Specified by:
allowsChildrenin interfaceDataNode- Overrides:
allowsChildrenin classDefaultDataNode- Returns:
trueif the node is of a type which can have child nodes,falseotherwise
-
getChildIterator
public java.util.Iterator getChildIterator()
Description copied from class:DefaultDataNodeThe DefaultDataNode implementation of this method throws UnsupportedOperationException (DefaultDataNode.allowsChildren()is false).- Specified by:
getChildIteratorin interfaceDataNode- Overrides:
getChildIteratorin classDefaultDataNode- Returns:
- an
Iteratorover the children. Each object iterated over should be aDataNode. Behaviour is undefined if this method is called on an object for whichallowsChildrenreturnsfalse.
-
getName
public java.lang.String getName()
Description copied from interface:DataNodeGets the name of this object. This is an intrinsic property of the object.- Specified by:
getNamein interfaceDataNode- Overrides:
getNamein classDefaultDataNode- Returns:
- the name of the object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultDataNode
-
-