|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Context
The Context interface provides access to the properties and functionalities of
the universe context.
DocumentInstance.getContextPrompts(),
DocumentInstance.getMustFillContexts(),
DocumentInstance.setContexts()| Method Summary | |
|---|---|
void |
enterValues(java.lang.String[] values)
Enter Context values. |
java.lang.String[] |
getAllValues()
Get all possible context values. |
java.lang.String[] |
getCurrentValues()
Returns the current context values. |
DataProvider[] |
getDataProviders()
Returns an array containing the data provider(s) attached to this context. |
java.lang.String |
getDescription(int index)
Returns the description of specified value. |
java.lang.String[] |
getDescriptions()
Returns an array of strings containing the descriptions of context values. |
java.lang.String[] |
getPreviousValues()
Returns the previous context values. |
PromptType |
getType()
Returns the context type. |
boolean |
requireAnswer()
Checks if this context needs to be answered. |
| Method Detail |
|---|
java.lang.String[] getPreviousValues()
java.lang.String[] getCurrentValues()
Note: if Context.enterValues(String[]) isn't called yet,
it returns the same values as Context.getPreviousValues().
The current context values is cleared by DataProvider.clearContexts()
or DataProviders.clearContexts().
java.lang.String[] getAllValues()
Context.getAllValues() are
synchronized with the descriptions returned using
Context.getDescriptions().
Context.getDescriptions()void enterValues(java.lang.String[] values)
values - the selected context values.DocumentInstance.setContexts()PromptType getType()
DataProvider[] getDataProviders()
DataProviderjava.lang.String[] getDescriptions()
Context.getAllValues() are
synchronized with the descriptions returned using
Context.getDescriptions().
Context.getAllValues()java.lang.String getDescription(int index)
java.lang.IndexOutOfBoundsException - Thrown when index is invalid.boolean requireAnswer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||