org.griphyn.common.classes
Class Arch

java.lang.Object
  extended by org.griphyn.common.classes.Arch
All Implemented Interfaces:
Serializable

public class Arch
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
private static String _AMD64
           
private static String _INTEL32
           
private static String _INTEL64
           
private static String _SPARCV7
           
private static String _SPARCV9
           
private static HashMap _table_
           
private  String _value_
           
static Arch AMD64
           
static String err
           
static Arch INTEL32
           
static Arch INTEL64
           
static Arch SPARCV7
           
static Arch SPARCV9
           
 
Constructor Summary
protected Arch(String value)
           
 
Method Summary
 boolean equals(Object obj)
          Compares if a given Arch object is equal to this.
static Arch fromString(String value)
          Creates a new Arch object given a arch string.
static Arch fromValue(String value)
          Creates a new Arch Object givan a arch string.
 String getValue()
          Returns the value of the architecture as string.
 int hashCode()
           
 String toString()
          Returns the string value of the architecture.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_value_

private String _value_

_table_

private static HashMap _table_

_INTEL32

private static final String _INTEL32
See Also:
Constant Field Values

_INTEL64

private static final String _INTEL64
See Also:
Constant Field Values

_SPARCV7

private static final String _SPARCV7
See Also:
Constant Field Values

_SPARCV9

private static final String _SPARCV9
See Also:
Constant Field Values

_AMD64

private static final String _AMD64
See Also:
Constant Field Values

INTEL32

public static final Arch INTEL32

INTEL64

public static final Arch INTEL64

SPARCV7

public static final Arch SPARCV7

SPARCV9

public static final Arch SPARCV9

AMD64

public static final Arch AMD64

err

public static final String err
See Also:
Constant Field Values
Constructor Detail

Arch

protected Arch(String value)
Method Detail

getValue

public String getValue()
Returns the value of the architecture as string.

Returns:
String

fromValue

public static Arch fromValue(String value)
                      throws IllegalStateException
Creates a new Arch Object givan a arch string.

Parameters:
value - String
Returns:
Arch
Throws:
IllegalStateException - Throws Exception if the architecure is not defined in this class.

fromString

public static Arch fromString(String value)
                       throws IllegalStateException
Creates a new Arch object given a arch string.

Parameters:
value - String
Returns:
Arch
Throws:
IllegalStateException - Throws Exception if the architecure is not defined in this class.

equals

public boolean equals(Object obj)
Compares if a given Arch object is equal to this.

Overrides:
equals in class Object
Parameters:
obj - Object
Returns:
boolean

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Returns the string value of the architecture.

Overrides:
toString in class Object
Returns:
String


Copyright © 2007 The University of Southern California. All Rights Reserved.