Class ContextRegistry<T extends Context>
java.lang.Object
org.kuali.rice.krms.impl.repository.language.ContextRegistry<T>
This class is a registry of template contexts which the requirement
component translator uses to generate natural language.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a context to the registry.booleancontainsKey(String key) Returns true if a context exists forkey; otherwise false.Gets a context from the registry.Remove a context from the registry.intsize()Returns the number of keys of the registry.toString()
-
Constructor Details
-
ContextRegistry
public ContextRegistry()Constructor. -
ContextRegistry
Constructor. Adds a context registry as a map.- Parameters:
registry- Context registry
-
-
Method Details
-
add
Adds a context to the registry. Key is usually a TermParameterType key.- Parameters:
key- Context keycontext- Context
-
get
Gets a context from the registry. Key is usually a TermParameterType key.- Parameters:
key- Context key- Returns:
- A context
-
containsKey
Returns true if a context exists forkey; otherwise false.- Parameters:
key- Context key- Returns:
- True if a context exists otherwise false
-
remove
Remove a context from the registry. Key is usually a- Parameters:
key-- Returns:
-
size
public int size()Returns the number of keys of the registry.- Returns:
- Number of keys in the registry
-
toString
-