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 |
|---|
Entry(String path,
boolean exact,
boolean allow)
Constructs a new Entry
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String path,
boolean def)
Checks, if the path satisfies the rule of this entry.
|
boolean |
isAllow()
Returns the allow flag
|
String |
toString()
Returns a human readable form of this entry
|
public final String path
public final boolean allow
public final boolean exact
public 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 © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"