Class SimpleObjectRegistry
- java.lang.Object
- 
- org.opendaylight.protocol.pcep.spi.pojo.SimpleObjectRegistry
 
- 
- All Implemented Interfaces:
- ObjectRegistry,- VendorInformationObjectRegistry
 
 public final class SimpleObjectRegistry extends Object implements ObjectRegistry 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleObjectRegistry(VendorInformationObjectRegistry viRegistry)
 - 
Method SummaryAll Methods Instance Methods Concrete 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.Optional<? extends Object>parseVendorInformationObject(EnterpriseNumber enterpriseNumber, ObjectHeader header, io.netty.buffer.ByteBuf buffer)org.opendaylight.yangtools.concepts.RegistrationregisterObjectParser(int objectClass, int objectType, ObjectParser parser)org.opendaylight.yangtools.concepts.RegistrationregisterObjectSerializer(Class<? extends Object> objClass, ObjectSerializer serializer)voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer)Find serializer for given object.voidserializeVendorInformationObject(VendorInformationObject viObject, io.netty.buffer.ByteBuf buffer)
 
- 
- 
- 
Constructor Detail- 
SimpleObjectRegistrypublic SimpleObjectRegistry(VendorInformationObjectRegistry viRegistry) 
 
- 
 - 
Method Detail- 
registerObjectParserpublic org.opendaylight.yangtools.concepts.Registration registerObjectParser(int objectClass, int objectType, ObjectParser parser)
 - 
registerObjectSerializerpublic org.opendaylight.yangtools.concepts.Registration registerObjectSerializer(Class<? extends Object> objClass, ObjectSerializer serializer) 
 - 
parseObjectpublic Object parseObject(int objectClass, int objectType, ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException Description copied from interface:ObjectRegistryFinds parser for given object type and class in the registry. Delegates parsing to found parser.- Specified by:
- parseObjectin interface- ObjectRegistry
- 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
 
 - 
serializeObjectpublic void serializeObject(Object object, io.netty.buffer.ByteBuf buffer) Description copied from interface:ObjectRegistryFind serializer for given object. Delegates parsing to found serializer.- Specified by:
- serializeObjectin interface- ObjectRegistry
- Parameters:
- object- to be parsed
- buffer- ByteBuf wrapped around bytes representing given object
 
 - 
parseVendorInformationObjectpublic Optional<? extends Object> parseVendorInformationObject(EnterpriseNumber enterpriseNumber, ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException - Specified by:
- parseVendorInformationObjectin interface- VendorInformationObjectRegistry
- Throws:
- PCEPDeserializerException
 
 - 
serializeVendorInformationObjectpublic void serializeVendorInformationObject(VendorInformationObject viObject, io.netty.buffer.ByteBuf buffer) - Specified by:
- serializeVendorInformationObjectin interface- VendorInformationObjectRegistry
 
 
- 
 
-