|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlexusConfiguration
A configuration data hierarchy for configuring aspects of plexus. For example, to populate a ComponentDescriptor. Implementation of PlexusConfiguration may be populated by any means, for example, by XML file.
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(int i)
Returns the child configuration at the given location. |
PlexusConfiguration |
getChild(String child)
Returns the child configuration of the given name. |
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. |
Method Detail |
---|
String getName()
String getValue() throws PlexusConfigurationException
PlexusConfigurationException
String getValue(String defaultValue)
defaultValue
- value to return if none is found
String[] getAttributeNames()
String getAttribute(String paramName) throws PlexusConfigurationException
PlexusConfigurationException
String getAttribute(String name, String defaultValue)
defaultValue
- value to return if none is found
PlexusConfiguration getChild(String child)
child
- the name of the child to return
PlexusConfiguration getChild(int i)
i
- the position of the child under this configuration
PlexusConfiguration getChild(String child, boolean createChild)
child
- the name of the child to returncreateChild
- true if a new child should be create, if none found
PlexusConfiguration[] getChildren()
PlexusConfiguration[] getChildren(String name)
name
- the name of the children configurations to return
void addChild(PlexusConfiguration configuration)
configuration
- the child configuration to addint getChildCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |