org.apache.directory.server.kerberos.shared.messages.value
Class HostAddressType

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.value.HostAddressType
All Implemented Interfaces:
java.lang.Comparable<HostAddressType>

public final class HostAddressType
extends java.lang.Object
implements java.lang.Comparable<HostAddressType>

Type-safe enumerator for RFC 4120 section 7.5.3 "Address Types."

Version:
$Rev: 557095 $, $Date: 2007-07-17 20:28:32 -0400 (Tue, 17 Jul 2007) $
Author:
Apache Directory Project

Field Summary
static HostAddressType ADDRTYPE_APPLETALK
          Constant for the "AppleTalk DDP" host address type.
static HostAddressType ADDRTYPE_CHAOSNET
          Constant for the "ChaosNet" host address type.
static HostAddressType ADDRTYPE_DECNET
          Constant for the "DECNET Phase IV" host address type.
static HostAddressType ADDRTYPE_DIRECTIONAL
          Constant for the "Directional" host address type.
static HostAddressType ADDRTYPE_IPV4
          Constant for the "IPv4" host address type.
static HostAddressType ADDRTYPE_IPV6
          Constant for the "IPv6" host address type.
static HostAddressType ADDRTYPE_ISO
          Constant for the "ISO" host address type.
static HostAddressType ADDRTYPE_NETBIOS
          Constant for the "NetBios" host address type.
static HostAddressType ADDRTYPE_XNS
          Constant for the "XEROX Network Services (XNS)" host address type.
static java.util.List<HostAddressType> VALUES
          A List of all the host address type constants.
 
Method Summary
 int compareTo(HostAddressType that)
           
 int getOrdinal()
          Returns the number associated with this host address type.
static HostAddressType getTypeByOrdinal(int type)
          Returns the host address type when specified by its ordinal.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADDRTYPE_IPV4

public static final HostAddressType ADDRTYPE_IPV4
Constant for the "IPv4" host address type.


ADDRTYPE_DIRECTIONAL

public static final HostAddressType ADDRTYPE_DIRECTIONAL
Constant for the "Directional" host address type.


ADDRTYPE_CHAOSNET

public static final HostAddressType ADDRTYPE_CHAOSNET
Constant for the "ChaosNet" host address type.


ADDRTYPE_XNS

public static final HostAddressType ADDRTYPE_XNS
Constant for the "XEROX Network Services (XNS)" host address type.


ADDRTYPE_ISO

public static final HostAddressType ADDRTYPE_ISO
Constant for the "ISO" host address type.


ADDRTYPE_DECNET

public static final HostAddressType ADDRTYPE_DECNET
Constant for the "DECNET Phase IV" host address type.


ADDRTYPE_APPLETALK

public static final HostAddressType ADDRTYPE_APPLETALK
Constant for the "AppleTalk DDP" host address type.


ADDRTYPE_NETBIOS

public static final HostAddressType ADDRTYPE_NETBIOS
Constant for the "NetBios" host address type.


ADDRTYPE_IPV6

public static final HostAddressType ADDRTYPE_IPV6
Constant for the "IPv6" host address type.


VALUES

public static final java.util.List<HostAddressType> VALUES
A List of all the host address type constants.

Method Detail

getTypeByOrdinal

public static HostAddressType getTypeByOrdinal(int type)
Returns the host address type when specified by its ordinal.

Parameters:
type -
Returns:
The host address type.

getOrdinal

public int getOrdinal()
Returns the number associated with this host address type.

Returns:
The host address type ordinal.

compareTo

public int compareTo(HostAddressType that)
Specified by:
compareTo in interface java.lang.Comparable<HostAddressType>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.