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