Miscellaneous driver fixes found while migrating and testing the new Arris API submis...
[packetcable.git] / packetcable-driver / src / main / java / org / pcmm / gates / impl / ExtendedClassifier.java
index 0e68f50934961159f413748aa03b8d1ee33e3085..2ebc2bcdb45b656b46fc2ae516129f4aedd01f23 100644 (file)
@@ -3,12 +3,12 @@
  */
 package org.pcmm.gates.impl;
 
-import java.net.InetAddress;
-import java.net.UnknownHostException;
-
 import org.pcmm.base.impl.PCMMBaseObject;
 import org.pcmm.gates.IExtendedClassifier;
 
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
 /**
  *
  */
@@ -20,16 +20,16 @@ public class ExtendedClassifier extends PCMMBaseObject implements
     }
 
     /**
-     * @param data
+     * @param data - the data bytes to parse
      */
     public ExtendedClassifier(byte[] data) {
         super(data);
     }
 
     /**
-     * @param len
-     * @param sType
-     * @param sNum
+     * @param len - the classifier's length
+     * @param sType - the sType value
+     * @param sNum - the sNum value
      */
     public ExtendedClassifier(short len, byte sType, byte sNum) {
         super(len, sType, sNum);
@@ -132,8 +132,8 @@ public class ExtendedClassifier extends PCMMBaseObject implements
      * @see org.pcmm.gates.IClassifier#getProtocol()
      */
     @Override
-    public Protocol getProtocol() {
-        return Protocol.valueOf(getShort((short) 0));
+    public short getProtocol() {
+        return getShort((short) 0);
     }
 
     /*
@@ -142,8 +142,8 @@ public class ExtendedClassifier extends PCMMBaseObject implements
      * @see org.pcmm.gates.IClassifier#setProtocol(short)
      */
     @Override
-    public void setProtocol(Protocol p) {
-        setShort(p.getValue(), (short) 0);
+    public void setProtocol(short p) {
+        setShort(p, (short) 0);
     }
 
     /*