Class PropertyCondition

  • All Implemented Interfaces:
    Condition<PropertySet>, java.io.Serializable

    public class PropertyCondition
    extends java.lang.Object
    implements Condition<PropertySet>
    A condition that support a number of property related sub-conditions. Important: This condition was originally created for alarm status querying, and then updated for tag querying. Be careful about changing it too much.
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyCondition

        public PropertyCondition()
    • Method Detail

      • getDefined

        public java.util.Set<Property<?>> getDefined()
      • getNotDefined

        public java.util.Set<Property<?>> getNotDefined()
      • getOverridden

        public java.util.Set<Property<?>> getOverridden()
      • requiredProperty

        @Deprecated
        public PropertyCondition requiredProperty​(java.lang.String property,
                                                  java.lang.Object value,
                                                  ComparisonOperator op)
        Deprecated.
        as the string name was expected to be an alarm property. This class is now used more generally, so the Property based version should be used.
        Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
      • requiredProperty

        public <T> PropertyCondition requiredProperty​(Property<?> property,
                                                      T value,
                                                      ComparisonOperator op)
        Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
      • optionalProperty

        @Deprecated
        public PropertyCondition optionalProperty​(java.lang.String property,
                                                  java.lang.Object value,
                                                  ComparisonOperator op)
        Deprecated.
        as the string name was expected to be an alarm property. This class is now used more generally, so * the Property based version should be used.
        Adds an optional property sub-condition. One optional sub-condition must pass for the whole condition to pass.
      • optionalProperty

        public <T> PropertyCondition optionalProperty​(Property<T> property,
                                                      T value,
                                                      ComparisonOperator op)
        Adds an optional property sub-condition. One optional sub-condition must pass for the whole condition to pass.
      • getAlarmProperty

        protected Property<?> getAlarmProperty​(java.lang.String propName)
      • defined

        public PropertyCondition defined​(Property<?> property)
        Adds a requirement that a property be defined. All of these conditions must pass for the overall condition to pass.
      • setPassOnAny

        public void setPassOnAny​(boolean value)
        Sets whether the "defined" and "overridden" condition should pass on any match (true), or require all matches (false).
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object