edu.vt.middleware.ed
Class AddressType

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

public class AddressType
extends AbstractDataType
implements Serializable

Contains address type data.

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

Field Summary
static DataType[] ALL_TYPES
          all types
static AddressType HOME
          home phone type
static AddressType LOCAL
          local phone type
static AddressType OFFICE
          office phone type
private static long serialVersionUID
          serial version UID
 
Fields inherited from class edu.vt.middleware.ed.AbstractDataType
HASH_CODE_SEED
 
Constructor Summary
protected AddressType()
          Default constructor.
protected AddressType(String code, String name)
          This creates a AddressType with the supplied code and name.
 
Method Summary
static AddressType getDataType(String typeCode)
          This returns the address 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

HOME

public static final AddressType HOME
home phone type


LOCAL

public static final AddressType LOCAL
local phone type


OFFICE

public static final AddressType OFFICE
office phone 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

AddressType

protected AddressType()
Default constructor.


AddressType

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

Parameters:
code - String
name - String
Method Detail

getDataType

public static AddressType getDataType(String typeCode)
This returns the address type for the supplied type code.

Parameters:
typeCode - String
Returns:
AddressType

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.