public class NodeConfig extends AbstractLockable<NodeConfig>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Constructor and Description |
---|
NodeConfig() |
Modifier and Type | Method and Description |
---|---|
org.json.simple.JSONObject |
asJSONObject(JSONOptions options)
Get the configuration information as a JSON object.
|
protected void |
checkValid(boolean forLock)
Name is required.
|
java.lang.String |
getName()
Get the name of the node.
|
void |
setName(java.lang.String name)
Set the name of the node.
|
checkLocked, isLocked, isValid, lock
public java.lang.String getName()
public void setName(java.lang.String name)
java.lang.IllegalStateException
- If this instance has been lockedprotected void checkValid(boolean forLock)
checkValid
in class AbstractLockable<NodeConfig>
forLock
- If TRUE, the instance will be locked after validationpublic org.json.simple.JSONObject asJSONObject(JSONOptions options)