public final class SimpleEROSubobjectRegistry extends Object implements EROSubobjectRegistry
| Constructor and Description |
|---|
SimpleEROSubobjectRegistry() |
| Modifier and Type | Method and Description |
|---|---|
SubobjectContainer |
parseSubobject(int type,
io.netty.buffer.ByteBuf buffer,
boolean loose)
Finds parser for given subobject type in the registry.
|
org.opendaylight.yangtools.concepts.Registration |
registerSubobjectParser(int subobjectType,
EROSubobjectParser parser) |
org.opendaylight.yangtools.concepts.Registration |
registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass,
EROSubobjectSerializer serializer) |
void |
serializeSubobject(SubobjectContainer subobject,
io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
|
public org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType,
EROSubobjectParser parser)
public org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, EROSubobjectSerializer serializer)
public SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean loose) throws RSVPParsingException
EROSubobjectRegistryparseSubobject in interface EROSubobjectRegistrytype - subobject type, key in parser registrybuffer - subobject wrapped in ByteBufloose - ERO specific common fieldRSVPParsingException - if the parsing did not succeedpublic void serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
EROSubobjectRegistryserializeSubobject in interface EROSubobjectRegistrysubobject - to be parsedbuffer - buffer where the serialized subobject will be parsedCopyright © 2020 OpenDaylight. All rights reserved.