|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.BasePolicy<T>
public abstract class BasePolicy<T>
Abstract BasePolicy class.
| Nested Class Summary | |
|---|---|
static class |
BasePolicy.Match
|
| Constructor Summary | |
|---|---|
BasePolicy()
|
|
| Method Summary | |
|---|---|
abstract T |
act(T iface)
act |
T |
apply(T iface)
apply |
protected LinkedHashMap<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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasePolicy()
| Method Detail |
|---|
protected boolean match(String s,
String matcher)
match
T - a T object.s - a String object.matcher - a String object.
public String getMatchBehavior()
getMatchBehavior
String object.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 String getCriteria(String key)
getCriteria
key - a String object.
String object.
protected String putCriteria(String key,
String expression)
putCriteria
key - a String object.expression - a String object.
String object.protected LinkedHashMap<String,String> getCriteria()
getCriteria
protected boolean matches(T iface)
matches
iface - a T object.
public abstract T act(T iface)
act
iface - a T object.
public T apply(T iface)
apply
iface - a T object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||