public class NamePredicate extends DepthPredicate
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The name to filter on
|
maxDepth, minDepth| Constructor and Description |
|---|
NamePredicate(String name)
Creates a new name filter with the given name.
|
NamePredicate(String name,
int minDepth,
int maxDepth)
Creates a new name filter with the given name and depths
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(Item item)
Returns
true if the name of the given item is equal to
the configured name. |
evaluateprotected final String name
public NamePredicate(String name, int minDepth, int maxDepth)
name - the name to filter onminDepth - the minimal depthmaxDepth - the maximal depthpublic NamePredicate(String name)
name - the name to filter onprotected boolean matches(Item item) throws RepositoryException
true if the name of the given item is equal to
the configured name.matches in class DepthPredicateitem - the item to matchtrue if the item matches; false otherwise.RepositoryException - if an error occurs.DepthPredicate.matches(javax.jcr.Item)Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.