public class SimpleCommentedConfigurationNode extends SimpleConfigurationNode implements CommentedConfigurationNode
NUMBER_DEF| Modifier | Constructor and Description |
|---|---|
protected |
SimpleCommentedConfigurationNode(Object path,
SimpleConfigurationNode parent,
ConfigurationOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected SimpleCommentedConfigurationNode |
createNode(Object path) |
boolean |
equals(Object o) |
SimpleCommentedConfigurationNode |
getAppendedNode() |
List<? extends SimpleCommentedConfigurationNode> |
getChildrenList()
Return an immutable copy of the list of children this node is aware of
|
Map<Object,? extends SimpleCommentedConfigurationNode> |
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.
|
SimpleCommentedConfigurationNode |
getNode(Object... path)
Gets the node at the given (relative) path, possibly traversing multiple levels of nodes
|
SimpleCommentedConfigurationNode |
getParent()
Returns the current parent for this node.
|
int |
hashCode() |
SimpleCommentedConfigurationNode |
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.
|
static SimpleCommentedConfigurationNode |
root() |
static SimpleCommentedConfigurationNode |
root(ConfigurationOptions options) |
SimpleCommentedConfigurationNode |
setComment(String comment)
Sets the comment for this configuration.
|
SimpleCommentedConfigurationNode |
setValue(Object value)
Set this node's value to the given value.
|
String |
toString() |
attachChild, attachIfNecessary, clear, getChild, getKey, getList, getList, getList, getList, getList, getOptions, getPath, getValue, getValue, getValue, getValue, getValue, getValue, hasListChildren, hasMapChildren, isVirtual, removeChildclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBoolean, 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, setValueprotected SimpleCommentedConfigurationNode(Object path, SimpleConfigurationNode parent, ConfigurationOptions options)
public static SimpleCommentedConfigurationNode root()
public static SimpleCommentedConfigurationNode root(ConfigurationOptions options)
public Optional<String> getComment()
CommentedConfigurationNodegetComment in interface CommentedConfigurationNodepublic SimpleCommentedConfigurationNode setComment(String comment)
CommentedConfigurationNodesetComment in interface CommentedConfigurationNodecomment - The comment to set. Line breaks should be represented as LFs (\n)public SimpleCommentedConfigurationNode getParent()
ConfigurationNodegetParent in interface CommentedConfigurationNodegetParent in interface ConfigurationNodegetParent in class SimpleConfigurationNodeprotected SimpleCommentedConfigurationNode createNode(Object path)
createNode in class SimpleConfigurationNodepublic SimpleCommentedConfigurationNode setValue(Object value)
ConfigurationNodeCollection or a Map, it will be unwrapped into
the appropriate configuration node structuresetValue in interface CommentedConfigurationNodesetValue in interface ConfigurationNodesetValue in class SimpleConfigurationNodevalue - The value to setpublic SimpleCommentedConfigurationNode mergeValuesFrom(ConfigurationNode other)
ConfigurationNodemergeValuesFrom in interface CommentedConfigurationNodemergeValuesFrom in interface ConfigurationNodemergeValuesFrom in class SimpleConfigurationNodeother - The node to merge values frompublic SimpleCommentedConfigurationNode getNode(Object... path)
ConfigurationNodegetNode in interface CommentedConfigurationNodegetNode in interface ConfigurationNodegetNode in class SimpleConfigurationNodepath - The path to fetch the node atpublic List<? extends SimpleCommentedConfigurationNode> getChildrenList()
ConfigurationNodegetChildrenList in interface CommentedConfigurationNodegetChildrenList in interface ConfigurationNodegetChildrenList in class SimpleConfigurationNodepublic Map<Object,? extends SimpleCommentedConfigurationNode> getChildrenMap()
ConfigurationNodegetChildrenMap in interface CommentedConfigurationNodegetChildrenMap in interface ConfigurationNodegetChildrenMap in class SimpleConfigurationNodepublic SimpleCommentedConfigurationNode getAppendedNode()
getAppendedNode in interface CommentedConfigurationNodegetAppendedNode in interface ConfigurationNodegetAppendedNode in class SimpleConfigurationNodepublic boolean equals(Object o)
equals in class SimpleConfigurationNodepublic int hashCode()
hashCode in class SimpleConfigurationNodepublic String toString()
toString in class SimpleConfigurationNodeCopyright © 2014–2017. All rights reserved.