edu.vt.middleware.ed
Class ServiceType

java.lang.Object
  extended by edu.vt.middleware.ed.AbstractDataType
      extended by edu.vt.middleware.ed.ServiceType
All Implemented Interfaces:
DataType, Serializable, Comparable<DataType>

public class ServiceType
extends AbstractDataType
implements Serializable

Contains service type data.

Version:
$Revision: 7374 $
Author:
Daniel Fisher
See Also:
Serialized Form

Field Summary
static DataType[] ALL_TYPES
          all types
static ServiceType PERSONAL
          personal service type
static ServiceType PRIVATE
          private service type
private static long serialVersionUID
          serial version UID
 
Fields inherited from class edu.vt.middleware.ed.AbstractDataType
HASH_CODE_SEED
 
Constructor Summary
protected ServiceType()
          Default constructor.
protected ServiceType(String code, String name)
          This creates a ServiceType with the supplied code and name.
 
Method Summary
static ServiceType getDataType(String typeCode)
          This returns the service type for the supplied type code.
 String getTypeCode()
          This returns the type code.
 String getTypeName()
          This returns the type name.
 
Methods inherited from class edu.vt.middleware.ed.AbstractDataType
compareTo, equals, getDataType, hashCode, setTypeCode, setTypeName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIVATE

public static final ServiceType PRIVATE
private service type


PERSONAL

public static final ServiceType PERSONAL
personal service type


ALL_TYPES

public static final DataType[] ALL_TYPES
all types


serialVersionUID

private static final long serialVersionUID
serial version UID

See Also:
Constant Field Values
Constructor Detail

ServiceType

protected ServiceType()
Default constructor.


ServiceType

protected ServiceType(String code,
                      String name)
This creates a ServiceType with the supplied code and name.

Parameters:
code - String
name - String
Method Detail

getDataType

public static ServiceType getDataType(String typeCode)
This returns the service type for the supplied type code.

Parameters:
typeCode - String
Returns:
ServiceType

getTypeCode

public String getTypeCode()
This returns the type code.

Specified by:
getTypeCode in interface DataType
Overrides:
getTypeCode in class AbstractDataType
Returns:
String - code

getTypeName

public String getTypeName()
This returns the type name.

Specified by:
getTypeName in interface DataType
Overrides:
getTypeName in class AbstractDataType
Returns:
String - name


Copyright © 2008 Virginia Tech. All Rights Reserved.