public class IsMandatoryFilter extends DepthItemFilter
IsNodeFilter
...ALL, NONE
Constructor and Description |
---|
IsMandatoryFilter() |
IsMandatoryFilter(boolean isMandatory) |
IsMandatoryFilter(boolean isMandatory,
int minDepth,
int maxDepth) |
Modifier and Type | Method and Description |
---|---|
void |
dump(DumpContext ctx,
boolean isLast)
Dumps some human readable information using the given context.
|
boolean |
matches(Item item)
Returns
true . |
void |
setCondition(java.lang.String node) |
void |
setIsMandatory(java.lang.String node) |
matches, setMaxDepth, setMinDepth
public IsMandatoryFilter()
public IsMandatoryFilter(boolean isMandatory, int minDepth, int maxDepth)
public IsMandatoryFilter(boolean isMandatory)
public void setCondition(java.lang.String node)
public void setIsMandatory(java.lang.String node)
public boolean matches(Item item) throws RepositoryException
DepthItemFilter
true
. Subclasses can override to implement something
useful that is dependant of the depth.matches
in class DepthItemFilter
item
- the item to matchtrue
if the item matches; false
otherwise.RepositoryException
- if an error occurs.public void dump(DumpContext ctx, boolean isLast)
dump
in interface Dumpable
dump
in class DepthItemFilter
ctx
- the dump contextisLast
- specifies if this is the last element to dump on this level"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"