org.openflow.protocol
Class OFMatchField

java.lang.Object
  extended by org.openflow.protocol.OFOXMField
      extended by org.openflow.protocol.OFMatchField
All Implemented Interfaces:
java.lang.Cloneable

public class OFMatchField
extends OFOXMField
implements java.lang.Cloneable

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

Field Summary
protected  java.lang.Object mask
           
 
Fields inherited from class org.openflow.protocol.OFOXMField
hasMask, length, MINIMUM_LENGTH, type, value
 
Constructor Summary
OFMatchField()
           
OFMatchField(OFOXMFieldType type, java.lang.Object value)
           
OFMatchField(OFOXMFieldType type, java.lang.Object value, java.lang.Object mask)
           
 
Method Summary
 OFMatchField clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getMask()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 void setMask(java.lang.Object mask)
           
 java.lang.String toString()
           
 void updateValue()
           
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.OFOXMField
getHasMask, getHeader, getLength, getType, getValue, isAllZero, readObject, setValue, updateObjectType, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mask

protected java.lang.Object mask
Constructor Detail

OFMatchField

public OFMatchField()

OFMatchField

public OFMatchField(OFOXMFieldType type,
                    java.lang.Object value)

OFMatchField

public OFMatchField(OFOXMFieldType type,
                    java.lang.Object value,
                    java.lang.Object mask)
Method Detail

updateValue

public void updateValue()

getMask

public java.lang.Object getMask()

setMask

public void setMask(java.lang.Object mask)

readFrom

public void readFrom(java.nio.ByteBuffer data)
Overrides:
readFrom in class OFOXMField

writeTo

public void writeTo(java.nio.ByteBuffer data)
Overrides:
writeTo in class OFOXMField

hashCode

public int hashCode()
Overrides:
hashCode in class OFOXMField

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OFOXMField

clone

public OFMatchField clone()
                   throws java.lang.CloneNotSupportedException
Overrides:
clone in class OFOXMField
Throws:
java.lang.CloneNotSupportedException

toString

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