Class QueryParameter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class QueryParameter
    extends FieldExpression
    FieldExpression for returning a query parameter from a QueryRequest.
    See Also:
    Serialized Form
    • Constructor Detail

      • QueryParameter

        public QueryParameter​(java.lang.String name,
                              Constant defaultValue)
        Constructor
    • Method Detail

      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • getName

        public java.lang.String getName()
        Get the name of the requested query parameter.
      • setName

        public void setName​(java.lang.String value)
        Set the name of the requested query parameter.
      • getDefaultValue

        public Constant getDefaultValue()
        Get the default value if the query parameter is not specified/available.
      • setDefaultValue

        public void setDefaultValue​(Constant value)
        Set the default value if the query parameter is not specified/available.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object