Interface EROSubobjectRegistry
- All Known Implementing Classes:
- SimpleEROSubobjectRegistry
public interface EROSubobjectRegistry
Explicit Route Object Registry.
- 
Method SummaryModifier and TypeMethodDescriptionparseSubobject(int subobjectType, io.netty.buffer.ByteBuf buffer, boolean loose) Finds parser for given subobject type in the registry.voidserializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer) Find serializer for given subobject.
- 
Method Details- 
parseSubobjectSubobject parseSubobject(int subobjectType, io.netty.buffer.ByteBuf buffer, boolean loose) throws PCEPDeserializerException Finds parser for given subobject type in the registry. Delegates parsing to found parser.- Parameters:
- subobjectType- subobject type, key in parser registry
- buffer- subobject wrapped in ByteBuf
- loose- ERO specific common field
- Returns:
- null if the parser for this subobject could not be found
- Throws:
- PCEPDeserializerException- if the parsing did not succeed
 
- 
serializeSubobjectFind serializer for given subobject. Delegates parsing to found serializer.- Parameters:
- subobject- to be parsed
- buffer- buffer where the serialized subobject will be parsed
 
 
-