|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.prompts.definitions.DataSourceDefinition
public class DataSourceDefinition
DataSourceDefinition is a prompt type which allows the specification of one or more data sources registered in metadata.
Field Summary |
---|
Constructor Summary | |
---|---|
DataSourceDefinition()
Constructor |
|
DataSourceDefinition(java.lang.String promptName)
Constructor |
Method Summary | |
---|---|
void |
configureAttributes(java.util.Map options,
java.util.Map context)
|
long |
getAllowedDataSourceTypes()
Sets a long with bit flags indicating the allowed data source types. |
java.util.List |
getAttributeDescriptors(java.util.Locale locale)
|
com.sas.datatypes.DataTypeInterface |
getPromptDataType()
Returns an instance of com.sas.datatypes.DataSourceType 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 |
isDataSourceTypeAllowed(long dataSourceType)
Returns whether the specified data source type is allowed. |
boolean |
isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
Returns whether the specified value is valid for the current settings of the prompt. |
boolean |
isRequired()
Returns whether the user will be required to enter a value for this prompt before continuing in the application |
void |
setAllowedDataSourceTypes(long allowedDataSourceTypes)
Sets a long with bit flags indicating the allowed data source types. |
void |
setRequired(boolean required)
Sets whether the user will be required to enter a value for this prompt before continuing in the application |
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 |
Constructor Detail |
---|
public DataSourceDefinition()
public DataSourceDefinition(java.lang.String promptName)
Method Detail |
---|
public boolean isRequired()
isRequired
in interface PromptDefinitionInterface
isRequired
in class PromptDefinition
PromptDefinitionInterface.isRequired()
public void setRequired(boolean required)
setRequired
in interface MutableRequiredDefinitionInterface
required
- whether the user will be required to enter a value for this prompt before continuing
in the applicationpublic boolean isPromptValueValid(java.lang.Object value, java.util.Locale locale)
isPromptValueValid
in interface com.sas.prompts.definitions.PromptDefinitionV2Interface
isPromptValueValid
in class PromptDefinition
PromptDefinitionV2Interface.isPromptValueValid(java.lang.Object, java.util.Locale)
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 PromptDefinitionInterface
getPromptValueValidationErrors
in class PromptDefinition
value
- 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 PromptDefinitionInterface
validateDefinition
in class PromptDefinition
locale
- Locale
ValidationEntry
objects or an empty
collection if no errors were found.PromptDefinitionInterface.validateDefinition(Locale)
public com.sas.datatypes.DataTypeInterface getPromptDataType()
getPromptDataType
in interface PromptDefinitionInterface
getPromptDataType
in class PromptDefinition
PromptDefinitionInterface.getPromptDataType()
public void setAllowedDataSourceTypes(long allowedDataSourceTypes)
setAllowedDataSourceTypes
in interface com.sas.prompts.definitions.MutableDataSourceDefinitionInterface
allowedDataSourceTypes
- a long with bit flags indicating the allowed data source types.public boolean isDataSourceTypeAllowed(long dataSourceType)
isDataSourceTypeAllowed
in interface com.sas.prompts.definitions.DataSourceDefinitionInterface
dataSourceType
- The data source type to check
public long getAllowedDataSourceTypes()
getAllowedDataSourceTypes
in interface com.sas.prompts.definitions.DataSourceDefinitionInterface
public void configureAttributes(java.util.Map options, java.util.Map context)
configureAttributes
in interface com.sas.util.AttributeConfigurationInterface
configureAttributes
in class PromptDefinition
public java.util.List getAttributeDescriptors(java.util.Locale locale)
getAttributeDescriptors
in interface com.sas.util.AttributeDescription
getAttributeDescriptors
in class PromptDefinition
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |