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