Interface ObjectRegistry
- 
- All Superinterfaces:
- VendorInformationObjectRegistry
 - All Known Implementing Classes:
- SimpleObjectRegistry
 
 public interface ObjectRegistry extends VendorInformationObjectRegistry 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectparseObject(int objectClass, int objectType, ObjectHeader header, io.netty.buffer.ByteBuf buffer)Finds parser for given object type and class in the registry.voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer)Find serializer for given object.- 
Methods inherited from interface org.opendaylight.protocol.pcep.spi.VendorInformationObjectRegistryparseVendorInformationObject, serializeVendorInformationObject
 
- 
 
- 
- 
- 
Method Detail- 
parseObjectObject parseObject(int objectClass, int objectType, ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException Finds parser for given object type and class in the registry. Delegates parsing to found parser.- Parameters:
- objectClass- object class
- objectType- object type
- header- ObjectHeader
- buffer- object wrapped in ByteBuf
- Returns:
- null if the parser for this object could not be found
- Throws:
- PCEPDeserializerException- if the parsing did not succeed
 
 - 
serializeObjectvoid serializeObject(Object object, io.netty.buffer.ByteBuf buffer) Find serializer for given object. Delegates parsing to found serializer.- Parameters:
- object- to be parsed
- buffer- ByteBuf wrapped around bytes representing given object
 
 
- 
 
-