Package org.apache.maven.model
Class ActivationOS
- java.lang.Object
-
- org.apache.maven.model.ActivationOS
-
- All Implemented Interfaces:
java.io.Serializable
public class ActivationOS extends java.lang.Object implements java.io.SerializableThis is an activator which will detect an operating system's attributes in order to activate its profile.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivationOS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArch()Get the architecture of the operating system to be used to activate the profile.java.lang.StringgetFamily()Get the general family of the OS to be used to activate the profile, such aswindowsorunix.java.lang.StringgetName()Get the name of the operating system to be used to activate the profile.java.lang.StringgetVersion()Get the version of the operating system to be used to activate the profile.voidsetArch(java.lang.String arch)Set the architecture of the operating system to be used to activate the profile.voidsetFamily(java.lang.String family)Set the general family of the OS to be used to activate the profile, such aswindowsorunix.voidsetName(java.lang.String name)Set the name of the operating system to be used to activate the profile.voidsetVersion(java.lang.String version)Set the version of the operating system to be used to activate the profile.
-
-
-
Method Detail
-
getArch
public java.lang.String getArch()
Get the architecture of the operating system to be used to activate the profile.- Returns:
- String
-
getFamily
public java.lang.String getFamily()
Get the general family of the OS to be used to activate the profile, such aswindowsorunix.- Returns:
- String
-
getName
public java.lang.String getName()
Get the name of the operating system to be used to activate the profile. This must be an exact match of the${os.name}Java property, such asWindows XP.- Returns:
- String
-
getVersion
public java.lang.String getVersion()
Get the version of the operating system to be used to activate the profile.- Returns:
- String
-
setArch
public void setArch(java.lang.String arch)
Set the architecture of the operating system to be used to activate the profile.- Parameters:
arch- a arch object.
-
setFamily
public void setFamily(java.lang.String family)
Set the general family of the OS to be used to activate the profile, such aswindowsorunix.- Parameters:
family- a family object.
-
setName
public void setName(java.lang.String name)
Set the name of the operating system to be used to activate the profile. This must be an exact match of the${os.name}Java property, such asWindows XP.- Parameters:
name- a name object.
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the operating system to be used to activate the profile.- Parameters:
version- a version object.
-
-