Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
NAME_PATTERN
This pattern defines the rules for node names.
|
Constructor and Description |
---|
StdSimNode(java.lang.String name,
SimNode parentNode)
Creates a new model node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(SimNode newNode)
Adds a new PrintServer as a child ModelNode.
|
java.util.List<SimNode> |
getChildren()
Returns a read-only list of this print servers children.
|
BatchExportable |
getExportHandler() |
java.lang.String |
getFullName() |
java.lang.String |
getName() |
SimNode |
getParent() |
Printable |
getPrintHandler() |
void |
setExportHandler(BatchExportable exportHandler) |
void |
setPrintHandler(Printable printHandler) |
java.lang.String |
toString() |
public static final java.util.regex.Pattern NAME_PATTERN
public StdSimNode(java.lang.String name, SimNode parentNode)
name
- The name of the new node. It must be unique for nodes having the
same owner.parentNode
- The owner of this node. A null
value indicates the
creation of the root node.public SimNode getParent()
public final java.lang.String getName()
public final java.lang.String getFullName()
getFullName
in interface SimNode
public void addChild(SimNode newNode)
public java.util.List<SimNode> getChildren()
getChildren
in interface SimNode
public void setPrintHandler(Printable printHandler)
public Printable getPrintHandler()
getPrintHandler
in interface SimNode
public void setExportHandler(BatchExportable exportHandler)
public BatchExportable getExportHandler()
getExportHandler
in interface SimNode
public java.lang.String toString()
toString
in class java.lang.Object