Package org.apache.maven.api.settings
Class ActivationOS
java.lang.Object
org.apache.maven.api.settings.ActivationOS
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ActivationOS
extends Object
implements Serializable, InputLocationTracker
This is an activator which will detect an operating system's attributes in order to activate
 its profile.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ActivationOS instances.
- 
Method SummaryModifier and TypeMethodDescriptiongetArch()The architecture of the OS to be used to activate a profile.The general family of the OS to be used to activate a profile (e.g.getLocation(Object key) Gets the location of the specified field in the input source.getName()The name of the OS to be used to activate a profile.The version of the OS to be used to activate a profile.static ActivationOS.BuilderCreates a newActivationOSbuilder instance.static ActivationOS.BuildernewBuilder(boolean withDefaults) Creates a newActivationOSbuilder instance using default values or not.static ActivationOS.BuildernewBuilder(ActivationOS from) Creates a newActivationOSbuilder instance using the specified object as a basis.static ActivationOS.BuildernewBuilder(ActivationOS from, boolean forceCopy) Creates a newActivationOSbuilder instance using the specified object as a basis.static ActivationOSCreates a newActivationOSinstance.static ActivationOSnewInstance(boolean withDefaults) Creates a newActivationOSinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newActivationOSinstance using the specified arch.withFamily(String family) Creates a newActivationOSinstance using the specified family.Creates a newActivationOSinstance using the specified name.withVersion(String version) Creates a newActivationOSinstance using the specified version.
- 
Method Details- 
getNameThe name of the OS to be used to activate a profile.- Returns:
- a String
 
- 
getFamilyThe general family of the OS to be used to activate a profile (e.g. 'windows')- Returns:
- a String
 
- 
getArchThe architecture of the OS to be used to activate a profile.- Returns:
- a String
 
- 
getVersionThe version of the OS to be used 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 newActivationOSinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a ActivationOSwith the specified name
 
- 
withFamilyCreates a newActivationOSinstance using the specified family.- Parameters:
- family- the new- Stringto use
- Returns:
- a ActivationOSwith the specified family
 
- 
withArchCreates a newActivationOSinstance using the specified arch.- Parameters:
- arch- the new- Stringto use
- Returns:
- a ActivationOSwith the specified arch
 
- 
withVersionCreates a newActivationOSinstance using the specified version.- Parameters:
- version- the new- Stringto use
- Returns:
- a ActivationOSwith the specified version
 
- 
newInstanceCreates a newActivationOSinstance. Equivalent tonewInstance(true).- Returns:
- a new ActivationOS
- See Also:
 
- 
newInstanceCreates a newActivationOSinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new ActivationOS
 
- 
newBuilderCreates a newActivationOSbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newActivationOSbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newActivationOSbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- ActivationOSinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newActivationOSbuilder instance using the specified object as a basis.- Parameters:
- from- the- ActivationOSinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-