public class ConfigurationContainer extends Objectimplements 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
Gets the location of the specified field in the input source.
|
boolean |
isInheritanceApplied()
|
boolean |
isInherited()
|
void |
setConfiguration(Object
Set
|
void |
setInherited(boolean inherited)
|
void |
setInherited(String
Set whether any configuration should be propagated to child POMs.
|
void |
setLocation(Object
Sets the location of the specified field.
|
void |
unsetInheritanceApplied()
|
public ConfigurationContainerclone()
public ObjectgetConfiguration()
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 StringgetInherited()
String for technical reasons, the semantic type is actually
Boolean. Default value is
true.
public InputLocationgetLocation(Object key)
InputLocationTracker
getLocation in interface
InputLocationTracker
key -
public void setConfiguration(Objectconfiguration)
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(Stringinherited)
String for technical reasons, the semantic type is actually
Boolean. Default value is
true.
inherited -
public void setLocation(Objectkey, InputLocation location)
InputLocationTracker
setLocation in interface
InputLocationTracker
key -
location -
public boolean isInherited()
public void setInherited(boolean inherited)
public void unsetInheritanceApplied()
public boolean isInheritanceApplied()