org.apache.jackrabbit.mk.util
Class NodeFilter
java.lang.Object
org.apache.jackrabbit.mk.util.NodeFilter
public class NodeFilter
- extends Object
A NodeFilter represents a filter on property and/or node names specified
in JSON format. It allows to specify glob patterns for names of nodes and/or
properties to be included or excluded.
Example:
{
"nodes": [ "foo*", "-foo1" ],
"properties": [ "*", "-:childNodeCount" ]
}
- See Also:
NameFilter,
MicroKernel.getNodes(String, String, int, long, int, String)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parse
public static NodeFilter parse(String json)
getChildNodeFilter
public NameFilter getChildNodeFilter()
getPropertyFilter
public NameFilter getPropertyFilter()
includeNode
public boolean includeNode(String name)
includeProperty
public boolean includeProperty(String name)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.