BUG-47 : PCEP migration to generated DTOs.
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / SubobjectSerializer.java
similarity index 63%
rename from pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPMessageParser.java
rename to pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/SubobjectSerializer.java
index 0e3b2a181d8c397066c59368a0a7d4ce79d079db..ed3dee0c38f294d182f064724302f7cef6f0c87a 100644 (file)
@@ -5,14 +5,14 @@
  * 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;
+package org.opendaylight.protocol.pcep.spi;
 
-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.rsvp.rev130820.CSubobject;
 
-/**
- * Interface for specific message parsers
- */
-public interface PCEPMessageParser {
+public interface SubobjectSerializer {
+       
+       @Deprecated
+       public int getType();
 
-       public byte[] put(Message obj);
+       public byte[] serializeSubobject(CSubobject subobject);
 }