|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.core.statement.naturallanguage.ContextRegistry<T>
public class ContextRegistry<T extends Context<?>>
This class is a registry of template contexts which the requirement component translator uses to generate natural language.
| Field Summary | |
|---|---|
private Map<String,List<T>> |
registry
Registry context map |
| Constructor Summary | |
|---|---|
ContextRegistry()
Constructor. |
|
ContextRegistry(Map<String,List<T>> registry)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(String key,
T context)
Adds a context to the registry. |
boolean |
containsKey(String key)
Returns true if a context exists for key; otherwise false. |
List<T> |
get(String key)
Gets a context from the registry. |
List<T> |
remove(String key)
Remove a context from the registry. |
int |
size()
Returns the number of keys of the registry. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Map<String,List<T extends Context<?>>> registry
| Constructor Detail |
|---|
public ContextRegistry()
public ContextRegistry(Map<String,List<T>> registry)
registry - Context registry| Method Detail |
|---|
public void add(String key,
T context)
ReqComponentType key.
key - Context keycontext - Contextpublic List<T> get(String key)
ReqComponentType key.
key - Context key
public boolean containsKey(String key)
key; otherwise false.
key - Context key
public List<T> remove(String key)
ReqComponentType key.
key -
public int size()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||