org.griphyn.common.classes
Class TCType

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

public class TCType
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String _DYNAMIC_BINARY
           
static String _INSTALLED
           
static String _PACMAN_PACKAGE
           
static String _SCRIPT
           
static String _SOURCE
           
static String _STATIC_BINARY
           
private static HashMap _table_
           
private  String _value_
           
static TCType DYNAMIC_BINARY
           
static String err
           
static TCType INSTALLED
           
static TCType PACMAN_PACKAGE
           
static TCType SCRIPT
           
static TCType SOURCE
           
static TCType STATIC_BINARY
           
 
Constructor Summary
protected TCType(String value)
           
 
Method Summary
 boolean equals(Object obj)
          Compares if a given TCType object equals this TCType object.
static TCType fromString(String value)
          Creates an object of TCType given a string.
static TCType fromValue(String value)
          Creates an objct of TCType given a string.
 String getValue()
          Returns the string value of the type of transformation.
 int hashCode()
           
 String toString()
          Returns the string value of the type of transformation.
 
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_

_STATIC_BINARY

public static final String _STATIC_BINARY
See Also:
Constant Field Values

_DYNAMIC_BINARY

public static final String _DYNAMIC_BINARY
See Also:
Constant Field Values

_INSTALLED

public static final String _INSTALLED
See Also:
Constant Field Values

_SOURCE

public static final String _SOURCE
See Also:
Constant Field Values

_PACMAN_PACKAGE

public static final String _PACMAN_PACKAGE
See Also:
Constant Field Values

_SCRIPT

public static final String _SCRIPT
See Also:
Constant Field Values

STATIC_BINARY

public static final TCType STATIC_BINARY

DYNAMIC_BINARY

public static final TCType DYNAMIC_BINARY

INSTALLED

public static final TCType INSTALLED

SOURCE

public static final TCType SOURCE

PACMAN_PACKAGE

public static final TCType PACMAN_PACKAGE

SCRIPT

public static final TCType SCRIPT

err

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

TCType

protected TCType(String value)
Method Detail

getValue

public String getValue()
Returns the string value of the type of transformation.

Returns:
String

fromValue

public static TCType fromValue(String value)
                        throws IllegalStateException
Creates an objct of TCType given a string.

Parameters:
value - String The type value as string
Returns:
TCType
Throws:
IllegalStateException - Throws Exception if the type is not defined in this class

fromString

public static TCType fromString(String value)
                         throws IllegalStateException
Creates an object of TCType given a string.

Parameters:
value - String The type value as string.
Returns:
TCType
Throws:
IllegalStateException - Throws Exception if the type is not defined in this class.

equals

public boolean equals(Object obj)
Compares if a given TCType object equals this TCType object.

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 type of transformation.

Overrides:
toString in class Object
Returns:
String


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