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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ConfigurationContainer instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConstructor for this class, to be called from its subclasses andConfigurationContainer.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionThe configuration as DOM object.Gets the input location that caused this model to be read.Whether any configuration should be propagated to child POMs.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of 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.
- 
Constructor Details- 
ConfigurationContainerConstructor for this class, to be called from its subclasses andConfigurationContainer.Builder.- See Also:
 
 
- 
- 
Method Details- 
getInheritedWhether 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
 
- 
getConfigurationThe 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 are- merge(default) and- append,
- combine.self: available values are- merge(default) and- override.
 - Returns:
- a XmlNode
- See Also:
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
getLocationKeys
- 
getLocationKeyStream
- 
getImportedFromGets the input location that caused this model to be read.- Specified by:
- getImportedFromin interface- InputLocationTracker
- Returns:
- InputLocation
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withInheritedCreates a newConfigurationContainerinstance using the specified inherited.- Parameters:
- inherited- the new- Stringto use
- Returns:
- a ConfigurationContainerwith the specified inherited
 
- 
withConfigurationCreates a newConfigurationContainerinstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a ConfigurationContainerwith the specified configuration
 
- 
newInstanceCreates a newConfigurationContainerinstance. Equivalent tonewInstance(true).- Returns:
- a new ConfigurationContainer
- See Also:
 
- 
newInstanceCreates 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
 
- 
newBuilderCreates a newConfigurationContainerbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newConfigurationContainerbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newConfigurationContainerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- ConfigurationContainerinstance 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- the- ConfigurationContainerinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
isInheritedpublic boolean isInherited()
 
-