public class IsMandatoryPredicate extends DepthPredicate
IsMandatoryFilter
...Modifier and Type | Field and Description |
---|---|
protected boolean |
isMandatory |
maxDepth, minDepth
Constructor and Description |
---|
IsMandatoryPredicate() |
IsMandatoryPredicate(boolean isMandatory) |
IsMandatoryPredicate(boolean isMandatory,
int minDepth,
int maxDepth) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(Item item)
Returns
true . |
evaluate
public IsMandatoryPredicate()
public IsMandatoryPredicate(boolean isMandatory, int minDepth, int maxDepth)
public IsMandatoryPredicate(boolean isMandatory)
protected boolean matches(Item item) throws RepositoryException
DepthPredicate
true
. Subclasses can override to implement something
useful that is dependant of the depth.matches
in class DepthPredicate
item
- the item to matchtrue
if the item matches; false
otherwise.RepositoryException
- if an error occurs.DepthPredicate.matches(javax.jcr.Item)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.