public abstract class AbstractConfigurationNode extends Object implements ConfigurationNode
ConfigurationNode
functionality.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractConfigurationNode.ChainingConfigurationHandle
This ConfigurationHandle survives the replacement of this
ConfigurationNode which is what happens in order to save changes.
|
Constructor and Description |
---|
AbstractConfigurationNode() |
Modifier and Type | Method and Description |
---|---|
void |
addNodeListener(ConfigurationNodeListener listener)
Add a RuntimeNodeListener.
|
ConfigurationNode[] |
children() |
int |
indexOf(ConfigurationNode child)
Get the index of a child RuntimeNode.
|
int |
insertChild(ConfigurationNode child)
Insert a child in the parse Tree.
|
void |
removeChild(int index)
Remove a child.
|
void |
removeNodeListener(ConfigurationNodeListener listener)
Remove a RuntimeNodeListener.
|
void |
setInsertPosition(int insertAt)
Set the position for the next inserted node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addText, getContext
parse
public void addNodeListener(ConfigurationNodeListener listener)
ConfigurationNode
addNodeListener
in interface ConfigurationNode
public void setInsertPosition(int insertAt)
ConfigurationNode
setInsertPosition
in interface ConfigurationNode
insertAt
- The position.public void removeNodeListener(ConfigurationNodeListener listener)
ConfigurationNode
removeNodeListener
in interface ConfigurationNode
public int insertChild(ConfigurationNode child)
ConfigurationNode
insertChild
in interface ConfigurationNode
child
- The child. Must not be null.public void removeChild(int index)
ConfigurationNode
removeChild
in interface ConfigurationNode
index
- The index at which to remove the child.public int indexOf(ConfigurationNode child)
ConfigurationNode
indexOf
in interface ConfigurationNode
child
- The child node whose index is to be determined.public ConfigurationNode[] children()