Class Include


  • public class Include
    extends java.lang.Object
    Include represents a single path pattern which captures the path which needs to be included in bundling. Path patterns can be like below.
    • * - Match any immediate child
    • *\/* - Match child with any name upto 2 levels of depth
    • jcr:content - Match immediate child with name jcr:content
    • jcr:content\/** - Match jcr:content and all its child
    The last path element can specify a directive. Supported directive
    • all - Include all nodes under given path
    • Constructor Summary

      Constructors 
      Constructor Description
      Include​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Matcher createMatcher()  
      java.lang.String getPattern()  
      boolean match​(java.lang.String relativePath)  
      boolean match​(java.lang.String nodeName, int depth)
      Matches node name against pattern at given depth.
      boolean matchAny​(int depth)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Include

        public Include​(java.lang.String pattern)
    • Method Detail

      • match

        public boolean match​(java.lang.String relativePath)
      • getPattern

        public java.lang.String getPattern()
      • toString

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

        public Matcher createMatcher()
      • match

        public boolean match​(java.lang.String nodeName,
                             int depth)
        Matches node name against pattern at given depth. Depth here would be 1 based with 0 for root depth
        Parameters:
        nodeName - nodeName to match
        depth - depth in path
        Returns:
        true if nodeName matched against pattern at given depth
      • matchAny

        public boolean matchAny​(int depth)
      • size

        public int size()