com.googlecode.sarasvati.rubric.env
Class DefaultRubricFunctionRepository

java.lang.Object
  extended by com.googlecode.sarasvati.rubric.env.DefaultRubricFunctionRepository
All Implemented Interfaces:
RubricFunctionRepository

public class DefaultRubricFunctionRepository
extends Object
implements RubricFunctionRepository


Constructor Summary
DefaultRubricFunctionRepository()
           
 
Method Summary
 RubricDateFunction getDateFunction(String dateFunction)
           
static DefaultRubricFunctionRepository getGlobalInstance()
           
 RubricPredicate getPredicate(String predicate)
           
 RubricStringFunction getStringFunction(String functionName)
           
 void registerDateFunction(String name, RubricDateFunction dateFunction)
           
 void registerPredicate(String name, RubricPredicate predicate)
           
 void registerStringFunction(String name, RubricStringFunction stringFunction)
           
 void unregisterDateFunction(String name)
           
 void unregisterPredicate(String name)
           
 void unregisterStringFunction(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRubricFunctionRepository

public DefaultRubricFunctionRepository()
Method Detail

getGlobalInstance

public static DefaultRubricFunctionRepository getGlobalInstance()

registerPredicate

public void registerPredicate(String name,
                              RubricPredicate predicate)

unregisterPredicate

public void unregisterPredicate(String name)

registerDateFunction

public void registerDateFunction(String name,
                                 RubricDateFunction dateFunction)

unregisterDateFunction

public void unregisterDateFunction(String name)

registerStringFunction

public void registerStringFunction(String name,
                                   RubricStringFunction stringFunction)

unregisterStringFunction

public void unregisterStringFunction(String name)

getPredicate

public RubricPredicate getPredicate(String predicate)
Specified by:
getPredicate in interface RubricFunctionRepository
See Also:
RubricFunctionRepository.getPredicate(java.lang.String)

getDateFunction

public RubricDateFunction getDateFunction(String dateFunction)
Specified by:
getDateFunction in interface RubricFunctionRepository
See Also:
RubricFunctionRepository.getDateFunction(java.lang.String)

getStringFunction

public RubricStringFunction getStringFunction(String functionName)
Specified by:
getStringFunction in interface RubricFunctionRepository
See Also:
RubricFunctionRepository.getStringFunction(java.lang.String)