BUG-47 : switched subobjects to generated source code.
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / EROSubobjectParser.java
similarity index 54%
rename from pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/subobject/RROLabelParser.java
rename to pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/EROSubobjectParser.java
index a283ec916cda9e275aea85f019b6953bbc263943..a37b296e6199e6bd166469495ff06e637d4ab9f5 100644 (file)
@@ -5,14 +5,11 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.protocol.pcep.impl.subobject;
+package org.opendaylight.protocol.pcep.spi;
 
 import org.opendaylight.protocol.pcep.PCEPDeserializerException;
-import org.opendaylight.protocol.pcep.subobject.RROLabelSubobject;
-
-public interface RROLabelParser {
-    RROLabelSubobject parse(byte[] cutBytes, boolean upStream) throws PCEPDeserializerException;
-
-    byte[] put(RROLabelSubobject objToSerialize);
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.explicit.route.object.Subobjects;
 
+public interface EROSubobjectParser {
+       public Subobjects parseSubobject(final byte[] buffer, final boolean loose) throws PCEPDeserializerException;
 }