public class ConfigurationContainer extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
configuration
The configuration as DOM object.
|
private InputLocation |
configurationLocation
Field configurationLocation.
|
private boolean |
inheritanceApplied |
private java.lang.String |
inherited
Whether any configuration should be propagated
to child POMs.
|
private InputLocation |
inheritedLocation
Field inheritedLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
Constructor and Description |
---|
ConfigurationContainer() |
Modifier and Type | Method and Description |
---|---|
ConfigurationContainer |
clone()
Method clone.
|
java.lang.Object |
getConfiguration()
Get
|
java.lang.String |
getInherited()
Get whether any configuration should be propagated to child
POMs.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
boolean |
isInheritanceApplied() |
boolean |
isInherited() |
void |
setConfiguration(java.lang.Object configuration)
Set
|
void |
setInherited(boolean inherited) |
void |
setInherited(java.lang.String inherited)
Set whether any configuration should be propagated to child
POMs.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
unsetInheritanceApplied() |
private java.lang.String inherited
String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
true
.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.children
or combine.self
attributes to the
children of the configuration element:
combine.children
: available
values are merge
(default) and
append
,combine.self
: available values
are merge
(default) and
override
.See POM Reference documentation and Xpp3DomUtils for more information.
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation inheritedLocation
private InputLocation configurationLocation
private boolean inheritanceApplied
public ConfigurationContainer clone()
clone
in class java.lang.Object
public java.lang.Object getConfiguration()
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:
combine.children
: available
values are merge
(default) and
append
,combine.self
: available values
are merge
(default) and
override
.See POM Reference documentation and Xpp3DomUtils for more information.
public java.lang.String getInherited()
String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
true
.public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- location
- private InputLocation getOtherLocation(java.lang.Object key)
key
- public void setConfiguration(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.children
or combine.self
attributes to the
children of the configuration element:
combine.children
: available
values are merge
(default) and
append
,combine.self
: available values
are merge
(default) and
override
.See POM Reference documentation and Xpp3DomUtils for more information.
configuration
- public void setInherited(java.lang.String inherited)
String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
true
.inherited
- public boolean isInherited()
public void setInherited(boolean inherited)
public void unsetInheritanceApplied()
public boolean isInheritanceApplied()