Class SimpleXROSubobjectRegistry

All Implemented Interfaces:

public class SimpleXROSubobjectRegistry extends Object implements XROSubobjectRegistry
  • Constructor Details

    • SimpleXROSubobjectRegistry

      public SimpleXROSubobjectRegistry()
  • Method Details

    • registerSubobjectParser

      public org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, XROSubobjectParser parser)
    • registerSubobjectSerializer

      public org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, XROSubobjectSerializer serializer)
    • parseSubobject

      public SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) throws RSVPParsingException
      Description copied from interface: XROSubobjectRegistry
      Finds parser for given subobject type in the registry. Delegates parsing to found parser.
      Specified by:
      parseSubobject in interface XROSubobjectRegistry
      type - subobject type, key in parser registry
      buffer - subobject wrapped in ByteBuf
      mandatory - XRO specific common field
      null if the parser for this subobject could not be found
      RSVPParsingException - if the parsing did not succeed
    • serializeSubobject

      public void serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
      Description copied from interface: XROSubobjectRegistry
      Find serializer for given subobject. Delegates parsing to found serializer.
      Specified by:
      serializeSubobject in interface XROSubobjectRegistry
      subobject - to be parsed
      buffer - buffer where the serialized subobject will be parsed