public class DefaultPlexusConfiguration extends Object implements PlexusConfiguration
Constructor and Description |
---|
DefaultPlexusConfiguration(String name) |
DefaultPlexusConfiguration(String name,
String value) |
Modifier and Type | Method and Description |
---|---|
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) |
public DefaultPlexusConfiguration(String name)
public final String getName()
getName
in interface PlexusConfiguration
public final String getValue()
getValue
in interface PlexusConfiguration
public final String getValue(String defaultValue)
getValue
in interface PlexusConfiguration
public final void setValue(String value)
setValue
in interface PlexusConfiguration
public final String[] getAttributeNames()
getAttributeNames
in interface PlexusConfiguration
public final String getAttribute(String attributeName)
getAttribute
in interface PlexusConfiguration
public final String getAttribute(String attributeName, String defaultValue)
getAttribute
in interface PlexusConfiguration
public final void setAttribute(String attributeName, String attributeValue)
setAttribute
in interface PlexusConfiguration
public final PlexusConfiguration getChild(String childName)
getChild
in interface PlexusConfiguration
public final PlexusConfiguration getChild(String childName, boolean create)
getChild
in interface PlexusConfiguration
public final PlexusConfiguration[] getChildren()
getChildren
in interface PlexusConfiguration
public final PlexusConfiguration[] getChildren(String childName)
getChildren
in interface PlexusConfiguration
public final int getChildCount()
getChildCount
in interface PlexusConfiguration
public final PlexusConfiguration getChild(int index)
getChild
in interface PlexusConfiguration
public final void addChild(PlexusConfiguration child)
addChild
in interface PlexusConfiguration
public final PlexusConfiguration addChild(String childName, String childValue)
addChild
in interface PlexusConfiguration
protected PlexusConfiguration createChild(String childName)
protected final PlexusConfiguration add(PlexusConfiguration child)
Copyright © 2010-2014 Sonatype, Inc.. All Rights Reserved.