org.codehaus.plexus.configuration
public interface PlexusConfiguration
Method Summary | |
---|---|
void | addChild(PlexusConfiguration configuration)
Adds a configuration under this configuration, which acts as
a parent. |
String | getAttribute(String paramName)
Returns the value of the named attribute. |
String | getAttribute(String name, String defaultValue)
Returns the value of the named attribute, or default if one cannot be
found. |
String[] | getAttributeNames()
Returns an array of attribute names. |
PlexusConfiguration | getChild(String child)
Returns the child configuration of the given name. |
PlexusConfiguration | getChild(int i)
Returns the child configuration at the given location. |
PlexusConfiguration | getChild(String child, boolean createChild)
Returns the child configuration of the given name. |
int | getChildCount()
Returns the number of directly children under this configuration. |
PlexusConfiguration[] | getChildren()
Returns an array of all child configurations. |
PlexusConfiguration[] | getChildren(String name)
Returns an array of all child configurations with the given name. |
String | getName()
Returns the name of this configuration. |
String | getValue()
Returns the value of this configuration. |
String | getValue(String defaultValue)
Returns the value of this configuration, or default if one cannot be
found. |
Parameters: configuration the child configuration to add
Returns: the value of the named attribute
Throws: PlexusConfigurationException
Parameters: defaultValue value to return if none is found
Returns: the value of the named attribute
Returns: an array of attribute names
Parameters: child the name of the child to return
Returns: the child configuration of the given name
Parameters: i the position of the child under this configuration
Returns: the child configuration at the given location
Parameters: child the name of the child to return createChild true if a new child should be create, if none found
Returns: the child configuration of the given name, or new child if created
Returns: the number of directly children under this configuration.
Returns: an array of all child configurations
Parameters: name the name of the children configurations to return
Returns: an array of all child configurations with the given name
Returns: the name of this configuration
Returns: the value of this configuration
Throws: PlexusConfigurationException
Parameters: defaultValue value to return if none is found
Returns: the value of this configuration