Class SimpleRROSubobjectRegistry
- java.lang.Object
- 
- org.opendaylight.protocol.pcep.spi.pojo.SimpleRROSubobjectRegistry
 
- 
- All Implemented Interfaces:
- RROSubobjectRegistry
 
 public final class SimpleRROSubobjectRegistry extends Object implements RROSubobjectRegistry 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleRROSubobjectRegistry()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SubobjectparseSubobject(int type, io.netty.buffer.ByteBuf buffer)Finds parser for given subobject type in the registry.org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectParser(int subobjectType, RROSubobjectParser parser)org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, RROSubobjectSerializer serializer)voidserializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)Find serializer for given subobject.
 
- 
- 
- 
Method Detail- 
registerSubobjectParserpublic org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, RROSubobjectParser parser)
 - 
registerSubobjectSerializerpublic org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, RROSubobjectSerializer serializer) 
 - 
parseSubobjectpublic Subobject parseSubobject(int type, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException Description copied from interface:RROSubobjectRegistryFinds parser for given subobject type in the registry. Delegates parsing to found parser.- Specified by:
- parseSubobjectin interface- RROSubobjectRegistry
- Parameters:
- type- subobject type, key in parser registry
- buffer- subobject wrapped in ByteBuf
- Returns:
- null if the parser for this subobject could not be found otherwise returns parser
- Throws:
- PCEPDeserializerException- if the parsing did not succeed
 
 - 
serializeSubobjectpublic void serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer) Description copied from interface:RROSubobjectRegistryFind serializer for given subobject. Delegates parsing to found serializer.- Specified by:
- serializeSubobjectin interface- RROSubobjectRegistry
- Parameters:
- subobject- to be parsed
- buffer- buffer where the serialized subobject will be parsed
 
 
- 
 
-