Class SimpleXROSubobjectRegistry
java.lang.Object
org.opendaylight.protocol.rsvp.parser.spi.pojo.SimpleXROSubobjectRegistry
- All Implemented Interfaces:
- XROSubobjectRegistry
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionparseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) Finds parser for given subobject type in the registry.org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectParser(int subobjectType, XROSubobjectParser parser) org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, XROSubobjectSerializer serializer) voidserializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer) Find serializer for given subobject.
- 
Constructor Details- 
SimpleXROSubobjectRegistrypublic SimpleXROSubobjectRegistry()
 
- 
- 
Method Details- 
registerSubobjectParserpublic org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, XROSubobjectParser parser) 
- 
registerSubobjectSerializerpublic org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, XROSubobjectSerializer serializer) 
- 
parseSubobjectpublic SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) throws RSVPParsingException Description copied from interface:XROSubobjectRegistryFinds parser for given subobject type in the registry. Delegates parsing to found parser.- Specified by:
- parseSubobjectin interface- XROSubobjectRegistry
- Parameters:
- type- subobject type, key in parser registry
- buffer- subobject wrapped in ByteBuf
- mandatory- XRO specific common field
- Returns:
- null if the parser for this subobject could not be found
- Throws:
- RSVPParsingException- if the parsing did not succeed
 
- 
serializeSubobjectDescription copied from interface:XROSubobjectRegistryFind serializer for given subobject. Delegates parsing to found serializer.- Specified by:
- serializeSubobjectin interface- XROSubobjectRegistry
- Parameters:
- subobject- to be parsed
- buffer- buffer where the serialized subobject will be parsed
 
 
-