Package org.apache.maven.model
Class ActivationOS
- java.lang.Object
-
- org.apache.maven.model.ActivationOS
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,InputLocationTracker
public class ActivationOS extends java.lang.Object implements java.io.Serializable, java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
arch
The architecture of the operating system to be used to activate the profile.private InputLocation
archLocation
Field archLocation.private java.lang.String
family
The general family of the OS to be used to activate the profile, such aswindows
orunix
.private InputLocation
familyLocation
Field familyLocation.private InputLocation
location
Field location.private java.util.Map<java.lang.Object,InputLocation>
locations
Field locations.private java.lang.String
name
The name of the operating system to be used to activate the profile.private InputLocation
nameLocation
Field nameLocation.private java.lang.String
version
The version of the operating system to be used to activate the profile.private InputLocation
versionLocation
Field versionLocation.
-
Constructor Summary
Constructors Constructor Description ActivationOS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationOS
clone()
Method clone.java.lang.String
getArch()
Get the architecture of the operating system to be used to activate the profile.java.lang.String
getFamily()
Get the general family of the OS to be used to activate the profile, such aswindows
orunix
.InputLocation
getLocation(java.lang.Object key)
Gets the location of the specified field in the input source.java.lang.String
getName()
Get the name of the operating system to be used to activate the profile.private InputLocation
getOtherLocation(java.lang.Object key)
java.lang.String
getVersion()
Get the version of the operating system to be used to activate the profile.void
setArch(java.lang.String arch)
Set the architecture of the operating system to be used to activate the profile.void
setFamily(java.lang.String family)
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.void
setLocation(java.lang.Object key, InputLocation location)
Sets the location of the specified field.void
setName(java.lang.String name)
Set the name of the operating system to be used to activate the profile.void
setOtherLocation(java.lang.Object key, InputLocation location)
void
setVersion(java.lang.String version)
Set the version of the operating system to be used to activate the profile.
-
-
-
Field Detail
-
name
private java.lang.String name
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
.
-
family
private java.lang.String family
The general family of the OS to be used to activate the profile, such aswindows
orunix
.
-
arch
private java.lang.String arch
The architecture of the operating system to be used to activate the profile.
-
version
private java.lang.String version
The version of the operating system to be used to activate the profile.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
nameLocation
private InputLocation nameLocation
Field nameLocation.
-
familyLocation
private InputLocation familyLocation
Field familyLocation.
-
archLocation
private InputLocation archLocation
Field archLocation.
-
versionLocation
private InputLocation versionLocation
Field versionLocation.
-
-
Method Detail
-
clone
public ActivationOS clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- ActivationOS
-
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 aswindows
orunix
.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.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 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
-
setLocation
public void setLocation(java.lang.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(java.lang.Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
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 aswindows
orunix
.- 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.
-
-