Class Include


  • public class Include
    extends 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 Detail

      • Include

        public Include​(String pattern)
    • Method Detail

      • match

        public boolean match​(String relativePath)
      • getPattern

        public String getPattern()
      • createMatcher

        public Matcher createMatcher()
      • match

        public boolean match​(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()