public class ConfigurationContainer extends Object implements Serializable, Cloneable, InputLocationTracker
| Constructor and Description |
|---|
ConfigurationContainer() |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationContainer |
clone()
Method clone.
|
Object |
getConfiguration()
Get
|
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
|
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 |
setOtherLocation(Object key,
InputLocation location) |
void |
unsetInheritanceApplied() |
public ConfigurationContainer clone()
public 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 String getInherited()
String for
technical reasons, the semantic type is actually
Boolean. Default value is
true.public InputLocation getLocation(Object key)
InputLocationTrackergetLocation in interface InputLocationTrackerkey - public void setLocation(Object key, InputLocation location)
InputLocationTrackersetLocation in interface InputLocationTrackerkey - location - public void setOtherLocation(Object key, InputLocation location)
key - location - public void setConfiguration(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(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()
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.