Class IsMandatoryFilter
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
-
- org.apache.jackrabbit.vault.fs.filter.IsMandatoryFilter
-
- All Implemented Interfaces:
Dumpable
,Filter
,ItemFilter
public class IsMandatoryFilter extends DepthItemFilter
IsNodeFilter
...
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.ItemFilter
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description IsMandatoryFilter()
IsMandatoryFilter(boolean isMandatory)
IsMandatoryFilter(boolean isMandatory, int minDepth, int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(DumpContext ctx, boolean isLast)
Dumps some human readable information using the given context.boolean
matches(javax.jcr.Item item)
Returnstrue
.void
setCondition(String node)
void
setIsMandatory(String node)
-
Methods inherited from class org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
matches, setMaxDepth, setMinDepth
-
-
-
-
Method Detail
-
setCondition
public void setCondition(String node)
-
setIsMandatory
public void setIsMandatory(String node)
-
matches
public boolean matches(javax.jcr.Item item) throws javax.jcr.RepositoryException
Description copied from class:DepthItemFilter
Returnstrue
. Subclasses can override to implement something useful that is dependant of the depth.- Overrides:
matches
in classDepthItemFilter
- Parameters:
item
- the item to match- Returns:
true
if the item matches;false
otherwise.- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-
dump
public void dump(DumpContext ctx, boolean isLast)
Dumps some human readable information using the given context.- Specified by:
dump
in interfaceDumpable
- Overrides:
dump
in classDepthItemFilter
- Parameters:
ctx
- the dump contextisLast
- specifies if this is the last element to dump on this level
-
-