org.apache.maven.model
Class ConfigurationContainer

java.lang.Object
  extended by org.apache.maven.model.ConfigurationContainer
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
Plugin, PluginExecution, ReportPlugin, ReportSet

public class ConfigurationContainer
extends Object
implements Serializable, Cloneable, InputLocationTracker

Contains the configuration information of the container like Plugin.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ConfigurationContainer()
           
 
Method Summary
 ConfigurationContainer clone()
          Method clone.
 Object getConfiguration()
          Get The configuration as DOM object.
 String getInherited()
          Get whether any configuration should be propagated to child POMs.
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 boolean isInheritanceApplied()
           
 boolean isInherited()
           
 void setConfiguration(Object configuration)
          Set The configuration as DOM object.
 void setInherited(boolean inherited)
           
 void setInherited(String inherited)
          Set whether any configuration should be propagated to child POMs.
 void setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 void unsetInheritanceApplied()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationContainer

public ConfigurationContainer()
Method Detail

clone

public ConfigurationContainer clone()
Method clone.

Overrides:
clone in class Object
Returns:
ConfigurationContainer

getConfiguration

public Object getConfiguration()
Get

The configuration as DOM object.

By default, every element content is trimmed, but starting with Maven 3.1.0, you can add xml:space="preserve" to elements you want to preserve whitespace.

You can control how child POMs inherit configuration from parent POMs by adding combine.children or combine.self attributes to the children of the configuration element:

See POM Reference documentation and Xpp3DomUtils for more information.

Returns:
Object

getInherited

public String getInherited()
Get whether any configuration should be propagated to child POMs. Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean. Default value is true.

Returns:
String

getLocation

public InputLocation getLocation(Object key)
Description copied from interface: InputLocationTracker
Gets the location of the specified field in the input source.

Specified by:
getLocation in interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

setConfiguration

public void setConfiguration(Object configuration)
Set

The configuration as DOM object.

By default, every element content is trimmed, but starting with Maven 3.1.0, you can add xml:space="preserve" to elements you want to preserve whitespace.

You can control how child POMs inherit configuration from parent POMs by adding combine.children or combine.self attributes to the children of the configuration element:

See POM Reference documentation and Xpp3DomUtils for more information.

Parameters:
configuration -

setInherited

public void setInherited(String inherited)
Set whether any configuration should be propagated to child POMs. Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean. Default value is true.

Parameters:
inherited -

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -

isInherited

public boolean isInherited()

setInherited

public void setInherited(boolean inherited)

unsetInheritanceApplied

public void unsetInheritanceApplied()

isInheritanceApplied

public boolean isInheritanceApplied()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.