org.openflow.protocol.hello
Enum OFHelloElementType

java.lang.Object
  extended by java.lang.Enum<OFHelloElementType>
      extended by org.openflow.protocol.hello.OFHelloElementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OFHelloElementType>

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

Represents an ofp_hello_element_type enum

Author:
Srini Seetharaaman (srini.seetharaman@gmail.com)

Enum Constant Summary
VERSION_BITMAP
           
 
Field Summary
protected  java.lang.Class<? extends OFHelloElement> clazz
           
protected  java.lang.reflect.Constructor<? extends OFHelloElement> constructor
           
protected  Instantiable<OFHelloElement> instantiable
           
protected static OFHelloElementType[] mapping
           
protected  short type
           
 
Method Summary
static void addMapping(short i, OFHelloElementType t)
          Adds a mapping from type value to OFHelloElementType enum
 Instantiable<OFHelloElement> getInstantiable()
           
 short getTypeValue()
           
 OFHelloElement newInstance()
          Returns a new instance of the OFHelloElement represented by this OFHelloElementType
 void setInstantiable(Instantiable<OFHelloElement> instantiable)
           
static OFHelloElementType valueOf(short i)
          Given a wire protocol OpenFlow type number, return the OFHelloElementType associated with it
static OFHelloElementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OFHelloElementType[] 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

VERSION_BITMAP

public static final OFHelloElementType VERSION_BITMAP
Field Detail

type

protected short type

mapping

protected static OFHelloElementType[] mapping

clazz

protected java.lang.Class<? extends OFHelloElement> clazz

constructor

protected java.lang.reflect.Constructor<? extends OFHelloElement> constructor

instantiable

protected Instantiable<OFHelloElement> instantiable
Method Detail

values

public static OFHelloElementType[] 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 (OFHelloElementType c : OFHelloElementType.values())
    System.out.println(c);

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

valueOf

public static OFHelloElementType 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

addMapping

public static void addMapping(short i,
                              OFHelloElementType t)
Adds a mapping from type value to OFHelloElementType enum

Parameters:
i - OpenFlow wire protocol HelloElement type value
t - type

valueOf

public static OFHelloElementType valueOf(short i)
Given a wire protocol OpenFlow type number, return the OFHelloElementType associated with it

Parameters:
i - wire protocol number
Returns:
OFHelloElementType enum

getTypeValue

public short getTypeValue()
Returns:
the value

newInstance

public OFHelloElement newInstance()
Returns a new instance of the OFHelloElement represented by this OFHelloElementType

Returns:
the new object

getInstantiable

public Instantiable<OFHelloElement> getInstantiable()
Returns:
the instantiable

setInstantiable

public void setInstantiable(Instantiable<OFHelloElement> instantiable)
Parameters:
instantiable - the instantiable to set