public final class SimpleRROSubobjectRegistry extends Object implements RROSubobjectRegistry
Constructor and Description |
---|
SimpleRROSubobjectRegistry() |
Modifier and Type | Method and Description |
---|---|
Subobject |
parseSubobject(int type,
io.netty.buffer.ByteBuf buffer)
Finds parser for given subobject type in the registry.
|
org.opendaylight.yangtools.concepts.Registration |
registerSubobjectParser(int subobjectType,
RROSubobjectParser parser) |
org.opendaylight.yangtools.concepts.Registration |
registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass,
RROSubobjectSerializer serializer) |
void |
serializeSubobject(Subobject subobject,
io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
|
public org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, RROSubobjectParser parser)
public org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, RROSubobjectSerializer serializer)
public Subobject parseSubobject(int type, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
RROSubobjectRegistry
parseSubobject
in interface RROSubobjectRegistry
type
- subobject type, key in parser registrybuffer
- subobject wrapped in ByteBufPCEPDeserializerException
- if the parsing did not succeedpublic void serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
RROSubobjectRegistry
serializeSubobject
in interface RROSubobjectRegistry
subobject
- to be parsedbuffer
- buffer where the serialized subobject will be parsedCopyright © 2020 OpenDaylight. All rights reserved.