Interface XROSubobjectRegistry
- 
- All Known Implementing Classes:
- SimpleXROSubobjectRegistry
 
 public interface XROSubobjectRegistry
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description SubobjectparseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory)Finds parser for given subobject type in the registry.voidserializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)Find serializer for given subobject.
 
- 
- 
- 
Method Detail- 
parseSubobjectSubobject 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.- 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:
- PCEPDeserializerException- if the parsing did not succeed
 
 - 
serializeSubobjectvoid serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer) Find serializer for given subobject. Delegates parsing to found serializer.- Parameters:
- subobject- to be parsed
- buffer- buffer where the serialized subobject will be parsed
 
 
- 
 
-