Class ConfigurationContainer
- java.lang.Object
-
- org.apache.maven.model.ConfigurationContainer
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
- Direct Known Subclasses:
Plugin,PluginExecution,ReportPlugin,ReportSet
public class ConfigurationContainer extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Contains the configuration information of the container like Plugin.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectconfigurationThe configuration as DOM object.private InputLocationconfigurationLocationField configurationLocation.private booleaninheritanceAppliedprivate java.lang.StringinheritedWhether any configuration should be propagated to child POMs.private InputLocationinheritedLocationField inheritedLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.
-
Constructor Summary
Constructors Constructor Description ConfigurationContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationContainerclone()Method clone.java.lang.ObjectgetConfiguration()Getjava.lang.StringgetInherited()Get whether any configuration should be propagated to child POMs.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.private InputLocationgetOtherLocation(java.lang.Object key)booleanisInheritanceApplied()booleanisInherited()voidsetConfiguration(java.lang.Object configuration)SetvoidsetInherited(boolean inherited)voidsetInherited(java.lang.String inherited)Set whether any configuration should be propagated to child POMs.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidunsetInheritanceApplied()
-
-
-
Field Detail
-
inherited
private java.lang.String inherited
Whether any configuration should be propagated to child POMs. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value istrue.
-
configuration
private java.lang.Object configuration
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.childrenorcombine.selfattributes to the children of the configuration element:combine.children: available values aremerge(default) andappend,combine.self: available values aremerge(default) andoverride.
See POM Reference documentation and Xpp3DomUtils for more information.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
inheritedLocation
private InputLocation inheritedLocation
Field inheritedLocation.
-
configurationLocation
private InputLocation configurationLocation
Field configurationLocation.
-
inheritanceApplied
private boolean inheritanceApplied
-
-
Method Detail
-
clone
public ConfigurationContainer clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- ConfigurationContainer
-
getConfiguration
public java.lang.Object getConfiguration()
GetThe 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.childrenorcombine.selfattributes to the children of the configuration element:combine.children: available values aremerge(default) andappend,combine.self: available values aremerge(default) andoverride.
See POM Reference documentation and Xpp3DomUtils for more information.
- Returns:
- Object
-
getInherited
public java.lang.String getInherited()
Get whether any configuration should be propagated to child POMs. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value istrue.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
setConfiguration
public void setConfiguration(java.lang.Object configuration)
SetThe 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.childrenorcombine.selfattributes to the children of the configuration element:combine.children: available values aremerge(default) andappend,combine.self: available values aremerge(default) andoverride.
See POM Reference documentation and Xpp3DomUtils for more information.
- Parameters:
configuration-
-
setInherited
public void setInherited(java.lang.String inherited)
Set whether any configuration should be propagated to child POMs. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value istrue.- Parameters:
inherited-
-
isInherited
public boolean isInherited()
-
setInherited
public void setInherited(boolean inherited)
-
unsetInheritanceApplied
public void unsetInheritanceApplied()
-
isInheritanceApplied
public boolean isInheritanceApplied()
-
-