org.codehaus.plexus.configuration.xml
Class XmlPlexusConfiguration

java.lang.Object
  extended by org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration
All Implemented Interfaces:
PlexusConfiguration

public class XmlPlexusConfiguration
extends java.lang.Object
implements PlexusConfiguration

Version:
$Id: XmlPlexusConfiguration.java 1747 2005-04-19 05:38:54Z brett $

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)
           
 java.lang.String getAttribute(java.lang.String name)
           
 java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
           
 java.lang.String[] getAttributeNames()
           
 PlexusConfiguration getChild(int i)
           
 PlexusConfiguration getChild(java.lang.String name)
           
 PlexusConfiguration getChild(java.lang.String name, boolean createChild)
           
 int getChildCount()
           
 PlexusConfiguration[] getChildren()
           
 PlexusConfiguration[] getChildren(java.lang.String name)
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 java.lang.String getValue(java.lang.String defaultValue)
           
 org.codehaus.plexus.util.xml.Xpp3Dom getXpp3Dom()
           
 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
 

Constructor Detail

XmlPlexusConfiguration

public XmlPlexusConfiguration(java.lang.String name)

XmlPlexusConfiguration

public XmlPlexusConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom dom)
Method Detail

getXpp3Dom

public org.codehaus.plexus.util.xml.Xpp3Dom getXpp3Dom()

getName

public java.lang.String getName()
Specified by:
getName in interface PlexusConfiguration

getValue

public java.lang.String getValue()
Specified by:
getValue in interface PlexusConfiguration

getValue

public java.lang.String getValue(java.lang.String defaultValue)
Specified by:
getValue in interface PlexusConfiguration

setValue

public void setValue(java.lang.String value)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)

getAttribute

public java.lang.String getAttribute(java.lang.String name,
                                     java.lang.String defaultValue)
Specified by:
getAttribute in interface PlexusConfiguration

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface PlexusConfiguration

getAttributeNames

public java.lang.String[] getAttributeNames()
Specified by:
getAttributeNames in interface PlexusConfiguration

getChild

public PlexusConfiguration getChild(java.lang.String name)
Specified by:
getChild in interface PlexusConfiguration

getChild

public PlexusConfiguration getChild(int i)
Specified by:
getChild in interface PlexusConfiguration

getChild

public PlexusConfiguration getChild(java.lang.String name,
                                    boolean createChild)
Specified by:
getChild in interface PlexusConfiguration

getChildren

public PlexusConfiguration[] getChildren()
Specified by:
getChildren in interface PlexusConfiguration

getChildren

public PlexusConfiguration[] getChildren(java.lang.String name)
Specified by:
getChildren in interface PlexusConfiguration

addChild

public void addChild(PlexusConfiguration configuration)
Specified by:
addChild in interface PlexusConfiguration

addAllChildren

public void addAllChildren(PlexusConfiguration other)

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface PlexusConfiguration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2006 Codehaus. All Rights Reserved.