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
IsNodeFilter...-
Field Summary
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.ItemFilter
ALL, NONE -
Constructor Summary
ConstructorsConstructorDescriptionIsMandatoryFilter(boolean isMandatory) IsMandatoryFilter(boolean isMandatory, int minDepth, int maxDepth) -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(DumpContext ctx, boolean isLast) Dumps some human readable information using the given context.booleanReturnstrue.voidsetCondition(String node) voidsetIsMandatory(String node) Methods inherited from class org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
matches, setMaxDepth, setMinDepth
-
Constructor Details
-
IsMandatoryFilter
public IsMandatoryFilter() -
IsMandatoryFilter
public IsMandatoryFilter(boolean isMandatory, int minDepth, int maxDepth) -
IsMandatoryFilter
public IsMandatoryFilter(boolean isMandatory)
-
-
Method Details
-
setCondition
-
setIsMandatory
-
matches
Description copied from class:DepthItemFilterReturnstrue. Subclasses can override to implement something useful that is dependant of the depth.- Overrides:
matchesin classDepthItemFilter- Parameters:
item- the item to match- Returns:
trueif the item matches;falseotherwise.- Throws:
RepositoryException- if an error occurs.
-
dump
Dumps some human readable information using the given context.- Specified by:
dumpin interfaceDumpable- Overrides:
dumpin classDepthItemFilter- Parameters:
ctx- the dump contextisLast- specifies if this is the last element to dump on this level
-