com.googlecode.sarasvati.rubric.env
Class DefaultRubricFunctionRepository
java.lang.Object
com.googlecode.sarasvati.rubric.env.DefaultRubricFunctionRepository
- All Implemented Interfaces:
- RubricFunctionRepository
public class DefaultRubricFunctionRepository
- extends Object
- implements RubricFunctionRepository
DefaultRubricFunctionRepository
public DefaultRubricFunctionRepository()
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)