Class Condition

    • Constructor Detail

      • Condition

        public Condition()
        Creates a new select condition.
      • Condition

        public Condition​(java.lang.String aPropertyName,
                         Condition.Operator anOperator,
                         java.lang.Object aValue)
        Creates a new select condition.
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName()
        Returns the property name.
      • setPropertyName

        public void setPropertyName​(java.lang.String aValue)
        Sets the property name.
      • setOperator

        public void setOperator​(Condition.Operator anOperator)
        Sets the operator.
      • getValue

        public java.lang.Object getValue()
        Returns the value.
      • setValue

        public void setValue​(java.lang.Object aValue)
        Sets the value.
      • isNegated

        public boolean isNegated()
        Returns whether condition is negated.
      • setNegated

        public void setNegated​(boolean aValue)
        Sets whether condition is negated.
      • getIgnoreCase

        public boolean getIgnoreCase()
        Returns whether condition ignores case (string types).
      • setIgnoreCase

        public void setIgnoreCase​(boolean aValue)
        Sets whether condition ignores case (string types).
      • setDateConstraint

        public void setDateConstraint​(Condition.DateConstraint aDateConstraint)
        Sets the date constraint.
      • getDateConstraintDefault

        public Condition.DateConstraint getDateConstraintDefault()
        Returns the date constraint default.
      • getDateConstraintMultiplier

        public long getDateConstraintMultiplier()
        Returns the date constraint multiplier.
      • getOperators

        public static java.util.List<Condition.Operator> getOperators​(Property.Type aType)
        Returns the valid operators for a given property type.
      • getValue

        public boolean getValue​(@Nonnull
                                Entity anEntity,
                                java.lang.Object anObj)
        Returns the value of evaluating this condition on given object.
      • equals

        public boolean equals​(java.lang.Object anObj)
        Standard equals implementation.
        Overrides:
        equals in class java.lang.Object
      • clone

        public Condition clone()
        Standard clone implementation (to get co-variant return type).
        Overrides:
        clone in class RMListenerList
      • toString

        public java.lang.String toString()
        Returns a string for condition.
        Overrides:
        toString in class RMObject