Class FilterOpsComplexTypes


  • public class FilterOpsComplexTypes
    extends Object
    Encode/Decode Filter types.
    Author:
    dzwiers
    • Constructor Detail

      • FilterOpsComplexTypes

        public FilterOpsComplexTypes()
    • Method Detail

      • encodeFilter

        protected static void encodeFilter​(Filter filter,
                                           PrintHandler output,
                                           Map<String,​Object> hints)
                                    throws OperationNotSupportedException,
                                           IOException
        Calls the appropriate type for encoding.

        This mapping from filter to Type is a bit tricky since the filter hierarchy has changed.

        • LOGIC_TYPE: includes BinaryLogicOperator and Not
        • COMPARE_TYPE: includes BinaryComparisonOperator and PropertyIsBetween

        Throws:
        OperationNotSupportedException
        IOException
      • encodeExpr

        protected static void encodeExpr​(Expression expr,
                                         PrintHandler output,
                                         Map<String,​Object> hints)
                                  throws OperationNotSupportedException,
                                         IOException
        Throws:
        OperationNotSupportedException
        IOException