|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration
public class XmlPlexusConfiguration
Constructor Summary | |
---|---|
XmlPlexusConfiguration()
|
|
XmlPlexusConfiguration(String name)
|
|
XmlPlexusConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom dom)
|
Method Summary | |
---|---|
void |
addAllChildren(PlexusConfiguration other)
|
void |
addChild(PlexusConfiguration configuration)
Adds a configuration under this configuration, which acts as a parent. |
PlexusConfiguration |
addChild(String name)
Add a child element with a given name and return the newly created element. |
PlexusConfiguration |
addChild(String name,
String value)
Add a child element with a given name, and given value and return the newly created element. |
String |
getAttribute(String name)
Returns the value of the named attribute. |
String |
getAttribute(String name,
String defaultValue)
Returns the value of the named attribute, or default if one cannot be found. |
String[] |
getAttributeNames()
Returns an array of attribute names. |
PlexusConfiguration |
getChild(int i)
Returns the child configuration at the given location. |
PlexusConfiguration |
getChild(String name)
Returns the child configuration of the given name. |
PlexusConfiguration |
getChild(String name,
boolean createChild)
Returns the child configuration of the given name. |
int |
getChildCount()
Returns the number of directly children under this configuration. |
PlexusConfiguration[] |
getChildren()
Returns an array of all child configurations. |
PlexusConfiguration[] |
getChildren(String name)
Returns an array of all child configurations with the given name. |
String |
getName()
Returns the name of this configuration. |
String |
getValue()
Returns the value of this configuration. |
String |
getValue(String defaultValue)
Returns the value of this configuration, or default if one cannot be found. |
org.codehaus.plexus.util.xml.Xpp3Dom |
getXpp3Dom()
|
void |
setAttribute(String name,
String value)
|
PlexusConfiguration |
setValue(String value)
Set the value of a configuration element and return the PlexusConfiguration object so that further operations can be carried out. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlPlexusConfiguration()
public XmlPlexusConfiguration(String name)
public XmlPlexusConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom dom)
Method Detail |
---|
public org.codehaus.plexus.util.xml.Xpp3Dom getXpp3Dom()
public String getName()
PlexusConfiguration
getName
in interface PlexusConfiguration
public String getValue()
PlexusConfiguration
getValue
in interface PlexusConfiguration
public String getValue(String defaultValue)
PlexusConfiguration
getValue
in interface PlexusConfiguration
defaultValue
- value to return if none is found
public PlexusConfiguration setValue(String value)
PlexusConfiguration
setValue
in interface PlexusConfiguration
public void setAttribute(String name, String value)
public String getAttribute(String name, String defaultValue)
PlexusConfiguration
getAttribute
in interface PlexusConfiguration
defaultValue
- value to return if none is found
public String getAttribute(String name)
PlexusConfiguration
getAttribute
in interface PlexusConfiguration
public String[] getAttributeNames()
PlexusConfiguration
getAttributeNames
in interface PlexusConfiguration
public PlexusConfiguration getChild(String name)
PlexusConfiguration
getChild
in interface PlexusConfiguration
name
- the name of the child to return
public PlexusConfiguration getChild(int i)
PlexusConfiguration
getChild
in interface PlexusConfiguration
i
- the position of the child under this configuration
public PlexusConfiguration getChild(String name, boolean createChild)
PlexusConfiguration
getChild
in interface PlexusConfiguration
name
- the name of the child to returncreateChild
- true if a new child should be create, if none found
public PlexusConfiguration[] getChildren()
PlexusConfiguration
getChildren
in interface PlexusConfiguration
public PlexusConfiguration[] getChildren(String name)
PlexusConfiguration
getChildren
in interface PlexusConfiguration
name
- the name of the children configurations to return
public void addChild(PlexusConfiguration configuration)
PlexusConfiguration
addChild
in interface PlexusConfiguration
configuration
- the child configuration to addpublic PlexusConfiguration addChild(String name)
PlexusConfiguration
addChild
in interface PlexusConfiguration
public PlexusConfiguration addChild(String name, String value)
PlexusConfiguration
addChild
in interface PlexusConfiguration
public void addAllChildren(PlexusConfiguration other)
public int getChildCount()
PlexusConfiguration
getChildCount
in interface PlexusConfiguration
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |