Class PathCondition

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

    public class PathCondition
    extends java.lang.Object
    implements Condition<TagPath>
    Passes if any part of a tag path matches the provided pattern
    Since:
    8.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PathCondition​(java.lang.String pathPattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean passes​(TagPath tagPath)
      Returns whether the provided value passes the condition.
      • Methods inherited from class java.lang.Object

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

      • pathPattern

        protected java.lang.String pathPattern
    • Constructor Detail

      • PathCondition

        public PathCondition​(java.lang.String pathPattern)
    • Method Detail

      • passes

        public boolean passes​(TagPath tagPath)
        Description copied from interface: Condition
        Returns whether the provided value passes the condition.
        Specified by:
        passes in interface Condition<TagPath>