Class SimpleEROSubobjectRegistry
- java.lang.Object
- 
- org.opendaylight.protocol.pcep.spi.pojo.SimpleEROSubobjectRegistry
 
- 
- All Implemented Interfaces:
- EROSubobjectRegistry
 
 public final class SimpleEROSubobjectRegistry extends Object implements EROSubobjectRegistry 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleEROSubobjectRegistry()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SubobjectparseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean loose)Finds parser for given subobject type in the registry.org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectParser(int subobjectType, EROSubobjectParser parser)org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, EROSubobjectSerializer 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, EROSubobjectParser parser)
 - 
registerSubobjectSerializerpublic org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, EROSubobjectSerializer serializer) 
 - 
parseSubobjectpublic Subobject parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean loose) throws PCEPDeserializerException Description copied from interface:EROSubobjectRegistryFinds parser for given subobject type in the registry. Delegates parsing to found parser.- Specified by:
- parseSubobjectin interface- EROSubobjectRegistry
- Parameters:
- type- subobject type, key in parser registry
- buffer- subobject wrapped in ByteBuf
- loose- ERO specific common field
- Returns:
- null if the parser for this subobject could not be found
- Throws:
- PCEPDeserializerException- if the parsing did not succeed
 
 - 
serializeSubobjectpublic void serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer) Description copied from interface:EROSubobjectRegistryFind serializer for given subobject. Delegates parsing to found serializer.- Specified by:
- serializeSubobjectin interface- EROSubobjectRegistry
- Parameters:
- subobject- to be parsed
- buffer- buffer where the serialized subobject will be parsed
 
 
- 
 
-