org.openflow.protocol
Enum OFOXMFieldType

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

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

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

Enum Constant Summary
ARP_OP
           
ARP_SHA
           
ARP_SPA
           
ARP_THA
           
ARP_TPA
           
ETH_DST
           
ETH_SRC
           
ETH_TYPE
           
ICMPV4_CODE
           
ICMPV4_TYPE
           
ICMPV6_CODE
           
ICMPV6_TYPE
           
IN_PHY_PORT
           
IN_PORT
           
IP_DSCP
           
IP_ECN
           
IP_PROTO
           
IPV4_DST
           
IPV4_SRC
           
IPV6_DST
           
IPV6_EXTHDR
           
IPV6_FLABEL
           
IPV6_ND_SLL
           
IPV6_ND_TARGET
           
IPV6_ND_TLL
           
IPV6_SRC
           
METADATA
           
MPLS_BOS
           
MPLS_LABEL
           
MPLS_TC
           
PBB_ISID
           
SCTP_DST
           
SCTP_SRC
           
TCP_DST
           
TCP_SRC
           
TUNNEL_ID
           
UDP_DST
           
UDP_SRC
           
VLAN_PCP
           
VLAN_VID
           
 
Field Summary
protected  short matchClass
           
protected  java.lang.String name
           
protected  byte payloadLength
           
protected  short value
           
 
Method Summary
static void addMapping(short i, OFOXMFieldType mt)
          Adds a mapping from type value to OFOXMFieldType enum
 short getMatchClass()
           
 java.lang.String getName()
           
 byte getPayloadLength()
           
 short getValue()
           
static void removeMapping(short i)
          Remove a mapping from type value to OFOXMFieldType enum
 java.lang.String toString()
           
static OFOXMFieldType valueOf(byte i)
          Given a wire protocol field type number, return the OFOXMFieldType associated with it
static OFOXMFieldType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OFOXMFieldType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IN_PORT

public static final OFOXMFieldType IN_PORT

IN_PHY_PORT

public static final OFOXMFieldType IN_PHY_PORT

METADATA

public static final OFOXMFieldType METADATA

ETH_DST

public static final OFOXMFieldType ETH_DST

ETH_SRC

public static final OFOXMFieldType ETH_SRC

ETH_TYPE

public static final OFOXMFieldType ETH_TYPE

VLAN_VID

public static final OFOXMFieldType VLAN_VID

VLAN_PCP

public static final OFOXMFieldType VLAN_PCP

IP_DSCP

public static final OFOXMFieldType IP_DSCP

IP_ECN

public static final OFOXMFieldType IP_ECN

IP_PROTO

public static final OFOXMFieldType IP_PROTO

IPV4_SRC

public static final OFOXMFieldType IPV4_SRC

IPV4_DST

public static final OFOXMFieldType IPV4_DST

TCP_SRC

public static final OFOXMFieldType TCP_SRC

TCP_DST

public static final OFOXMFieldType TCP_DST

UDP_SRC

public static final OFOXMFieldType UDP_SRC

UDP_DST

public static final OFOXMFieldType UDP_DST

SCTP_SRC

public static final OFOXMFieldType SCTP_SRC

SCTP_DST

public static final OFOXMFieldType SCTP_DST

ICMPV4_TYPE

public static final OFOXMFieldType ICMPV4_TYPE

ICMPV4_CODE

public static final OFOXMFieldType ICMPV4_CODE

ARP_OP

public static final OFOXMFieldType ARP_OP

ARP_SPA

public static final OFOXMFieldType ARP_SPA

ARP_TPA

public static final OFOXMFieldType ARP_TPA

ARP_SHA

public static final OFOXMFieldType ARP_SHA

ARP_THA

public static final OFOXMFieldType ARP_THA

IPV6_SRC

public static final OFOXMFieldType IPV6_SRC

IPV6_DST

public static final OFOXMFieldType IPV6_DST

IPV6_FLABEL

public static final OFOXMFieldType IPV6_FLABEL

ICMPV6_TYPE

public static final OFOXMFieldType ICMPV6_TYPE

ICMPV6_CODE

public static final OFOXMFieldType ICMPV6_CODE

IPV6_ND_TARGET

public static final OFOXMFieldType IPV6_ND_TARGET

IPV6_ND_SLL

public static final OFOXMFieldType IPV6_ND_SLL

IPV6_ND_TLL

public static final OFOXMFieldType IPV6_ND_TLL

MPLS_LABEL

public static final OFOXMFieldType MPLS_LABEL

MPLS_TC

public static final OFOXMFieldType MPLS_TC

MPLS_BOS

public static final OFOXMFieldType MPLS_BOS

PBB_ISID

public static final OFOXMFieldType PBB_ISID

TUNNEL_ID

public static final OFOXMFieldType TUNNEL_ID

IPV6_EXTHDR

public static final OFOXMFieldType IPV6_EXTHDR
Field Detail

value

protected short value

name

protected java.lang.String name

matchClass

protected short matchClass

payloadLength

protected byte payloadLength
Method Detail

values

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

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

valueOf

public static OFOXMFieldType 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,
                              OFOXMFieldType mt)
Adds a mapping from type value to OFOXMFieldType enum

Parameters:
i - field type field value
mt - type

removeMapping

public static void removeMapping(short i)
Remove a mapping from type value to OFOXMFieldType enum

Parameters:
i - field type field value

valueOf

public static OFOXMFieldType valueOf(byte i)
Given a wire protocol field type number, return the OFOXMFieldType associated with it

Parameters:
i - field type field value
Returns:
OFOXMFieldType enum type

getMatchClass

public short getMatchClass()
Returns:
the values

getName

public java.lang.String getName()

getValue

public short getValue()

getPayloadLength

public byte getPayloadLength()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<OFOXMFieldType>