|
||||||||||
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
Field Summary | |
---|---|
private org.codehaus.plexus.util.xml.Xpp3Dom |
dom
|
Constructor Summary | |
---|---|
XmlPlexusConfiguration(java.lang.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. |
private void |
attributes(PlexusConfiguration c,
java.lang.StringBuffer sb)
|
private void |
display(PlexusConfiguration c,
java.lang.StringBuffer sb,
int depth)
|
private void |
displayTag(PlexusConfiguration c,
java.lang.StringBuffer sb,
int depth)
|
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of the named attribute. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Returns the value of the named attribute, or default if one cannot be found. |
java.lang.String[] |
getAttributeNames()
Returns an array of attribute names. |
PlexusConfiguration |
getChild(int i)
Returns the child configuration at the given location. |
PlexusConfiguration |
getChild(java.lang.String name)
Returns the child configuration of the given name. |
PlexusConfiguration |
getChild(java.lang.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(java.lang.String name)
Returns an array of all child configurations with the given name. |
java.lang.String |
getName()
Returns the name of this configuration. |
java.lang.String |
getValue()
Returns the value of this configuration. |
java.lang.String |
getValue(java.lang.String defaultValue)
Returns the value of this configuration, or default if one cannot be found. |
org.codehaus.plexus.util.xml.Xpp3Dom |
getXpp3Dom()
|
private java.lang.String |
indent(int depth)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private org.codehaus.plexus.util.xml.Xpp3Dom dom
Constructor Detail |
---|
public XmlPlexusConfiguration(java.lang.String name)
public XmlPlexusConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom dom)
Method Detail |
---|
public org.codehaus.plexus.util.xml.Xpp3Dom getXpp3Dom()
public java.lang.String getName()
PlexusConfiguration
getName
in interface PlexusConfiguration
public java.lang.String getValue()
PlexusConfiguration
getValue
in interface PlexusConfiguration
public java.lang.String getValue(java.lang.String defaultValue)
PlexusConfiguration
getValue
in interface PlexusConfiguration
defaultValue
- value to return if none is found
public void setValue(java.lang.String value)
public void setAttribute(java.lang.String name, java.lang.String value)
public java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
PlexusConfiguration
getAttribute
in interface PlexusConfiguration
defaultValue
- value to return if none is found
public java.lang.String getAttribute(java.lang.String name)
PlexusConfiguration
getAttribute
in interface PlexusConfiguration
public java.lang.String[] getAttributeNames()
PlexusConfiguration
getAttributeNames
in interface PlexusConfiguration
public PlexusConfiguration getChild(java.lang.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(java.lang.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(java.lang.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 void addAllChildren(PlexusConfiguration other)
public int getChildCount()
PlexusConfiguration
getChildCount
in interface PlexusConfiguration
public java.lang.String toString()
toString
in class java.lang.Object
private void display(PlexusConfiguration c, java.lang.StringBuffer sb, int depth)
private void displayTag(PlexusConfiguration c, java.lang.StringBuffer sb, int depth)
private void attributes(PlexusConfiguration c, java.lang.StringBuffer sb)
private java.lang.String indent(int depth)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |