public abstract class BasePolicy<T> extends Object
Abstract BasePolicy class.
| Modifier and Type | Class and Description |
|---|---|
static class |
BasePolicy.Match |
| Constructor and Description |
|---|
BasePolicy() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
act(T iface)
act
|
T |
apply(T iface)
apply
|
protected Map<String,String> |
getCriteria()
getCriteria
|
protected String |
getCriteria(String key)
getCriteria
|
protected BasePolicy.Match |
getMatch()
getMatch
|
String |
getMatchBehavior()
getMatchBehavior
|
protected boolean |
match(String s,
String matcher)
match
|
protected boolean |
matches(T iface)
matches
|
protected String |
putCriteria(String key,
String expression)
putCriteria
|
protected void |
setMatch(BasePolicy.Match match)
setMatch
|
void |
setMatchBehavior(String matchBehavior)
setMatchBehavior
|
public void setMatchBehavior(String matchBehavior)
setMatchBehavior
matchBehavior - a String object.protected void setMatch(BasePolicy.Match match)
setMatch
match - the match to setprotected BasePolicy.Match getMatch()
getMatch
protected boolean matches(T iface)
matches
iface - a T object.Copyright © 2020. All rights reserved.