NodeSubType - Node subclass.public interface NodeBuilder<NodeSubType extends Node>
Node within a Model which can be completed
dynamically.
This is a super-interface of ModuleBuilder and
ClassificationNodeBuilder.
There are similarities between the functionality provided by this interface and
that provided by MutableNode and its sub-interfaces
MutableClassificationNode and MutableModule. They both allow
new Node's to be created. But MutableNode and its sub-interfaces are related to
changing the configuration data for a Model, whereas the new Node's
created by this interface remain dynamic and not supported by underlying
configuration data.
Maybe these two functionalities could eventually be supported with only one set of interfaces. But for now, they are kept separate.
| Modifier and Type | Method and Description |
|---|---|
NodeSubType |
create() |
NodeSubType |
getPartial()
Returns the
Node, but partially created. |
NodeBuilder<NodeSubType> |
setClassificationNodeParent(ClassificationNode classificationNodeParent)
Sets the parent
ClassificationNode of the Node. |
NodeBuilder<NodeSubType> |
setName(String name)
Sets the name of the
Node. |
NodeBuilder<NodeSubType> |
setProperty(String name,
String value,
boolean indOnlyThisNode)
Sets a property of the
Node. |
NodeBuilder<NodeSubType> setClassificationNodeParent(ClassificationNode classificationNodeParent)
ClassificationNode of the Node.classificationNodeParent - Parent ClassificationNode.NodeBuilder<NodeSubType> setName(String name)
Node.name - Name.NodeBuilder<NodeSubType> setProperty(String name, String value, boolean indOnlyThisNode)
Node.name - Property name.value - Property value.indOnlyThisNode - Indicates if the property applies only to this Node, as
opposed to descendent Node's as well.NodeSubType getPartial()
Node, but partially created.
Useful to validate the NodeBuilder before officially creating the Node.
Node.NodeSubType create()
Copyright © 2015–2017 AZYVA INC.. All rights reserved.