public class DeclaringTypeItemFilter extends DepthItemFilter
ALL, NONE
Constructor and Description |
---|
DeclaringTypeItemFilter()
Default constructor.
|
DeclaringTypeItemFilter(java.lang.String nodeType,
boolean propsOnly)
Creates a new filter for the given node type and flags
|
DeclaringTypeItemFilter(java.lang.String nodeType,
boolean propsOnly,
int minDepth,
int maxDepth)
Creates a new filter for the given node type and flags.
|
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 |
setNodeType(java.lang.String nodeType)
Sets the node type to match the declaring one of the item
|
void |
setPropsOnly(java.lang.String propsOnly)
Sets the flag that indicates if only properties are to be checked.
|
matches, setMaxDepth, setMinDepth
public DeclaringTypeItemFilter()
public DeclaringTypeItemFilter(java.lang.String nodeType, boolean propsOnly, int minDepth, int maxDepth)
nodeType
- the node type name to checkpropsOnly
- if true
only properties are checkedminDepth
- the minimal depthmaxDepth
- the maximal depthpublic DeclaringTypeItemFilter(java.lang.String nodeType, boolean propsOnly)
nodeType
- the node type name to checkpropsOnly
- if true
only properties are checkedpublic void setNodeType(java.lang.String nodeType)
nodeType
- the node typepublic void setPropsOnly(java.lang.String propsOnly)
propsOnly
- if true
only properties are checked.public boolean matches(Item item) throws RepositoryException
true
. Subclasses can override to implement something
useful that is dependant of the depth.
Matches if the declaring node type of the item is equal to the one
specified in this filter. If the item is a node and propsOnly
flag is true
it returns false
.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"