Class XPathHelper.QueryPart

  • Enclosing class:
    XPathHelper

    public class XPathHelper.QueryPart
    extends java.lang.Object
    A QueryPart knows the name of the property to be queried against on a given DataObject, as well as the value to be used in the comparison.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryPart​(java.lang.String query)
      This constructor breaks the provided query into property name and query value parts.
      QueryPart​(java.lang.String property, java.lang.String value, int op)
      This constructor sets a logical operator and breaks the provided query into property name and query value parts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(SDODataObject dao)
      Indicate if the query represented by this QueryPart evaluates to true or false when executed on a given DataObject.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueryPart

        public QueryPart​(java.lang.String query)
        This constructor breaks the provided query into property name and query value parts.
        Parameters:
        query -
      • QueryPart

        public QueryPart​(java.lang.String property,
                         java.lang.String value,
                         int op)
        This constructor sets a logical operator and breaks the provided query into property name and query value parts.
    • Method Detail

      • evaluate

        public boolean evaluate​(SDODataObject dao)
        Indicate if the query represented by this QueryPart evaluates to true or false when executed on a given DataObject.
        Parameters:
        dao -
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object