BUG-47 : switched subobjects to generated source code.
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / XROSubobjectParser.java
similarity index 53%
rename from pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/subobject/EROLabelParser.java
rename to pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/XROSubobjectParser.java
index b70d7de9b59b8414cbd0345321a867c816047147..bca2e90941f6c71081b64a7fb7519023a0f7fe1f 100644 (file)
@@ -5,15 +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.EROLabelSubobject;
-
-public interface EROLabelParser {
-
-    EROLabelSubobject parse(byte[] cutBytes, boolean upStream, boolean loose) throws PCEPDeserializerException;
-
-    byte[] put(EROLabelSubobject objToSerialize);
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.exclude.route.object.Subobjects;
 
+public interface XROSubobjectParser {
+       public Subobjects parseSubobject(final byte[] buffer, final boolean mandatory) throws PCEPDeserializerException;
 }