public interface CommentedConfigurationNode extends ConfigurationNode
NUMBER_DEF
Modifier and Type | Method and Description |
---|---|
CommentedConfigurationNode |
getAppendedNode() |
List<? extends CommentedConfigurationNode> |
getChildrenList()
Return an immutable copy of the list of children this node is aware of
|
Map<Object,? extends CommentedConfigurationNode> |
getChildrenMap()
Return an immutable copy of the mapping from key to node of every child this node is aware of
|
Optional<String> |
getComment()
Gets the current value for the comment.
|
CommentedConfigurationNode |
getNode(Object... path)
Gets the node at the given (relative) path, possibly traversing multiple levels of nodes
|
CommentedConfigurationNode |
getParent()
Returns the current parent for this node.
|
CommentedConfigurationNode |
mergeValuesFrom(ConfigurationNode other)
Set all the values from the given node that are not present in this node
to their values in the provided node.
|
CommentedConfigurationNode |
setComment(String comment)
Sets the comment for this configuration.
|
CommentedConfigurationNode |
setValue(Object value)
Set this node's value to the given value.
|
getBoolean, getBoolean, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getKey, getList, getList, getList, getList, getList, getList, getLong, getLong, getOptions, getPath, getString, getString, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, hasListChildren, hasMapChildren, isVirtual, removeChild, setValue
Optional<String> getComment()
CommentedConfigurationNode setComment(String comment)
comment
- The comment to set. Line breaks should be represented as LFs (\n)CommentedConfigurationNode getParent()
ConfigurationNode
getParent
in interface ConfigurationNode
List<? extends CommentedConfigurationNode> getChildrenList()
ConfigurationNode
getChildrenList
in interface ConfigurationNode
Map<Object,? extends CommentedConfigurationNode> getChildrenMap()
ConfigurationNode
getChildrenMap
in interface ConfigurationNode
CommentedConfigurationNode setValue(Object value)
ConfigurationNode
Collection
or a Map
, it will be unwrapped into
the appropriate configuration node structuresetValue
in interface ConfigurationNode
value
- The value to setCommentedConfigurationNode mergeValuesFrom(ConfigurationNode other)
ConfigurationNode
mergeValuesFrom
in interface ConfigurationNode
other
- The node to merge values fromCommentedConfigurationNode getAppendedNode()
getAppendedNode
in interface ConfigurationNode
CommentedConfigurationNode getNode(Object... path)
ConfigurationNode
getNode
in interface ConfigurationNode
path
- The path to fetch the node atCopyright © 2014–2017. All rights reserved.