public static final class AbstractSubscription.Entry extends Object
Entry
innerclass is needed to hold the filter and the Modifier and Type | Field and Description |
---|---|
boolean |
allow
allow or deny
|
boolean |
exact
exact or tree
|
String |
path
The path.
|
Constructor and Description |
---|
AbstractSubscription.Entry(String path,
boolean exact,
boolean allow)
Constructs a new Entry
|
public final String path
public final boolean allow
public final boolean exact
public AbstractSubscription.Entry(String path, boolean exact, boolean allow)
path
- The path to match.exact
- Whether an exact match is desired.allow
- Whether this is an allow- or deny-rule.public boolean isAllow()
true
if this entry defines a positive rule; false
otherwise.public boolean apply(String path, boolean def)
path
- the path to checkdef
- the value to return, if the handle does not satisfy the rule.true
if the filter matches the handle; the value of def
otherwise."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"