Class AbstractMatchEntryDeserializer

    • Constructor Detail

      • AbstractMatchEntryDeserializer

        public AbstractMatchEntryDeserializer()
    • Method Detail

      • processHeader

        protected static boolean processHeader​(io.netty.buffer.ByteBuf in)
        Processes match entry header and returns if it have mask, or not.
        Parameters:
        in - input buffer
        Returns:
        true if match entry has mask, false otherwise
      • readPrefix

        protected static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix readPrefix​(io.netty.buffer.ByteBuf message,
                                                                                                                                  boolean hasMask)
        Read Ipv4Prefix from message.
        Parameters:
        message - buffered message
        hasMask - determines if prefix has mask or not
        Returns:
        IPv4 prefix
      • throwErrorOnMalformed

        protected static void throwErrorOnMalformed​(MatchBuilder builder,
                                                    String propertyName)
        Throw error on malformed match builder input.
        Parameters:
        builder - match builder
        propertyName - name of property that already containsData
      • throwErrorOnMalformed

        protected static void throwErrorOnMalformed​(MatchBuilder builder,
                                                    String propertyName,
                                                    String fieldName)
        Throw error on malformed match builder input.
        Parameters:
        builder - match builder
        propertyName - name of property that already containsData