Class AbstractAssociationGroupParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.parser.object.AbstractAssociationGroupParser
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
- Direct Known Subclasses:
PCEPAssociationIPv4ObjectParser
,PCEPAssociationIPv6ObjectParser
public abstract class AbstractAssociationGroupParser
extends CommonObjectParser
implements ObjectSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
parseAssociationSource
(io.netty.buffer.ByteBuf buffer) parseObject
(ObjectHeader header, io.netty.buffer.ByteBuf buffer) protected abstract boolean
serializeAssociationSource
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone source, io.netty.buffer.ByteBuf buffer) void
serializeObject
(Object object, io.netty.buffer.ByteBuf buffer) Serializes given object to bytes wrapped in given ByteBuf.Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
Constructor Details
-
AbstractAssociationGroupParser
public AbstractAssociationGroupParser(int objectType)
-
-
Method Details
-
parseObject
public Object parseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException - Specified by:
parseObject
in interfaceObjectParser
- Throws:
PCEPDeserializerException
-
parseAssociationSource
protected abstract org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone parseAssociationSource(io.netty.buffer.ByteBuf buffer) -
serializeObject
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Specified by:
serializeObject
in interfaceObjectSerializer
- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
serializeAssociationSource
protected abstract boolean serializeAssociationSource(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone source, io.netty.buffer.ByteBuf buffer)
-