Fix model names and imports
[bgpcep.git] / bgp / parser-spi / src / main / java / org / opendaylight / protocol / bgp / parser / spi / AttributeRegistry.java
index 0e36ba2cd733ed306657a70c7ef94e4094f21824..31efdef59ea616765e09a0d4df4da9063655281f 100644 (file)
@@ -7,12 +7,12 @@
  */
 package org.opendaylight.protocol.bgp.parser.spi;
 
+import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
+import org.opendaylight.protocol.bgp.parser.BGPParsingException;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.update.PathAttributes;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 
 public interface AttributeRegistry {
-       public AutoCloseable registerAttributeParser(int attributeType, AttributeParser parser);
-       public AttributeParser getAttributeParser(int attributeType);
-
-       public AutoCloseable registerAttributeSerializer(Class<? extends DataObject> attrClass, AttributeSerializer serializer);
-       public AttributeSerializer getAttributeSerializer(DataObject attribute);
+       public PathAttributes parseAttributes(final byte[] bytes) throws BGPDocumentedException, BGPParsingException;
+       public byte[] serializeAttribute(DataObject attribute);
 }