|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.AttributeDescriptor
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 AttributeDescriptorpublic AttributeDescriptor(java.lang.String name, java.util.Map supplementalProperties)
name
- name associated with the AttributeDescriptorMethod Detail |
---|
public boolean isVisible()
AttributeDescriptorInterface
isVisible
in interface AttributeDescriptorInterface
AttributeDescriptorInterface.setVisible(boolean visible)
public void setVisible(boolean visible)
AttributeDescriptorInterface
setVisible
in interface AttributeDescriptorInterface
visible
- 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 AttributeDescriptorInterface
AttributeDescriptorInterface.setProperty(boolean property)
public void setProperty(boolean property)
AttributeDescriptorInterface
setProperty
in interface AttributeDescriptorInterface
property
- a boolean
valueAttributeDescriptorInterface.isProperty()
public boolean isModifiable()
AttributeDescriptorInterface
isModifiable
in interface AttributeDescriptorInterface
AttributeDescriptorInterface.setModifiable(boolean modifiable)
public void setModifiable(boolean modifiable)
AttributeDescriptorInterface
setModifiable
in interface AttributeDescriptorInterface
modifiable
- 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 AttributeDescriptorInterface
AttributeDescriptorInterface.setExpert(boolean expert)
public void setExpert(boolean expert)
AttributeDescriptorInterface
setExpert
in interface AttributeDescriptorInterface
expert
- 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 AttributeDescriptorInterface
AttributeDescriptorInterface.setRequired(boolean required)
public void setRequired(boolean required)
AttributeDescriptorInterface
setRequired
in interface AttributeDescriptorInterface
required
- 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 AttributeDescriptorInterface
AttributeDescriptorInterface.setType(AttributeTypeInterface attributeType)
,
AttributeTypeInterface
public void setType(AttributeTypeInterface attributeType)
AttributeDescriptorInterface
setType
in interface AttributeDescriptorInterface
attributeType
- The AttributeType associated with this
AttributeDescriptor.AttributeDescriptorInterface.getType()
public java.lang.String getStringDefault()
AttributeDescriptorInterface
getStringDefault
in interface AttributeDescriptorInterface
public java.lang.Object getDefault()
AttributeDescriptorInterface
getDefault
in interface AttributeDescriptorInterface
AttributeDescriptorInterface.setDefault(Object defaultValue)
public void setDefault(java.lang.Object defaultValue)
AttributeDescriptorInterface
NOTE: 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 AttributeDescriptorInterface
defaultValue
- default value for the attributeAttributeTypeInterface
,
AttributeDescriptorInterface.getDefault()
,
setType
public java.lang.String getEditor(java.lang.String context)
AttributeDescriptorInterface
getEditor
in interface AttributeDescriptorInterface
context
- 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 AttributeDescriptorInterface
context
- the context in which the editor is instantiated/used;
it is a platform specification from EntityContextInterface
editor
- the class name of the editorAttributeDescriptorInterface.getEditor(String context)
public java.util.Map getAttributeEditors()
AttributeDescriptorInterface
getAttributeEditors
in interface AttributeDescriptorInterface
public java.util.List getAttributeEditorContexts()
AttributeDescriptorInterface
getAttributeEditorContexts
in interface AttributeDescriptorInterface
EntityContextInterface
public java.util.List getValidators(java.lang.String context)
AttributeDescriptorInterface
getValidators
in interface AttributeDescriptorInterface
context
- 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 AttributeDescriptorInterface
EntityContextInterface
public void setValidators(java.lang.String context, java.util.List validators)
AttributeDescriptorInterface
setValidators
in interface AttributeDescriptorInterface
context
- the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterface
validators
- class names of the validatorsEntityContextInterface
,
AttributeDescriptorInterface.getValidators(String context)
public boolean isDefaultValueHasBeenSet()
AttributeDescriptorInterface
AttributeDescriptorInterface.setDefault(Object defaultValue)
call).
isDefaultValueHasBeenSet
in interface AttributeDescriptorInterface
AttributeDescriptorInterface.setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
public void setDefaultValueHasBeenSet(boolean defaultValueHasBeenSet)
AttributeDescriptorInterface
setDefaultValueHasBeenSet
in interface AttributeDescriptorInterface
defaultValueHasBeenSet
- indicates whether the default value has been setAttributeDescriptorInterface.isDefaultValueHasBeenSet()
public java.lang.Object getSupplementalProperty(java.lang.String propertyName)
AttributeDescriptorInterface
getSupplementalProperty
in interface AttributeDescriptorInterface
propertyName
- 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 AttributeDescriptorInterface
propertyName
- name of the supplemental propertyvalue
- property valueAttributeDescriptorInterface.getSupplementalProperty(String propertyName)
public java.util.Map getSupplementalProperties()
AttributeDescriptorInterface
getSupplementalProperties
in interface AttributeDescriptorInterface
AttributeDescriptorInterface.setSupplementalProperties(Map map)
public void setSupplementalProperties(java.util.Map additionalProperties)
AttributeDescriptorInterface
setSupplementalProperties
in interface AttributeDescriptorInterface
additionalProperties
- 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 |