public static OFOxmClass ofWireValue(short val) { switch(val) { case NXM_0_VAL: return OFOxmClass.NXM_0; case NXM_1_VAL: return OFOxmClass.NXM_1; case OPENFLOW_BASIC_VAL: return OFOxmClass.OPENFLOW_BASIC; case PACKET_REGS_VAL: return OFOxmClass.PACKET_REGS; case EXPERIMENTER_VAL: return OFOxmClass.EXPERIMENTER; default: throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.5: " + val); } }
public static short toWireValue(OFOxmClass e) { switch(e) { case NXM_0: return NXM_0_VAL; case NXM_1: return NXM_1_VAL; case OPENFLOW_BASIC: return OPENFLOW_BASIC_VAL; case PACKET_REGS: return PACKET_REGS_VAL; case EXPERIMENTER: return EXPERIMENTER_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.5: " + e); } }
public static OFOxmClass readFrom(ChannelBuffer bb) throws OFParseError { try { return ofWireValue(bb.readShort()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static OFOxmClass ofWireValue(short val) { switch(val) { case NXM_0_VAL: return OFOxmClass.NXM_0; case NXM_1_VAL: return OFOxmClass.NXM_1; case OPENFLOW_BASIC_VAL: return OFOxmClass.OPENFLOW_BASIC; case EXPERIMENTER_VAL: return OFOxmClass.EXPERIMENTER; default: throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.2: " + val); } }
public static short toWireValue(OFOxmClass e) { switch(e) { case NXM_0: return NXM_0_VAL; case NXM_1: return NXM_1_VAL; case OPENFLOW_BASIC: return OPENFLOW_BASIC_VAL; case EXPERIMENTER: return EXPERIMENTER_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.2: " + e); } }
public static OFOxmClass ofWireValue(short val) { switch(val) { case NXM_0_VAL: return OFOxmClass.NXM_0; case NXM_1_VAL: return OFOxmClass.NXM_1; case OPENFLOW_BASIC_VAL: return OFOxmClass.OPENFLOW_BASIC; case EXPERIMENTER_VAL: return OFOxmClass.EXPERIMENTER; default: throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.3: " + val); } }
public static short toWireValue(OFOxmClass e) { switch(e) { case NXM_0: return NXM_0_VAL; case NXM_1: return NXM_1_VAL; case OPENFLOW_BASIC: return OPENFLOW_BASIC_VAL; case EXPERIMENTER: return EXPERIMENTER_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.3: " + e); } }
public static OFOxmClass ofWireValue(short val) { switch(val) { case NXM_0_VAL: return OFOxmClass.NXM_0; case NXM_1_VAL: return OFOxmClass.NXM_1; case OPENFLOW_BASIC_VAL: return OFOxmClass.OPENFLOW_BASIC; case EXPERIMENTER_VAL: return OFOxmClass.EXPERIMENTER; default: throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.4: " + val); } }
public static short toWireValue(OFOxmClass e) { switch(e) { case NXM_0: return NXM_0_VAL; case NXM_1: return NXM_1_VAL; case OPENFLOW_BASIC: return OPENFLOW_BASIC_VAL; case EXPERIMENTER: return EXPERIMENTER_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.4: " + e); } }
public static OFOxmClass readFrom(ByteBuf bb) throws OFParseError { try { return ofWireValue(bb.readShort()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static void writeTo(ChannelBuffer bb, OFOxmClass e) { bb.writeShort(toWireValue(e)); }
public static void putTo(OFOxmClass e, PrimitiveSink sink) { sink.putShort(toWireValue(e)); }
public static void writeTo(ByteBuf bb, OFOxmClass e) { bb.writeShort(toWireValue(e)); }