Forge - Parent 1.2.2-SNAPSHOT

org.jboss.forge.maven.plugins
Class ConfigurationImpl

java.lang.Object
  extended by org.jboss.forge.maven.plugins.ConfigurationImpl
All Implemented Interfaces:
Configuration, PluginElement

public class ConfigurationImpl
extends Object
implements Configuration

Author:
Paul Bakker

Constructor Summary
ConfigurationImpl()
           
ConfigurationImpl(org.codehaus.plexus.util.xml.Xpp3Dom configXml)
           
 
Method Summary
 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 ConfigurationElements contained in this Configuration.
 void removeConfigurationElement(String elementName)
          Remove the specified ConfigurationElement.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationImpl

public ConfigurationImpl()

ConfigurationImpl

public ConfigurationImpl(org.codehaus.plexus.util.xml.Xpp3Dom configXml)
Method Detail

getConfigurationElement

public ConfigurationElement getConfigurationElement(String configElement)
Description copied from interface: Configuration
Get the specified ConfigurationElement, if it exists; otherwise, return null.

Specified by:
getConfigurationElement in interface Configuration

hasConfigurationElement

public boolean hasConfigurationElement(String configElement)
Description copied from interface: Configuration
Return true if this Configuration contains the given element; otherwise, return false;

Specified by:
hasConfigurationElement in interface Configuration

hasConfigurationElements

public boolean hasConfigurationElements()
Description copied from interface: Configuration
Return true if this Configuration has any elements; otherwise, return false.

Specified by:
hasConfigurationElements in interface Configuration

listConfigurationElements

public List<ConfigurationElement> listConfigurationElements()
Description copied from interface: Configuration
List all ConfigurationElements contained in this Configuration. Returns an empty list if none exist.

Specified by:
listConfigurationElements in interface Configuration

addConfigurationElement

public Configuration addConfigurationElement(ConfigurationElement element)
Description copied from interface: Configuration
Add a ConfigurationElement to this Configuration.

Specified by:
addConfigurationElement in interface Configuration

removeConfigurationElement

public void removeConfigurationElement(String elementName)
Description copied from interface: Configuration
Remove the specified ConfigurationElement.

Specified by:
removeConfigurationElement in interface Configuration

toString

public String toString()
Overrides:
toString in class Object

Forge - Parent 1.2.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.