Class AttributePredicate


  • public class AttributePredicate
    extends Predicate

    Represents a predicate expression concerning a single attribute.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String attribute  
      private java.lang.String target  
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributePredicate​(java.lang.String attribute, java.lang.String target)
      Constructs a new AttributePredicate, given an attribute name and a target literal (with which to test equality).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMatchingAttribute​(org.xml.sax.Attributes a)
      Returns true if the given SAX AttributeList is suitable, given our attribute name and target; returns false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • attribute

        private java.lang.String attribute
      • target

        private java.lang.String target
    • Constructor Detail

      • AttributePredicate

        public AttributePredicate​(java.lang.String attribute,
                                  java.lang.String target)
        Constructs a new AttributePredicate, given an attribute name and a target literal (with which to test equality).
    • Method Detail

      • isMatchingAttribute

        public boolean isMatchingAttribute​(org.xml.sax.Attributes a)
        Returns true if the given SAX AttributeList is suitable, given our attribute name and target; returns false otherwise.