|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.entities.AttributeDescriptor
@SASScope(value="ALL") public class AttributeDescriptor
A base implementation of AttributeDescriptorInterface.
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
Key used to read resource entries for this class |
protected java.util.Map |
supplementalProperties
|
| Fields inherited from interface com.sas.entities.AttributeDescriptorInterface |
|---|
DEFAULTVALUESET, EXPERT, MODIFIABLE, PROPERTY, REQUIRED, VISIBLE |
| Constructor Summary | |
|---|---|
AttributeDescriptor()
Default constructor |
|
AttributeDescriptor(java.lang.String name)
Constructs an instance of AttributeDescriptor with the given name. |
|
AttributeDescriptor(java.lang.String name,
java.util.Map supplementalProperties)
Constructs an instance of AttributeDescriptor with the given name. |
|
| Method Summary | |
|---|---|
java.util.List |
getAttributeEditorContexts()
Returns a list of customizer contexts defined for the AttributeDescriptor. |
java.util.Map |
getAttributeEditors()
Returns a mapping of all of the editors defined for the AttributeDescriptor. |
java.lang.Object |
getDefault()
Return the default value. |
java.lang.String |
getEditor(java.lang.String context)
Returns the editor. |
java.lang.String |
getStringDefault()
Returns a string value for the default value. |
java.util.Map |
getSupplementalProperties()
Returns the supplemental properties of the AttributeDescriptor. |
java.lang.Object |
getSupplementalProperty(java.lang.String propertyName)
Returns the value of the supplemental property. |
AttributeTypeInterface |
getType()
Return the AttributeType. |
java.util.List |
getValidators(java.lang.String context)
Return the validators. |
java.util.List |
getValidatorsContexts()
Returns a list of validators contexts defined for the AttributeDescriptor. |
boolean |
isDefaultValueHasBeenSet()
Return true if a default value has been set (through a AttributeDescriptorInterface.setDefault(Object defaultValue) call). |
boolean |
isExpert()
Returns true if the AttributeDescriptor is classified as expert. |
boolean |
isModifiable()
Returns true if the AttributeDescriptor is modifiable. |
boolean |
isProperty()
Returns false if the AttributeDescriptor is dynamic (instance-based). |
boolean |
isRequired()
Returns true if the attribute value is required. |
boolean |
isVisible()
Returns true if the AttributeDescriptor is visible. |
void |
setDefault(java.lang.Object defaultValue)
Set the default value. |
void |
setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
Sets whether the default value has been set. |
void |
setEditor(java.lang.String context,
java.lang.String editor)
Set the editor. |
void |
setExpert(boolean expert)
Sets the expert state. |
void |
setModifiable(boolean modifiable)
Sets whether the AttributeDescriptor is modifiable. |
void |
setProperty(boolean property)
Set the AttributeDescriptor's property state. |
void |
setRequired(boolean required)
Set whether the AttributeDescriptor is required. |
void |
setSupplementalProperties(java.util.Map additionalProperties)
Sets a group of supplemental properties of the AttributeDescriptor. |
void |
setSupplementalProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the supplemental property. |
void |
setType(AttributeTypeInterface attributeType)
Sets the AttributeType. |
void |
setValidators(java.lang.String context,
java.util.List validators)
Set the validators. |
void |
setVisible(boolean visible)
Sets whether the AttributeDescriptor should be visible. |
| Methods inherited from class com.sas.entities.BaseAttributeDescriptor |
|---|
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Methods inherited from interface com.sas.entities.BaseAttributeDescriptorInterface |
|---|
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Field Detail |
|---|
protected java.util.Map supplementalProperties
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public AttributeDescriptor()
public AttributeDescriptor(java.lang.String name)
name - name associated with the AttributeDescriptor
public AttributeDescriptor(java.lang.String name,
java.util.Map supplementalProperties)
name - name associated with the AttributeDescriptor| Method Detail |
|---|
public boolean isVisible()
AttributeDescriptorInterface
isVisible in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setVisible(boolean visible)public void setVisible(boolean visible)
AttributeDescriptorInterface
setVisible in interface AttributeDescriptorInterfacevisible - a boolean value.
If false, the AttributeDescriptor
should not be displayed in UI (User Interface) components.AttributeDescriptorInterface.isVisible()public boolean isProperty()
AttributeDescriptorInterface
isProperty in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setProperty(boolean property)public void setProperty(boolean property)
AttributeDescriptorInterface
setProperty in interface AttributeDescriptorInterfaceproperty - a boolean valueAttributeDescriptorInterface.isProperty()public boolean isModifiable()
AttributeDescriptorInterface
isModifiable in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setModifiable(boolean modifiable)public void setModifiable(boolean modifiable)
AttributeDescriptorInterface
setModifiable in interface AttributeDescriptorInterfacemodifiable - a boolean value.
If false, UI (User Interface) components can display the AttributeDescriptor
but should not allow it to be modified.AttributeDescriptorInterface.isModifiable()public boolean isExpert()
AttributeDescriptorInterface
isExpert in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setExpert(boolean expert)public void setExpert(boolean expert)
AttributeDescriptorInterface
setExpert in interface AttributeDescriptorInterfaceexpert - a boolean value.
If true, under normal circumstances, UI (User Interface) components will not display
the AttributeDescriptor.AttributeDescriptorInterface.isExpert()public boolean isRequired()
AttributeDescriptorInterface
isRequired in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setRequired(boolean required)public void setRequired(boolean required)
AttributeDescriptorInterface
setRequired in interface AttributeDescriptorInterfacerequired - a boolean value
If true, UI (User Interface) components should check that a value has been
assigned for the AttributeDescriptor.AttributeDescriptorInterface.isRequired(),
AttributeDescriptorInterface.setDefault(Object defaultValue)public AttributeTypeInterface getType()
AttributeDescriptorInterface
getType in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setType(AttributeTypeInterface attributeType),
AttributeTypeInterfacepublic void setType(AttributeTypeInterface attributeType)
AttributeDescriptorInterface
setType in interface AttributeDescriptorInterfaceattributeType - The AttributeType associated with this
AttributeDescriptor.AttributeDescriptorInterface.getType()public java.lang.String getStringDefault()
AttributeDescriptorInterface
getStringDefault in interface AttributeDescriptorInterfacepublic java.lang.Object getDefault()
AttributeDescriptorInterface
getDefault in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setDefault(Object defaultValue)public void setDefault(java.lang.Object defaultValue)
AttributeDescriptorInterfaceNOTE: To minimize the potential for internationalization errors, it is recommended that applications convert string values entered for numeric AttributeTypes to the appropriate numeric before setting the default value.
NOTE: When creating dates for a Date Attribute Type (sql type = Types.DATE), the date needs to created using the GMT timezone in order for it to be shared in a multi-timezone environment.
setDefault in interface AttributeDescriptorInterfacedefaultValue - default value for the attributeAttributeTypeInterface,
AttributeDescriptorInterface.getDefault(),
setTypepublic java.lang.String getEditor(java.lang.String context)
AttributeDescriptorInterface
getEditor in interface AttributeDescriptorInterfacecontext - the context in which the editor is instantiated/used;
it is a platform specification from EntityContextInterface
AttributeDescriptorInterface.setEditor(String context, String editor),
EntityContextInterface
public void setEditor(java.lang.String context,
java.lang.String editor)
AttributeDescriptorInterface
setEditor in interface AttributeDescriptorInterfacecontext - the context in which the editor is instantiated/used;
it is a platform specification from EntityContextInterfaceeditor - the class name of the editorAttributeDescriptorInterface.getEditor(String context)public java.util.Map getAttributeEditors()
AttributeDescriptorInterface
getAttributeEditors in interface AttributeDescriptorInterfacepublic java.util.List getAttributeEditorContexts()
AttributeDescriptorInterface
getAttributeEditorContexts in interface AttributeDescriptorInterfaceEntityContextInterfacepublic java.util.List getValidators(java.lang.String context)
AttributeDescriptorInterface
getValidators in interface AttributeDescriptorInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterface
AttributeDescriptorInterface.setValidators(String context, List validators)public java.util.List getValidatorsContexts()
AttributeDescriptorInterface
getValidatorsContexts in interface AttributeDescriptorInterfaceEntityContextInterface
public void setValidators(java.lang.String context,
java.util.List validators)
AttributeDescriptorInterface
setValidators in interface AttributeDescriptorInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterfacevalidators - class names of the validatorsEntityContextInterface,
AttributeDescriptorInterface.getValidators(String context)public boolean isDefaultValueHasBeenSet()
AttributeDescriptorInterfaceAttributeDescriptorInterface.setDefault(Object defaultValue) call).
isDefaultValueHasBeenSet in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)public void setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
AttributeDescriptorInterface
setDefaultValueHasBeenSet in interface AttributeDescriptorInterfacedefaultValueHasBeenSet - indicates whether the default value has been setAttributeDescriptorInterface.isDefaultValueHasBeenSet()public java.lang.Object getSupplementalProperty(java.lang.String propertyName)
AttributeDescriptorInterface
getSupplementalProperty in interface AttributeDescriptorInterfacepropertyName - name of the supplemental property
AttributeDescriptorInterface.setSupplementalProperty(String propertyName, Object value)
public void setSupplementalProperty(java.lang.String propertyName,
java.lang.Object value)
AttributeDescriptorInterface
- setSupplementalProperty("dynamic", Boolean.TRUE);
- setSupplementalProperty("command", "some value");
setSupplementalProperty in interface AttributeDescriptorInterfacepropertyName - name of the supplemental propertyvalue - property valueAttributeDescriptorInterface.getSupplementalProperty(String propertyName)public java.util.Map getSupplementalProperties()
AttributeDescriptorInterface
getSupplementalProperties in interface AttributeDescriptorInterfaceAttributeDescriptorInterface.setSupplementalProperties(Map map)public void setSupplementalProperties(java.util.Map additionalProperties)
AttributeDescriptorInterface
setSupplementalProperties in interface AttributeDescriptorInterfaceadditionalProperties - name/value pairs (property name/property value)AttributeDescriptorInterface.getSupplementalProperties()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||