Package org.apache.maven.api.model
Class ActivationProperty
java.lang.Object
org.apache.maven.api.model.ActivationProperty
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ActivationProperty
extends Object
implements Serializable, InputLocationTracker
This is the property specification used to activate a profile. If the value field
 is empty, then the existence of the named property will activate the profile, otherwise it
 does a case-sensitive match against the property value as well.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ActivationProperty instances.
- 
Method SummaryModifier and TypeMethodDescriptiongetLocation(Object key) Gets the location of the specified field in the input source.getName()The name of the property to be used to activate a profile.getValue()The value of the property required to activate a profile.static ActivationProperty.BuilderCreates a newActivationPropertybuilder instance.static ActivationProperty.BuildernewBuilder(boolean withDefaults) Creates a newActivationPropertybuilder instance using default values or not.static ActivationProperty.BuildernewBuilder(ActivationProperty from) Creates a newActivationPropertybuilder instance using the specified object as a basis.static ActivationProperty.BuildernewBuilder(ActivationProperty from, boolean forceCopy) Creates a newActivationPropertybuilder instance using the specified object as a basis.static ActivationPropertyCreates a newActivationPropertyinstance.static ActivationPropertynewInstance(boolean withDefaults) Creates a newActivationPropertyinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newActivationPropertyinstance using the specified name.Creates a newActivationPropertyinstance using the specified value.
- 
Method Details- 
getNameThe name of the property to be used to activate a profile.- Returns:
- a String
 
- 
getValueThe value of the property required to activate a profile.- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withNameCreates a newActivationPropertyinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a ActivationPropertywith the specified name
 
- 
withValueCreates a newActivationPropertyinstance using the specified value.- Parameters:
- value- the new- Stringto use
- Returns:
- a ActivationPropertywith the specified value
 
- 
newInstanceCreates a newActivationPropertyinstance. Equivalent tonewInstance(true).- Returns:
- a new ActivationProperty
- See Also:
 
- 
newInstanceCreates a newActivationPropertyinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new ActivationProperty
 
- 
newBuilderCreates a newActivationPropertybuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newActivationPropertybuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newActivationPropertybuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- ActivationPropertyinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilder@Nonnull public static ActivationProperty.Builder newBuilder(ActivationProperty from, boolean forceCopy) Creates a newActivationPropertybuilder instance using the specified object as a basis.- Parameters:
- from- the- ActivationPropertyinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-