BUG-47 : switched subobjects to generated source code.
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / message / PCEPRequestMessageParser.java
index 6d590f7c875add9f39d819787be9870715427142..ee6b934297f26799b8454b7916377ca82bec2bc5 100644 (file)
@@ -10,32 +10,33 @@ package org.opendaylight.protocol.pcep.impl.message;
 import io.netty.buffer.ByteBuf;
 
 import org.opendaylight.protocol.pcep.PCEPDeserializerException;
-import org.opendaylight.protocol.pcep.spi.AbstractMessageParser;
-import org.opendaylight.protocol.pcep.spi.HandlerRegistry;
+import org.opendaylight.protocol.pcep.impl.AbstractMessageParser;
+import org.opendaylight.protocol.pcep.spi.ObjectHandlerRegistry;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.PcrepMessage;
 
 /**
  * Parser for {@link PcrepMessage}
  */
-//FIXME finish
+// FIXME finish
 public class PCEPRequestMessageParser extends AbstractMessageParser {
-       
-       private final int TYPE = 3;
 
-       public PCEPRequestMessageParser(HandlerRegistry registry) {
+       public static final int TYPE = 3;
+
+       public PCEPRequestMessageParser(final ObjectHandlerRegistry registry) {
                super(registry);
        }
 
        @Override
-       public void serializeMessage(Message message, ByteBuf buffer) {
-               if (!(message instanceof PcrepMessage))
+       public void serializeMessage(final Message message, final ByteBuf buffer) {
+               if (!(message instanceof PcrepMessage)) {
                        throw new IllegalArgumentException("Wrong instance of PCEPMessage. Passed instance of " + message.getClass()
                                        + ". Needed PcrepMessage.");
+               }
        }
 
        @Override
-       public PcrepMessage parseMessage(byte[] buffer) throws PCEPDeserializerException {
+       public PcrepMessage parseMessage(final byte[] buffer) throws PCEPDeserializerException {
                // TODO Auto-generated method stub
                return null;
        }