terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class OS

java.lang.Object
  extended by com.codemesh.terp.data.OS
All Implemented Interfaces:
Named, OSConstants, Versioned, java.io.Serializable, java.lang.Comparable<OS>

public final class OS
extends java.lang.Object
implements java.lang.Comparable<OS>, java.io.Serializable, Versioned, Named, OSConstants

The abstraction for Operating systems.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.codemesh.terp.data.OSConstants
FAMILY_AIX, FAMILY_FREEBSD, FAMILY_HPUX, FAMILY_IRIX, FAMILY_LINUX, FAMILY_MACOSX, FAMILY_OPENVMS, FAMILY_OS390, FAMILY_OSF1, FAMILY_QNX, FAMILY_SUNOS, FAMILY_WINDOWS, TRAIT_ARCHIVE_PREFIX, TRAIT_ARCHIVE_SUFFIX, TRAIT_CASE_SENSITIVE, TRAIT_ENVVAR_LIBRARY_SEARCH_PATH, TRAIT_EXE_PREFIX, TRAIT_EXE_SUFFIX, TRAIT_HAS_VERSION_SUFFIX, TRAIT_OBJECT_SUFFIX, TRAIT_SHARED_PREFIX, TRAIT_SHARED_SUFFIX
 
Method Summary
 void addProcArch(ProcArch pa)
           
 void addProcArchs(java.util.Collection<ProcArch> pa)
           
 void addTraits(java.util.Map traits)
           
 int compareTo(OS o)
           
 boolean equals(java.lang.Object obj)
           
static OS fromMap(java.util.Map<java.lang.String,java.lang.Object> data)
           
static OS fromOsNameAndOsVersion(java.lang.String name, java.lang.String vers)
           
static OS fromString(java.lang.String code)
           
 java.lang.String getCode()
           
 java.lang.String getFamily()
           
 java.lang.String getFlavor()
           
 java.lang.String getName()
          Returns the named object's name.
 java.util.Collection<ProcArch> getProcArchs()
           
 CaseInsensitiveTreeMap getTraits()
           
 Version getVersion()
           
 int hashCode()
           
 void setCode(java.lang.String code)
           
 void setFamily(java.lang.String family)
           
 void setFlavor(java.lang.String flavor)
           
 void setName(java.lang.String name)
           
 void setProcArchs(java.util.Collection<ProcArch> pa)
           
 void setVersion(Version vers)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

fromOsNameAndOsVersion

public static OS fromOsNameAndOsVersion(java.lang.String name,
                                        java.lang.String vers)

fromString

public static OS fromString(java.lang.String code)

fromMap

public static OS fromMap(java.util.Map<java.lang.String,java.lang.Object> data)

setCode

public void setCode(java.lang.String code)

getCode

public java.lang.String getCode()

setFamily

public void setFamily(java.lang.String family)

getFamily

public java.lang.String getFamily()

setFlavor

public void setFlavor(java.lang.String flavor)

getFlavor

public java.lang.String getFlavor()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Description copied from interface: Named
Returns the named object's name.

Specified by:
getName in interface Named
Returns:
the name.

addProcArchs

public void addProcArchs(java.util.Collection<ProcArch> pa)

addProcArch

public void addProcArch(ProcArch pa)

setProcArchs

public void setProcArchs(java.util.Collection<ProcArch> pa)

getProcArchs

public java.util.Collection<ProcArch> getProcArchs()

setVersion

public void setVersion(Version vers)

getVersion

public Version getVersion()
Specified by:
getVersion in interface Versioned

addTraits

public void addTraits(java.util.Map traits)

getTraits

public CaseInsensitiveTreeMap getTraits()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(OS o)
Specified by:
compareTo in interface java.lang.Comparable<OS>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

terp - the Codemesh Modular
Template Interpreter v1.3.337

Copyright © 2008-2016 by Codemesh, Inc. All Rights Reserved.