|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface implemented by configuration objects which are mutable.
| Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Add an attribute with the given name. |
void |
addChild(Configuration configuration)
Add the configuration object as a child of this configuration object. |
MutableConfiguration |
addChild(java.lang.String name)
Add a child node with no child value to the configuration. |
MutableConfiguration |
addChild(java.lang.String name,
java.lang.Object value)
Add a child node to the configuration. |
void |
clearChildren()
Remove all of the children of this configuration node. |
void |
removeChild(Configuration configuration)
Remove the specified configuration object. |
void |
save(java.io.OutputStream out)
Save the configuration data to the specified output stream. |
void |
save(java.io.Writer out)
Save the configuration data to the specified output stream. |
void |
setName(java.lang.String name)
Set the node name. |
void |
setValue(java.lang.String value)
Set the configuration object's value. |
| Methods inherited from interface com.anthonyeden.lib.config.Configuration |
getAttribute, getAttribute, getAttributeNames, getChild, getChildren, getChildren, getChildValue, getChildValue, getLocation, getName, getParent, getValue, getValue |
| Method Detail |
public void setName(java.lang.String name)
name - The new node namepublic MutableConfiguration addChild(java.lang.String name)
addChild(name, null)
name - The name of the new configuration node
public MutableConfiguration addChild(java.lang.String name,
java.lang.Object value)
name - The name of the new configuration nodevalue - The value of the new configuration node
public void addChild(Configuration configuration)
configuration - The child configuration objectpublic void removeChild(Configuration configuration)
configuration - The child configuration object
public void addAttribute(java.lang.String name,
java.lang.Object value)
name - The attribute namevalue - The attribute valuepublic void setValue(java.lang.String value)
value - The new valuepublic void clearChildren()
public void save(java.io.OutputStream out)
throws ConfigurationException
out - The OutputStream
ConfigurationException
public void save(java.io.Writer out)
throws ConfigurationException
out - The Writer
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||