org.jvnet.hudson.proxy_dhcp
Enum DHCPMessageType

java.lang.Object
  extended by java.lang.Enum<DHCPMessageType>
      extended by org.jvnet.hudson.proxy_dhcp.DHCPMessageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DHCPMessageType>

public enum DHCPMessageType
extends java.lang.Enum<DHCPMessageType>

Author:
Kohsuke Kawaguchi

Enum Constant Summary
DHCPACK
           
DHCPDECLINE
           
DHCPDISCOVER
           
DHCPINFORM
           
DHCPLEASEACTIVE
           
DHCPLEASEQUERY
           
DHCPLEASEUNASSIGNED
           
DHCPLEASEUNKNOWN
           
DHCPNAK
           
DHCPOFFER
           
DHCPRELEASE
           
DHCPREQUEST
           
 
Field Summary
 int code
           
 
Method Summary
static DHCPMessageType byCode(int code)
           
 DHCPOption createOption()
           
static DHCPMessageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DHCPMessageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DHCPDISCOVER

public static final DHCPMessageType DHCPDISCOVER

DHCPOFFER

public static final DHCPMessageType DHCPOFFER

DHCPREQUEST

public static final DHCPMessageType DHCPREQUEST

DHCPDECLINE

public static final DHCPMessageType DHCPDECLINE

DHCPACK

public static final DHCPMessageType DHCPACK

DHCPNAK

public static final DHCPMessageType DHCPNAK

DHCPRELEASE

public static final DHCPMessageType DHCPRELEASE

DHCPINFORM

public static final DHCPMessageType DHCPINFORM

DHCPLEASEQUERY

public static final DHCPMessageType DHCPLEASEQUERY

DHCPLEASEUNASSIGNED

public static final DHCPMessageType DHCPLEASEUNASSIGNED

DHCPLEASEUNKNOWN

public static final DHCPMessageType DHCPLEASEUNKNOWN

DHCPLEASEACTIVE

public static final DHCPMessageType DHCPLEASEACTIVE
Field Detail

code

public final int code
Method Detail

values

public static DHCPMessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DHCPMessageType c : DHCPMessageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DHCPMessageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

byCode

public static DHCPMessageType byCode(int code)

createOption

public DHCPOption createOption()


Copyright © 2009. All Rights Reserved.