org.codehaus.plexus.configuration.xml
Class XmlPlexusConfiguration

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

public class XmlPlexusConfiguration
extends Object
implements org.codehaus.plexus.configuration.PlexusConfiguration

Version:
$Id: XmlPlexusConfiguration.java 4779 2006-11-23 04:09:31Z jvanzyl $

Constructor Summary
XmlPlexusConfiguration(String name)
           
XmlPlexusConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom dom)
           
 
Method Summary
 void addAllChildren(org.codehaus.plexus.configuration.PlexusConfiguration other)
           
 void addChild(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 String getAttribute(String name)
           
 String getAttribute(String name, String defaultValue)
           
 String[] getAttributeNames()
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(int i)
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(String name)
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(String name, boolean createChild)
           
 int getChildCount()
           
 org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren()
           
 org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren(String name)
           
 String getName()
           
 String getValue()
           
 String getValue(String defaultValue)
           
 org.codehaus.plexus.util.xml.Xpp3Dom getXpp3Dom()
           
 void setAttribute(String name, String value)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlPlexusConfiguration

public XmlPlexusConfiguration(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 String getName()
Specified by:
getName in interface org.codehaus.plexus.configuration.PlexusConfiguration

getValue

public String getValue()
Specified by:
getValue in interface org.codehaus.plexus.configuration.PlexusConfiguration

getValue

public String getValue(String defaultValue)
Specified by:
getValue in interface org.codehaus.plexus.configuration.PlexusConfiguration

setValue

public void setValue(String value)

setAttribute

public void setAttribute(String name,
                         String value)

getAttribute

public String getAttribute(String name,
                           String defaultValue)
Specified by:
getAttribute in interface org.codehaus.plexus.configuration.PlexusConfiguration

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface org.codehaus.plexus.configuration.PlexusConfiguration

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(String name)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(int i)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(String name,
                                                                      boolean createChild)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChildren

public org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren()
Specified by:
getChildren in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChildren

public org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren(String name)
Specified by:
getChildren in interface org.codehaus.plexus.configuration.PlexusConfiguration

addChild

public void addChild(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
Specified by:
addChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

addAllChildren

public void addAllChildren(org.codehaus.plexus.configuration.PlexusConfiguration other)

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface org.codehaus.plexus.configuration.PlexusConfiguration

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2008 Codehaus. All Rights Reserved.