public class ConfigNode extends ConfigLeaf implements Node
ConfigLeaf with children| Constructor and Description |
|---|
ConfigNode()
Creates a new
ConfigNode without a name or comment. |
ConfigNode(java.lang.String name,
java.lang.String comment)
Creates a new
ConfigNode with the provided name and comment. |
ConfigNode(java.lang.String name,
java.lang.String comment,
boolean serializeSeparately)
Creates a new
ConfigNode. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<TreeItem> |
getItems()
Returns a set of this node's children.
|
boolean |
isSerializedSeparately()
Returns if this node should be serialised separately.
|
getComment, getName, toStringpublic ConfigNode(@Nullable
java.lang.String name,
@Nullable
java.lang.String comment,
boolean serializeSeparately)
ConfigNode.name - the name for this ConfigNodecomment - the comment for this ConfigNodeserializeSeparately - whether or not this node should be serialised separately. If true, it will be ignored during serialisation.ConfigNodepublic ConfigNode(@Nullable
java.lang.String name,
@Nullable
java.lang.String comment)
ConfigNode with the provided name and comment.
This node will not be serialised separately.
name - the name for this ConfigNodecomment - the comment for this ConfigNodeConfigNodepublic ConfigNode()
ConfigNode without a name or comment.
This node will not be serialised separately.
ConfigNode@Nonnull public java.util.Set<TreeItem> getItems()
Nodepublic boolean isSerializedSeparately()
If true, it should be ignored during serialisation.
isSerializedSeparately in interface Node