Package org.apache.maven.model
Class ActivationOS
- java.lang.Object
-
- org.apache.maven.model.ActivationOS
-
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class ActivationOS extends Object implements Serializable, Cloneable, InputLocationTracker
This 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 ActivationOS
clone()
Method clone.String
getArch()
Get the architecture of the operating system to be used to activate the profile.String
getFamily()
Get the general family of the OS to be used to activate the profile, such aswindows
orunix
.InputLocation
getLocation(Object key)
Gets the location of the specified field in the input source.String
getName()
Get the name of the operating system to be used to activate the profile.String
getVersion()
Get the version of the operating system to be used to activate the profile.void
setArch(String arch)
Set the architecture of the operating system to be used to activate the profile.void
setFamily(String family)
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setName(String name)
Set the name of the operating system to be used to activate the profile.void
setOtherLocation(Object key, InputLocation location)
void
setVersion(String version)
Set the version of the operating system to be used to activate the profile.
-
-
-
Method Detail
-
clone
public ActivationOS clone()
Method clone.
-
getArch
public String getArch()
Get the architecture of the operating system to be used to activate the profile.- Returns:
- String
-
getFamily
public String getFamily()
Get the general family of the OS to be used to activate the profile, such aswindows
orunix
.- Returns:
- String
-
getLocation
public InputLocation getLocation(Object key)
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
getName
public 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
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
getVersion
public String getVersion()
Get the version of the operating system to be used to activate the profile.- Returns:
- String
-
setArch
public void setArch(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(String family)
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.- Parameters:
family
- a family object.
-
setName
public void setName(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(String version)
Set the version of the operating system to be used to activate the profile.- Parameters:
version
- a version object.
-
-