Class Include
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.bundlor.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
- all - Include all nodes under given path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchercreateMatcher()StringgetPattern()booleanmatch(String relativePath)booleanmatch(String nodeName, int depth)Matches node name against pattern at given depth.booleanmatchAny(int depth)intsize()StringtoString()
-
-
-
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 matchdepth- depth in path- Returns:
- true if nodeName matched against pattern at given depth
-
matchAny
public boolean matchAny(int depth)
-
size
public int size()
-
-