|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.entities.BaseAttributeDescriptor
|
+--com.sas.entities.AttributeDescriptor
A base implementation of AttributeDescriptorInterface.
| Field Summary | |
static String |
RB_KEY
Key used to read resource entries for this class |
protected Map |
supplementalProperties
|
| Fields inherited from interface com.sas.entities.AttributeDescriptorInterface |
DEFAULTVALUESET, EXPERT, MODIFIABLE, PROPERTY, REQUIRED, VISIBLE |
| Constructor Summary | |
AttributeDescriptor()
Default constructor |
|
AttributeDescriptor(String name)
Constructs an instance of AttributeDescriptor with the given name. |
|
AttributeDescriptor(String name,
Map supplementalProperties)
Constructs an instance of AttributeDescriptor with the given name. |
|
| Method Summary | |
List |
getAttributeEditorContexts()
Returns a list of customizer contexts defined for the AttributeDescriptor. |
Map |
getAttributeEditors()
Returns a mapping of all of the editors defined for the AttributeDescriptor. |
Object |
getDefault()
Return the default value. |
String |
getEditor(String context)
Returns the editor. |
String |
getStringDefault()
Returns a string value for the default value. |
Map |
getSupplementalProperties()
Returns the supplemental properties of the AttributeDescriptor. |
Object |
getSupplementalProperty(String propertyName)
Returns the value of the supplemental property. |
AttributeTypeInterface |
getType()
Return the AttributeType. |
List |
getValidators(String context)
Return the validators. |
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 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(Object defaultValue)
Set the default value. |
void |
setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
Sets whether the default value has been set. |
void |
setEditor(String context,
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(Map additionalProperties)
Sets a group of supplemental properties of the AttributeDescriptor. |
void |
setSupplementalProperty(String propertyName,
Object value)
Sets the value of the supplemental property. |
void |
setType(AttributeTypeInterface attributeType)
Sets the AttributeType. |
void |
setValidators(String context,
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 Map supplementalProperties
public static final String RB_KEY
| Constructor Detail |
public AttributeDescriptor()
public AttributeDescriptor(String name)
name - name associated with the AttributeDescriptor
public AttributeDescriptor(String name,
Map supplementalProperties)
name - name associated with the AttributeDescriptor| Method Detail |
public boolean isVisible()
AttributeDescriptorInterfaceisVisible in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setVisible(boolean visible)public void setVisible(boolean visible)
AttributeDescriptorInterfacesetVisible in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacevisible - a boolean value.
If false, the AttributeDescriptor
should not be displayed in UI (User Interface) components.AttributeDescriptorInterface.isVisible()public boolean isProperty()
AttributeDescriptorInterfaceisProperty in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setProperty(boolean property)public void setProperty(boolean property)
AttributeDescriptorInterfacesetProperty in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceproperty - a boolean valueAttributeDescriptorInterface.isProperty()public boolean isModifiable()
AttributeDescriptorInterfaceisModifiable in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setModifiable(boolean modifiable)public void setModifiable(boolean modifiable)
AttributeDescriptorInterfacesetModifiable in interface AttributeDescriptorInterfacecom.sas.entities.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()
AttributeDescriptorInterfaceisExpert in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setExpert(boolean expert)public void setExpert(boolean expert)
AttributeDescriptorInterfacesetExpert in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceexpert - a boolean value.
If true, under normal circumstances, UI (User Interface) components will not display
the AttributeDescriptor.AttributeDescriptorInterface.isExpert()public boolean isRequired()
AttributeDescriptorInterfaceisRequired in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setRequired(boolean required)public void setRequired(boolean required)
AttributeDescriptorInterfacesetRequired in interface AttributeDescriptorInterfacecom.sas.entities.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()
AttributeDescriptorInterfacegetType in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setType(AttributeTypeInterface attributeType),
AttributeTypeInterfacepublic void setType(AttributeTypeInterface attributeType)
AttributeDescriptorInterfacesetType in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceattributeType - The AttributeType associated with this
AttributeDescriptor.AttributeDescriptorInterface.getType()public String getStringDefault()
AttributeDescriptorInterfacegetStringDefault in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacepublic Object getDefault()
AttributeDescriptorInterfacegetDefault in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setDefault(Object defaultValue)public void setDefault(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 AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacedefaultValue - default value for the attributeAttributeTypeInterface,
AttributeDescriptorInterface.getDefault(),
setTypepublic String getEditor(String context)
AttributeDescriptorInterfacegetEditor in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacecontext - the context in which the editor is instantiated/used;
it is a platform specification from EntityContextInterfaceAttributeDescriptorInterface.setEditor(String context, String editor),
EntityContextInterface
public void setEditor(String context,
String editor)
AttributeDescriptorInterfacesetEditor in interface AttributeDescriptorInterfacecom.sas.entities.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 Map getAttributeEditors()
AttributeDescriptorInterfacegetAttributeEditors in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacepublic List getAttributeEditorContexts()
AttributeDescriptorInterfacegetAttributeEditorContexts in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceEntityContextInterfacepublic List getValidators(String context)
AttributeDescriptorInterfacegetValidators in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterfaceAttributeDescriptorInterface.setValidators(String context, List validators)public List getValidatorsContexts()
AttributeDescriptorInterfacegetValidatorsContexts in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceEntityContextInterface
public void setValidators(String context,
List validators)
AttributeDescriptorInterfacesetValidators in interface AttributeDescriptorInterfacecom.sas.entities.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 AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)public void setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
AttributeDescriptorInterfacesetDefaultValueHasBeenSet in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacedefaultValueHasBeenSet - indicates whether the default value has been setAttributeDescriptorInterface.isDefaultValueHasBeenSet()public Object getSupplementalProperty(String propertyName)
AttributeDescriptorInterfacegetSupplementalProperty in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacepropertyName - name of the supplemental propertyAttributeDescriptorInterface.setSupplementalProperty(String propertyName, Object value)
public void setSupplementalProperty(String propertyName,
Object value)
AttributeDescriptorInterface
- setSupplementalProperty("dynamic", Boolean.TRUE);
- setSupplementalProperty("command", "some value");
setSupplementalProperty in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacepropertyName - name of the supplemental propertyvalue - property valueIllegalArgumentException - if propertyName is nullAttributeDescriptorInterface.getSupplementalProperty(String propertyName)public Map getSupplementalProperties()
AttributeDescriptorInterfacegetSupplementalProperties in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfaceAttributeDescriptorInterface.setSupplementalProperties(Map map)public void setSupplementalProperties(Map additionalProperties)
AttributeDescriptorInterfacesetSupplementalProperties in interface AttributeDescriptorInterfacecom.sas.entities.AttributeDescriptorInterfacemap - name/value pairs (property name/property value)AttributeDescriptorInterface.getSupplementalProperties()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||