org.opennms.netmgt.provision
Class BasePolicy<T>

java.lang.Object
  extended by org.opennms.netmgt.provision.BasePolicy<T>

public abstract class BasePolicy<T>
extends Object


Nested Class Summary
static class BasePolicy.Match
           
 
Constructor Summary
BasePolicy()
           
 
Method Summary
abstract  T act(T iface)
           
 T apply(T iface)
           
protected  void debug(String format, Object... args)
           
protected  LinkedHashMap<String,String> getCriteria()
           
protected  String getCriteria(String key)
           
protected  BasePolicy.Match getMatch()
           
 String getMatchBehavior()
           
protected  void info(String format, Object... args)
           
protected  boolean match(String s, String matcher)
           
protected  boolean matches(T iface)
           
protected  String putCriteria(String key, String expression)
           
protected  void setMatch(BasePolicy.Match match)
           
 void setMatchBehavior(String matchBehavior)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePolicy

public BasePolicy()
Method Detail

match

protected boolean match(String s,
                        String matcher)

getMatchBehavior

public String getMatchBehavior()

setMatchBehavior

public void setMatchBehavior(String matchBehavior)

setMatch

protected void setMatch(BasePolicy.Match match)
Parameters:
match - the match to set

getMatch

protected BasePolicy.Match getMatch()
Returns:
the match

getCriteria

protected String getCriteria(String key)

putCriteria

protected String putCriteria(String key,
                             String expression)

getCriteria

protected LinkedHashMap<String,String> getCriteria()
Returns:
the criteria

matches

protected boolean matches(T iface)

act

public abstract T act(T iface)

apply

public T apply(T iface)

debug

protected void debug(String format,
                     Object... args)

info

protected void info(String format,
                    Object... args)


Copyright © 2009. All Rights Reserved.