Package org.apache.maven.api.settings
Class ActivationFile
java.lang.Object
org.apache.maven.api.settings.ActivationFile
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ActivationFile
extends Object
implements Serializable, InputLocationTracker
This is the file specification used to activate a profile. The missing value will be the location
 of a file that needs to exist, and if it doesn't the profile must run.  On the other hand exists will test
 for the existence of the file and if it is there will run the profile.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ActivationFile instances.
- 
Method SummaryModifier and TypeMethodDescriptionThe name of the file that should exist to activate a profile.getLocation(Object key) Gets the location of the specified field in the input source.The name of the file that should be missing to activate a profile.static ActivationFile.BuilderCreates a newActivationFilebuilder instance.static ActivationFile.BuildernewBuilder(boolean withDefaults) Creates a newActivationFilebuilder instance using default values or not.static ActivationFile.BuildernewBuilder(ActivationFile from) Creates a newActivationFilebuilder instance using the specified object as a basis.static ActivationFile.BuildernewBuilder(ActivationFile from, boolean forceCopy) Creates a newActivationFilebuilder instance using the specified object as a basis.static ActivationFileCreates a newActivationFileinstance.static ActivationFilenewInstance(boolean withDefaults) Creates a newActivationFileinstance using default values or not.with()Creates a new builder with this object as the basis.withExists(String exists) Creates a newActivationFileinstance using the specified exists.withMissing(String missing) Creates a newActivationFileinstance using the specified missing.
- 
Method Details- 
getMissingThe name of the file that should be missing to activate a profile.- Returns:
- a String
 
- 
getExistsThe name of the file that should exist 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
 
- 
withMissingCreates a newActivationFileinstance using the specified missing.- Parameters:
- missing- the new- Stringto use
- Returns:
- a ActivationFilewith the specified missing
 
- 
withExistsCreates a newActivationFileinstance using the specified exists.- Parameters:
- exists- the new- Stringto use
- Returns:
- a ActivationFilewith the specified exists
 
- 
newInstanceCreates a newActivationFileinstance. Equivalent tonewInstance(true).- Returns:
- a new ActivationFile
- See Also:
 
- 
newInstanceCreates a newActivationFileinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new ActivationFile
 
- 
newBuilderCreates a newActivationFilebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newActivationFilebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newActivationFilebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- ActivationFileinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newActivationFilebuilder instance using the specified object as a basis.- Parameters:
- from- the- ActivationFileinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-