Class DefaultPlexusConfiguration
- java.lang.Object
-
- org.codehaus.plexus.configuration.DefaultPlexusConfiguration
-
- All Implemented Interfaces:
PlexusConfiguration
- Direct Known Subclasses:
XmlPlexusConfiguration
public class DefaultPlexusConfiguration extends Object implements PlexusConfiguration
-
-
Constructor Summary
Constructors Constructor Description DefaultPlexusConfiguration(String name)
DefaultPlexusConfiguration(String name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PlexusConfiguration
add(PlexusConfiguration child)
PlexusConfiguration
addChild(String childName, String childValue)
void
addChild(PlexusConfiguration child)
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)
-
-
-
Method Detail
-
getName
public final String getName()
- Specified by:
getName
in interfacePlexusConfiguration
-
getValue
public final String getValue()
- Specified by:
getValue
in interfacePlexusConfiguration
-
getValue
public final String getValue(String defaultValue)
- Specified by:
getValue
in interfacePlexusConfiguration
-
setValue
public final void setValue(String value)
- Specified by:
setValue
in interfacePlexusConfiguration
-
getAttributeNames
public final String[] getAttributeNames()
- Specified by:
getAttributeNames
in interfacePlexusConfiguration
-
getAttribute
public final String getAttribute(String attributeName)
- Specified by:
getAttribute
in interfacePlexusConfiguration
-
getAttribute
public final String getAttribute(String attributeName, String defaultValue)
- Specified by:
getAttribute
in interfacePlexusConfiguration
-
setAttribute
public final void setAttribute(String attributeName, String attributeValue)
- Specified by:
setAttribute
in interfacePlexusConfiguration
-
getChild
public final PlexusConfiguration getChild(String childName)
- Specified by:
getChild
in interfacePlexusConfiguration
-
getChild
public final PlexusConfiguration getChild(String childName, boolean create)
- Specified by:
getChild
in interfacePlexusConfiguration
-
getChildren
public final PlexusConfiguration[] getChildren()
- Specified by:
getChildren
in interfacePlexusConfiguration
-
getChildren
public final PlexusConfiguration[] getChildren(String childName)
- Specified by:
getChildren
in interfacePlexusConfiguration
-
getChildCount
public final int getChildCount()
- Specified by:
getChildCount
in interfacePlexusConfiguration
-
getChild
public final PlexusConfiguration getChild(int index)
- Specified by:
getChild
in interfacePlexusConfiguration
-
addChild
public final void addChild(PlexusConfiguration child)
- Specified by:
addChild
in interfacePlexusConfiguration
-
addChild
public final PlexusConfiguration addChild(String childName, String childValue)
- Specified by:
addChild
in interfacePlexusConfiguration
-
createChild
protected PlexusConfiguration createChild(String childName)
-
add
protected final PlexusConfiguration add(PlexusConfiguration child)
-
-