|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.prompts.definitions.SASLibraryDefinition
public class SASLibraryDefinition
Prompt definition allowing the user to enter or pick the location of a SAS library in the SAS Folders metadata tree.
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Constructor Summary | |
|---|---|
SASLibraryDefinition()
Constructor |
|
SASLibraryDefinition(java.lang.String promptName)
Constructor |
|
| Method Summary | |
|---|---|
void |
configureAttributes(java.util.Map<java.lang.String,?> options,
java.util.Map<java.lang.String,?> context)
|
java.util.List |
getAttributeDescriptors(java.util.Locale myLocale)
|
com.sas.datatypes.DataTypeInterface |
getPromptDataType()
Returns an instance of com.sas.datatypes.SASLibraryLocationType that can be used to process values for this prompt. |
java.util.Collection<ValidationEntry> |
getPromptValueValidationErrors(java.lang.Object value,
java.util.Locale locale)
Returns a Collection containing the set of ValidationEntry objects or an empty
collection if no errors were found. |
boolean |
isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
Returns whether the specified value meets the constraints on the prompt definition. |
boolean |
isRequired()
Returns whether the prompt must have a value before the user is allowed to continue processing. |
void |
setRequired(boolean required)
Sets whether the prompt must have a value before the user is allowed to continue processing. |
java.util.Collection<ValidationEntry> |
validateDefinition(java.util.Locale locale)
This method is used to validate that the various attributes of the definition all contain valid values. |
| Methods inherited from interface com.sas.prompts.definitions.PromptDefinitionInterface |
|---|
clearDefaultValue, getDefaultValue, getPromptDescription, getPromptDescriptions, getPromptLabel, getPromptLabels, getPromptName, getUserInfo, isDefaultValueSet, isFixed, isHidden, isPromptValueValid |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public SASLibraryDefinition()
public SASLibraryDefinition(java.lang.String promptName)
| Method Detail |
|---|
public com.sas.datatypes.DataTypeInterface getPromptDataType()
getPromptDataType in interface PromptDefinitionInterfacegetPromptDataType in class PromptDefinitionPromptDefinitionInterface.getPromptDataType()public boolean isRequired()
isRequired in interface PromptDefinitionInterfaceisRequired in class PromptDefinitionPromptDefinitionInterface.isRequired()public void setRequired(boolean required)
setRequired in interface MutableRequiredDefinitionInterfacerequired - whether the prompt must have a value before the user is allowed to continue processing
public boolean isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
isPromptValueValid in interface com.sas.prompts.definitions.PromptDefinitionV2InterfaceisPromptValueValid in class PromptDefinitionvalue - The value to check for validity.
PromptDefinitionInterface.isPromptValueValid(Object)
public java.util.Collection<ValidationEntry> getPromptValueValidationErrors(java.lang.Object value,
java.util.Locale locale)
ValidationEntry objects or an empty
collection if no errors were found.
getPromptValueValidationErrors in interface PromptDefinitionInterfacegetPromptValueValidationErrors in class PromptDefinitionvalue - The value to check for errorslocale - The locale to return the error messages in
ValidationEntry objects or an empty
collection if no errors were found.PromptDefinitionInterface.getPromptValueValidationErrors(Object, Locale)public java.util.Collection<ValidationEntry> validateDefinition(java.util.Locale locale)
ValidationEntry objects
for each error. This method should be called before the definition is to be used.
Subclasses should override this method to return the appropriate validation errors.
validateDefinition in interface PromptDefinitionInterfacevalidateDefinition in class PromptDefinitionlocale - The locale to return the error messages in
ValidationEntry objects or an empty
collection if no errors were found.PromptDefinitionInterface.validateDefinition(Locale)
public void configureAttributes(java.util.Map<java.lang.String,?> options,
java.util.Map<java.lang.String,?> context)
configureAttributes in interface com.sas.util.AttributeConfigurationInterfaceconfigureAttributes in class PromptDefinitionpublic java.util.List getAttributeDescriptors(java.util.Locale myLocale)
getAttributeDescriptors in interface com.sas.util.AttributeDescriptiongetAttributeDescriptors in class PromptDefinition
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||