org.codehaus.plexus.configuration
Class DefaultPlexusConfiguration

java.lang.Object
  extended by org.codehaus.plexus.configuration.DefaultPlexusConfiguration
All Implemented Interfaces:
PlexusConfiguration
Direct Known Subclasses:
XmlPlexusConfiguration

public class DefaultPlexusConfiguration
extends Object
implements PlexusConfiguration


Constructor Summary
DefaultPlexusConfiguration(String name)
           
DefaultPlexusConfiguration(String name, String value)
           
 
Method Summary
protected  PlexusConfiguration add(PlexusConfiguration child)
           
 void addChild(PlexusConfiguration child)
           
 PlexusConfiguration addChild(String childName, String childValue)
           
protected  PlexusConfiguration createChild(String childName)
           
 String getAttribute(String attributeName)
           
 String getAttribute(String attributeName, String defaultValue)
           
 String[] getAttributeNames()
           
 PlexusConfiguration getChild(int index)
           
 PlexusConfiguration getChild(String childName)
           
 PlexusConfiguration getChild(String childName, boolean create)
           
 int getChildCount()
           
 PlexusConfiguration[] getChildren()
           
 PlexusConfiguration[] getChildren(String childName)
           
 String getName()
           
 String getValue()
           
 String getValue(String defaultValue)
           
 void setAttribute(String attributeName, String attributeValue)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlexusConfiguration

public DefaultPlexusConfiguration(String name)

DefaultPlexusConfiguration

public DefaultPlexusConfiguration(String name,
                                  String value)
Method Detail

getName

public final String getName()
Specified by:
getName in interface PlexusConfiguration

getValue

public final String getValue()
Specified by:
getValue in interface PlexusConfiguration

getValue

public final String getValue(String defaultValue)
Specified by:
getValue in interface PlexusConfiguration

setValue

public final void setValue(String value)
Specified by:
setValue in interface PlexusConfiguration

getAttributeNames

public final String[] getAttributeNames()
Specified by:
getAttributeNames in interface PlexusConfiguration

getAttribute

public final String getAttribute(String attributeName)
Specified by:
getAttribute in interface PlexusConfiguration

getAttribute

public final String getAttribute(String attributeName,
                                 String defaultValue)
Specified by:
getAttribute in interface PlexusConfiguration

setAttribute

public final void setAttribute(String attributeName,
                               String attributeValue)
Specified by:
setAttribute in interface PlexusConfiguration

getChild

public final PlexusConfiguration getChild(String childName)
Specified by:
getChild in interface PlexusConfiguration

getChild

public final PlexusConfiguration getChild(String childName,
                                          boolean create)
Specified by:
getChild in interface PlexusConfiguration

getChildren

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

getChildren

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

getChildCount

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

getChild

public final PlexusConfiguration getChild(int index)
Specified by:
getChild in interface PlexusConfiguration

addChild

public final void addChild(PlexusConfiguration child)
Specified by:
addChild in interface PlexusConfiguration

addChild

public final PlexusConfiguration addChild(String childName,
                                          String childValue)
Specified by:
addChild in interface PlexusConfiguration

createChild

protected PlexusConfiguration createChild(String childName)

add

protected final PlexusConfiguration add(PlexusConfiguration child)


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.