protected static enum SimpleNode.State extends Enum<SimpleNode.State>
| Enum Constant and Description |
|---|
CONFIG
SimpleNode has been created using
SimpleModel.createMutableClassificationNodeRoot(),
SimpleClassificationNode.createChildMutableModule() or
SimpleClassificationNode.createChildMutableClassificationNode() and is finalized
(see CONFIG_NEW). |
CONFIG_NEW
SimpleNode has been created using
SimpleModel.createMutableClassificationNodeRoot(),
SimpleClassificationNode.createChildMutableModule() or
SimpleClassificationNode.createChildMutableClassificationNode() and is
not finalized, meaning that
MutableNode.setNodeConfigTransferObject(org.azyva.dragom.model.config.NodeConfigTransferObject, org.azyva.dragom.model.config.OptimisticLockHandle) has not been called. |
DELETED
SimpleNode has been deleted and cannot be used anymore.
|
DYNAMICALLY_BEING_COMPLETED
SimpleNode has been created internally using
SimpleModel.createClassificationNodeBuilder() or
SimpleModel.createModuleBuilder() and is not yet finalized, meaning that
NodeBuilder.create() or NodeBuilder.create() has
not been called. |
DYNAMICALLY_CREATED
SimpleNode has been created using
NodeBuilder.create() or
NodeBuilder.create(). |
| Modifier and Type | Method and Description |
|---|---|
static SimpleNode.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleNode.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleNode.State CONFIG_NEW
SimpleModel.createMutableClassificationNodeRoot(),
SimpleClassificationNode.createChildMutableModule() or
SimpleClassificationNode.createChildMutableClassificationNode() and is
not finalized, meaning that
MutableNode.setNodeConfigTransferObject(org.azyva.dragom.model.config.NodeConfigTransferObject, org.azyva.dragom.model.config.OptimisticLockHandle) has not been called.
In that state, only
SimpleNode.getNodeConfigTransferObject(org.azyva.dragom.model.config.OptimisticLockHandle) or the methods mentioned above
can be called.
When MutableNode.setNodeConfigTransferObject(org.azyva.dragom.model.config.NodeConfigTransferObject, org.azyva.dragom.model.config.OptimisticLockHandle) is called, the SimpleNode
transitions to the CONFIG state.
When the SimpleNode is created from ClassificationNodeConfig or
ModuleConfig, this state is not used.
public static final SimpleNode.State CONFIG
SimpleModel.createMutableClassificationNodeRoot(),
SimpleClassificationNode.createChildMutableModule() or
SimpleClassificationNode.createChildMutableClassificationNode() and is finalized
(see CONFIG_NEW).
This state is also used when the SimpleNode is a SimpleModule and has
been created based on ModuleConfig.
public static final SimpleNode.State DYNAMICALLY_BEING_COMPLETED
SimpleModel.createClassificationNodeBuilder() or
SimpleModel.createModuleBuilder() and is not yet finalized, meaning that
NodeBuilder.create() or NodeBuilder.create() has
not been called. These methods call SimpleNode.init() which performs the
state transition to DYNAMICALLY_CREATED.public static final SimpleNode.State DYNAMICALLY_CREATED
NodeBuilder.create() or
NodeBuilder.create().public static final SimpleNode.State DELETED
SimpleNode.delete() is called.public static SimpleNode.State[] values()
for (SimpleNode.State c : SimpleNode.State.values()) System.out.println(c);
public static SimpleNode.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015–2016 AZYVA INC.. All rights reserved.