public class ConfigurationImpl extends Object implements Configuration
Constructor and Description |
---|
ConfigurationImpl() |
ConfigurationImpl(org.codehaus.plexus.util.xml.Xpp3Dom configXml) |
Modifier and Type | Method and Description |
---|---|
Configuration |
addConfigurationElement(ConfigurationElement element)
Add a
ConfigurationElement to this Configuration . |
ConfigurationElement |
getConfigurationElement(String configElement)
Get the specified
ConfigurationElement , if it exists; otherwise, return null. |
boolean |
hasConfigurationElement(String configElement)
Return true if this
Configuration contains the given element; otherwise, return false; |
boolean |
hasConfigurationElements()
Return true if this
Configuration has any elements; otherwise, return false. |
List<ConfigurationElement> |
listConfigurationElements()
List all
ConfigurationElement s contained in this Configuration . |
void |
removeConfigurationElement(String elementName)
Remove the specified
ConfigurationElement . |
String |
toString() |
public ConfigurationImpl()
public ConfigurationImpl(org.codehaus.plexus.util.xml.Xpp3Dom configXml)
public ConfigurationElement getConfigurationElement(String configElement)
Configuration
ConfigurationElement
, if it exists; otherwise, return null.getConfigurationElement
in interface Configuration
public boolean hasConfigurationElement(String configElement)
Configuration
Configuration
contains the given element; otherwise, return false;hasConfigurationElement
in interface Configuration
public boolean hasConfigurationElements()
Configuration
Configuration
has any elements; otherwise, return false.hasConfigurationElements
in interface Configuration
public List<ConfigurationElement> listConfigurationElements()
Configuration
ConfigurationElement
s contained in this Configuration
. Returns an empty list if none
exist.listConfigurationElements
in interface Configuration
public Configuration addConfigurationElement(ConfigurationElement element)
Configuration
ConfigurationElement
to this Configuration
.addConfigurationElement
in interface Configuration
public void removeConfigurationElement(String elementName)
Configuration
ConfigurationElement
.removeConfigurationElement
in interface Configuration
Copyright © 2015 JBoss by Red Hat. All rights reserved.