Package org.apache.maven.api.model
Class ConfigurationContainer
java.lang.Object
org.apache.maven.api.model.ConfigurationContainer
- All Implemented Interfaces:
 Serializable,InputLocationTracker
- Direct Known Subclasses:
 Plugin,PluginExecution,ReportPlugin,ReportSet
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ConfigurationContainer
extends Object
implements Serializable, InputLocationTracker
Contains the configuration information of the container like Plugin.
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ConfigurationContainer instances. - 
Method Summary
Modifier and TypeMethodDescriptionThe configuration as DOM object.Whether any configuration should be propagated to child POMs.getLocation(Object key) Gets the location of the specified field in the input source.booleanCreates a newConfigurationContainerbuilder instance.newBuilder(boolean withDefaults) Creates a newConfigurationContainerbuilder instance using default values or not.Creates a newConfigurationContainerbuilder instance using the specified object as a basis.newBuilder(ConfigurationContainer from, boolean forceCopy) Creates a newConfigurationContainerbuilder instance using the specified object as a basis.static ConfigurationContainerCreates a newConfigurationContainerinstance.static ConfigurationContainernewInstance(boolean withDefaults) Creates a newConfigurationContainerinstance using default values or not.with()Creates a new builder with this object as the basis.withConfiguration(XmlNode configuration) Creates a newConfigurationContainerinstance using the specified configuration.withInherited(String inherited) Creates a newConfigurationContainerinstance using the specified inherited. 
- 
Method Details
- 
getInherited
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:
 - a 
String 
 - 
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.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:
 - a 
XmlNode 
 - 
getLocation
Gets the location of the specified field in the input source.- Specified by:
 getLocationin interfaceInputLocationTracker
 - 
with
Creates a new builder with this object as the basis.- Returns:
 - a 
Builder 
 - 
withInherited
Creates a newConfigurationContainerinstance using the specified inherited.- Parameters:
 inherited- the newStringto use- Returns:
 - a 
ConfigurationContainerwith the specified inherited 
 - 
withConfiguration
Creates a newConfigurationContainerinstance using the specified configuration.- Parameters:
 configuration- the newXmlNodeto use- Returns:
 - a 
ConfigurationContainerwith the specified configuration 
 - 
newInstance
Creates a newConfigurationContainerinstance. Equivalent tonewInstance(true).- Returns:
 - a new 
ConfigurationContainer - See Also:
 
 - 
newInstance
Creates a newConfigurationContainerinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
 withDefaults- the boolean indicating whether default values should be used- Returns:
 - a new 
ConfigurationContainer 
 - 
newBuilder
Creates a newConfigurationContainerbuilder instance. Equivalent tonewBuilder(true).- Returns:
 - a new 
Builder - See Also:
 
 - 
newBuilder
Creates a newConfigurationContainerbuilder instance using default values or not.- Parameters:
 withDefaults- the boolean indicating whether default values should be used- Returns:
 - a new 
Builder 
 - 
newBuilder
Creates a newConfigurationContainerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
 from- theConfigurationContainerinstance to use as a basis- Returns:
 - a new 
Builder 
 - 
newBuilder
@Nonnull public static ConfigurationContainer.Builder newBuilder(ConfigurationContainer from, boolean forceCopy) Creates a newConfigurationContainerbuilder instance using the specified object as a basis.- Parameters:
 from- theConfigurationContainerinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
 - a new 
Builder 
 - 
isInherited
public boolean isInherited() 
 -