Class ActivationOS

java.lang.Object
org.apache.maven.model.ActivationOS
All Implemented Interfaces:
Serializable

public class ActivationOS extends Object implements Serializable
This is an activator which will detect an operating system's attributes in order to activate its profile.
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The architecture of the operating system to be used to activate the profile.
    private String
    The general family of the OS to be used to activate the profile, such as windows or unix.
    private String
    The name of the operating system to be used to activate the profile.
    private String
    The version of the operating system to be used to activate the profile.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the architecture of the operating system to be used to activate the profile.
    Get the general family of the OS to be used to activate the profile, such as windows or unix.
    Get the name of the operating system to be used to activate the profile.
    Get the version of the operating system to be used to activate the profile.
    void
    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 as windows or unix.
    void
    Set the name of the operating system to be used to activate the profile.
    void
    setVersion(String version)
    Set the version of the operating system to be used to activate the profile.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      private 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 as Windows XP.
    • family

      private String family
      The general family of the OS to be used to activate the profile, such as windows or unix.
    • arch

      private String arch
      The architecture of the operating system to be used to activate the profile.
    • version

      private String version
      The version of the operating system to be used to activate the profile.
  • Constructor Details

    • ActivationOS

      public ActivationOS()
  • Method Details

    • 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 as windows or unix.
      Returns:
      String
    • 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 as Windows XP.
      Returns:
      String
    • 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 -
    • setFamily

      public void setFamily(String family)
      Set the general family of the OS to be used to activate the profile, such as windows or unix.
      Parameters:
      family -
    • 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 as Windows XP.
      Parameters:
      name -
    • setVersion

      public void setVersion(String version)
      Set the version of the operating system to be used to activate the profile.
      Parameters:
      version -