com.parabon.common.manifest.condition
Class Compatible

java.lang.Object
  extended by com.parabon.common.manifest.condition.Compatible
All Implemented Interfaces:
Condition

public class Compatible
extends java.lang.Object
implements Condition


Field Summary
static java.lang.String ARCH_IA64
           
static java.lang.String ARCH_POWERPC
           
static java.lang.String ARCH_SPARC
           
static java.lang.String ARCH_X86
           
static java.lang.String ARCH_X86_64
           
static java.lang.String FAMILY_UNIX
           
static java.lang.String FAMILY_WINDOWS
           
static java.lang.String OS_LINUX
           
static java.lang.String OS_SOLARIS
           
static java.lang.String OS_X
           
 
Constructor Summary
Compatible()
           
 
Method Summary
static java.lang.String determineOsFamily(java.lang.String osName)
           
 boolean eval(EvaluationContext ctx)
           
 java.lang.String getArch()
           
 java.lang.String getMajorVersion()
           
 java.lang.String getMinorVersion()
           
 java.lang.String getOsFamily()
           
 java.lang.String getOsName()
           
 java.lang.String getReleaseVersion()
           
 java.lang.String getVersion()
           
 void setArch(java.lang.String arch)
           
 void setMajorVersion(java.lang.String majorVersion)
           
 void setMinorVersion(java.lang.String minorVersion)
           
 void setOsFamily(java.lang.String family)
           
 void setOsName(java.lang.String name)
           
 void setReleaseVersion(java.lang.String releaseVersion)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAMILY_WINDOWS

public static final java.lang.String FAMILY_WINDOWS
See Also:
Constant Field Values

FAMILY_UNIX

public static final java.lang.String FAMILY_UNIX
See Also:
Constant Field Values

OS_LINUX

public static final java.lang.String OS_LINUX
See Also:
Constant Field Values

OS_SOLARIS

public static final java.lang.String OS_SOLARIS
See Also:
Constant Field Values

OS_X

public static final java.lang.String OS_X
See Also:
Constant Field Values

ARCH_X86

public static final java.lang.String ARCH_X86
See Also:
Constant Field Values

ARCH_X86_64

public static final java.lang.String ARCH_X86_64
See Also:
Constant Field Values

ARCH_IA64

public static final java.lang.String ARCH_IA64
See Also:
Constant Field Values

ARCH_SPARC

public static final java.lang.String ARCH_SPARC
See Also:
Constant Field Values

ARCH_POWERPC

public static final java.lang.String ARCH_POWERPC
See Also:
Constant Field Values
Constructor Detail

Compatible

public Compatible()
Method Detail

determineOsFamily

public static java.lang.String determineOsFamily(java.lang.String osName)

setOsFamily

public void setOsFamily(java.lang.String family)

getOsFamily

public java.lang.String getOsFamily()

setOsName

public void setOsName(java.lang.String name)

getOsName

public java.lang.String getOsName()

setArch

public void setArch(java.lang.String arch)

getArch

public java.lang.String getArch()

setVersion

public void setVersion(java.lang.String version)

getVersion

public java.lang.String getVersion()

setMajorVersion

public void setMajorVersion(java.lang.String majorVersion)

getMajorVersion

public java.lang.String getMajorVersion()

setMinorVersion

public void setMinorVersion(java.lang.String minorVersion)

getMinorVersion

public java.lang.String getMinorVersion()

setReleaseVersion

public void setReleaseVersion(java.lang.String releaseVersion)

getReleaseVersion

public java.lang.String getReleaseVersion()

eval

public boolean eval(EvaluationContext ctx)
Specified by:
eval in interface Condition