|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface PromptValuesInterface
Interface for classes which hold sets of prompt values.
| Method Summary | |
|---|---|
void |
acceptPromptValuesVisitor(PromptValuesVisitorInterface visitor)
Accept method for visitor object (see visitor pattern) which passes the visitor on to any delegate PromptValues objects. |
void |
addPromptValueChangeListener(PromptValueChangeListener listener)
Adds a listener so that changes to prompt values can be monitored. |
void |
addPromptValuesDelegate(PromptValuesInterface promptValues)
Adds another PromptValues object as a delegate of this PromptValues object. |
void |
clearPromptValue(PromptDefinitionInterface promptDefinition)
Clears the prompt value such that isPromptValueSet returns false. |
void |
clearPromptValuesDelegates()
Removes all previously added delegates. |
PromptValuesInterface |
findPromptValuesForPromptDefinition(PromptDefinitionInterface promptDefinition)
Recursively finds the first PromptValues object which holds the PromptGroup which contains the specified PromptDefinition. |
com.sas.util.MutableUserInfoInterface |
getMutableUserInfo()
Returns a user info object which can be read and/or modified. |
PromptDefinitionInterface |
getPromptDefinition(java.lang.String promptName,
boolean recursive)
Returns the PromptDefinitionInterface for the given prompt name in the PromptGroup held by the PromptValuesInterface. |
java.util.List |
getPromptDefinitionCombinations(PromptDefinitionInterface promptDefinition)
Returns a List of PromptDefinitionInterfaces which are combined with the specified prompt. |
PromptGroupInterface |
getPromptGroup()
Returns the PromptGroupInterface that this is attached to. |
java.lang.Object |
getPromptValue(PromptDefinitionInterface promptDefinition)
Returns the current value of the prompt. |
java.util.Date |
getPromptValueAsDate(PromptDefinitionInterface promptDefinition)
Returns the current value of the specified prompt definition. |
double |
getPromptValueAsDouble(PromptDefinitionInterface promptDefinition)
Returns the current value of the specified prompt definition. |
int |
getPromptValueAsInt(PromptDefinitionInterface promptDefinition)
Returns the current value of the specified prompt definition. |
java.util.List |
getPromptValueAsList(PromptDefinitionInterface promptDefinition)
Returns the current value of the specified prompt definition. |
java.lang.String |
getPromptValueAsString(PromptDefinitionInterface promptDefinition)
Returns the current value of the specified prompt definition. |
java.lang.String |
getPromptValueAsString(PromptDefinitionInterface promptDefinition,
java.util.Locale locale)
Returns the specified prompt value as a string formatted in the specified locale. |
PromptValueChangeListener[] |
getPromptValueChangeListeners()
Returns an array of all the PromptValueChangeListeners added to this PromptValues with addPromptValuesChangeListener(). |
java.util.Map |
getPromptValues()
Returns the values of all prompts stored in this PromptValueInterface. |
java.util.Map |
getPromptValues(PromptGroupInterface promptGroup,
boolean recursive,
boolean includeDefaultAndStickyValues)
Returns the values for the specified prompt definition group, possibly recursing into subgroups. |
java.util.List |
getPromptValuesDelegates()
Returns a list of delegates for the PromptValues. |
void |
init(java.util.Map options)
When called, this method will check all the definitions that have a value provider that implement the ValueProviderInitializationInterface and will call initialize method on each value provider with the options passed in. |
boolean |
isAllPromptValuesValid()
Returns whether all the prompts contain valid values. |
boolean |
isAllRequiredPromptsValid()
Returns true if all the required prompts contain a value and the value is valid, false otherwise |
boolean |
isPromptValueAvailable(PromptDefinitionInterface promptDefinition)
Returns true is the prompt has either a value set, a sticky value or a default value, false otherwise. |
boolean |
isPromptValueSet(PromptDefinitionInterface promptDefinition)
Returns whether the prompt value is actually set. |
boolean |
isPromptValueValid(PromptDefinitionInterface promptDefinition)
Returns whether the prompt value is currently valid or not. |
void |
removePromptValueChangeListener(PromptValueChangeListener listener)
Removes a listener from monitoring prompt value changes. |
void |
removePromptValuesDelegate(PromptValuesInterface promptValues)
Removes a PromptValues delegate previously added with addPromptValuesDelegate. |
void |
setInitParameter(java.lang.String key,
java.lang.Object value)
When called, this method will check all the definitions that have a value provider that implement the ValueProviderInitializationInterface and will call initialize method on each value provider with the key-value pair passed in. |
void |
setPromptGroup(PromptGroupInterface promptGroup,
boolean clearValuesNotInGroup)
Sets the PromptGroupInterface that this PromptValues is attached to. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
java.util.Date value)
Sets the current value of the PromptDefinitionInterface to the specified Date. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
double value)
Sets the current value of the PromptDefinitionInterface to the specified int. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
java.util.List value)
Sets the current value of the PromptDefinitionInterface to the specified List. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.Object value)
Sets the current value of the prompt. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.Object value,
java.util.Locale inputLocale)
Sets the current value of the PromptDefinitionInterface. |
void |
setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.String value)
Sets the current value of the PromptDefinitionInterface to the specified String. |
void |
setPromptValues(java.util.Map definitionToValueMap,
java.util.Locale inputLocale)
Sets one or more of prompt values at the same time. |
| Method Detail |
|---|
void init(java.util.Map options)
options - Map a map of options, see the ValueProviderInitializationInterface for more details
void setInitParameter(java.lang.String key,
java.lang.Object value)
key - value -
java.lang.Object getPromptValue(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
java.util.Date getPromptValueAsDate(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
double getPromptValueAsDouble(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
int getPromptValueAsInt(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
java.util.List getPromptValueAsList(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
java.lang.String getPromptValueAsString(PromptDefinitionInterface promptDefinition)
throws PromptValueNotFoundException
promptDefinition - The prompt definition to return the value for
PromptValueNotFoundException
void setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.Object value)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.
InvalidPromptValueException
void setPromptValue(PromptDefinitionInterface promptDefinition,
double value)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.
InvalidPromptValueException - public void setPromptValue( PromptDefinitionInterface promptDefinition, int value ) throws InvalidPromptValueException;
/**
Sets the current value of the PromptDefinitionInterface to the specified double.
InvalidPromptValueException
void setPromptValue(PromptDefinitionInterface promptDefinition,
java.util.Date value)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.
InvalidPromptValueException
void setPromptValue(PromptDefinitionInterface promptDefinition,
java.util.List value)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.
InvalidPromptValueException
void setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.String value)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.
InvalidPromptValueException
void setPromptValue(PromptDefinitionInterface promptDefinition,
java.lang.Object value,
java.util.Locale inputLocale)
throws InvalidPromptValueException
promptDefinition - The prompt definition to set the value ofvalue - The new value of the prompt.inputLocale - The locale that the value was entered in
InvalidPromptValueException
void setPromptValues(java.util.Map definitionToValueMap,
java.util.Locale inputLocale)
throws InvalidPromptValueException
definitionToValueMap - A Map containing the names and values of the prompts to set the value of.inputLocale - The locale that the values were entered in.
InvalidPromptValueException
java.lang.String getPromptValueAsString(PromptDefinitionInterface promptDefinition,
java.util.Locale locale)
throws PromptValueNotFoundException
promptDefinition - The prompt to return the value oflocale - Locale The locale to format the value for
PromptValueNotFoundExceptionboolean isPromptValueSet(PromptDefinitionInterface promptDefinition)
promptDefinition - PromptDefinitionInterface
boolean isPromptValueAvailable(PromptDefinitionInterface promptDefinition)
promptDefinition - The prompt to query whether its value is available
void clearPromptValue(PromptDefinitionInterface promptDefinition)
promptDefinition - The prompt to clear the value ofboolean isPromptValueValid(PromptDefinitionInterface promptDefinition)
promptDefinition - The prompt to determine if the value is valid
boolean isAllPromptValuesValid()
boolean isAllRequiredPromptsValid()
java.util.Map getPromptValues(PromptGroupInterface promptGroup,
boolean recursive,
boolean includeDefaultAndStickyValues)
promptGroup - The group to get values forrecursive - Whether to return values from subgroups of the group passed inincludeDefaultAndStickyValues - Whether to result default and sticky value or just values that have been set
java.util.Map getPromptValues()
PromptGroupInterface getPromptGroup()
void setPromptGroup(PromptGroupInterface promptGroup,
boolean clearValuesNotInGroup)
promptGroup - The PromptGroupInterface that the prompt values are forclearValuesNotInGroup - Whether to clear values not in the group set on the PromptValuesvoid addPromptValueChangeListener(PromptValueChangeListener listener)
The - listener to call when a value change occursvoid removePromptValueChangeListener(PromptValueChangeListener listener)
The - listener to stop calling when a value change occursPromptValueChangeListener[] getPromptValueChangeListeners()
PromptValueChangeListeners added to this PromptValues with addPromptValuesChangeListener().
PromptValueChangeListeners added or an empty array if no listeners have been added
PromptDefinitionInterface getPromptDefinition(java.lang.String promptName,
boolean recursive)
promptName - The name of the prompt to search forrecursive - Whether to search in subgroups of the main prompt group
void clearPromptValuesDelegates()
void addPromptValuesDelegate(PromptValuesInterface promptValues)
promptValues - The delegate to addvoid removePromptValuesDelegate(PromptValuesInterface promptValues)
promptValues - The delegate to removejava.util.List getPromptValuesDelegates()
PromptValuesInterface findPromptValuesForPromptDefinition(PromptDefinitionInterface promptDefinition)
promptDefinition - The PromptDefinitionInterface to find the PromptValues for.
void acceptPromptValuesVisitor(PromptValuesVisitorInterface visitor)
visitor - The visitor to call for each delegatecom.sas.util.MutableUserInfoInterface getMutableUserInfo()
java.util.List getPromptDefinitionCombinations(PromptDefinitionInterface promptDefinition)
promptDefinition - The prompt to return combinations for
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||