Interface XROSubobjectRegistry

    • Method Detail

      • parseSubobject

        Subobject parseSubobject​(int type,
                                 io.netty.buffer.ByteBuf buffer,
                                 boolean mandatory)
                          throws PCEPDeserializerException
        Finds parser for given subobject type in the registry. Delegates parsing to found parser.
        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
        PCEPDeserializerException - if the parsing did not succeed
      • serializeSubobject

        void serializeSubobject​(Subobject subobject,
                                io.netty.buffer.ByteBuf buffer)
        Find serializer for given subobject. Delegates parsing to found serializer.
        subobject - to be parsed
        buffer - buffer where the serialized subobject will be parsed