Class Os
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.transformation.classes.Os
-
- All Implemented Interfaces:
java.io.Serializable
public class Os extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String_AIXprivate static java.lang.String_LINUXprivate static java.lang.String_SUNOSprivate static java.util.HashMap_table_private java.lang.String_value_private static java.lang.String_WINDOWSstatic OsAIXstatic java.lang.Stringerrstatic OsLINUXstatic OsSUNOSstatic OsWINDOWS
-
Constructor Summary
Constructors Modifier Constructor Description protectedOs(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares if a given Os object is equal to this.static OsfromString(java.lang.String value)Creates a new Os object given an os string.static OsfromValue(java.lang.String value)Creates a new Os object given an os string.java.lang.StringgetValue()Returns the value of the operating system as string.inthashCode()java.lang.StringtoString()Returns the string value of the operating system.
-
-
-
Field Detail
-
_value_
private java.lang.String _value_
-
_table_
private static java.util.HashMap _table_
-
_LINUX
private static final java.lang.String _LINUX
- See Also:
- Constant Field Values
-
_SUNOS
private static final java.lang.String _SUNOS
- See Also:
- Constant Field Values
-
_AIX
private static final java.lang.String _AIX
- See Also:
- Constant Field Values
-
_WINDOWS
private static final java.lang.String _WINDOWS
- See Also:
- Constant Field Values
-
LINUX
public static final Os LINUX
-
SUNOS
public static final Os SUNOS
-
AIX
public static final Os AIX
-
WINDOWS
public static final Os WINDOWS
-
err
public static final java.lang.String err
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of the operating system as string.- Returns:
- String
-
fromValue
public static Os fromValue(java.lang.String value) throws java.lang.IllegalStateException
Creates a new Os object given an os string.- Parameters:
value- String- Returns:
- Os
- Throws:
java.lang.IllegalStateException- Throws Exception if the operating system is not defined in this class.
-
fromString
public static Os fromString(java.lang.String value) throws java.lang.IllegalStateException
Creates a new Os object given an os string.- Parameters:
value- String- Returns:
- Os
- Throws:
java.lang.IllegalStateException- Throws Exception if the operating system is not defined in this class.
-
equals
public boolean equals(java.lang.Object obj)
Compares if a given Os object is equal to this.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- Object- Returns:
- boolean
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the string value of the operating system.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-