public interface Attribute
StandardAttribute and CustomAttribute.
Note that new methods may be added to this interface without notice. Do
not extend this interface for custom classes.| Modifier and Type | Method and Description |
|---|---|
void |
addDependencyAttr(Attribute attr)
Adds an attribute as dependency attribute, whose data changes will cause
this attribute's constraint expression to be reevaluated.
|
AttributeTrigger |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition)
Creates a trigger for this attribute.
|
AttributeTrigger |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition,
java.lang.String errorMessage)
Creates a trigger for this attribute.
|
AttributeValidator |
createValidator(java.lang.String name,
java.lang.String ruleDefinition,
java.lang.String errorMessage)
Creates a validator for this attribute.
|
void |
deleteTrigger(AttributeTrigger trigger)
Deletes a trigger from this attribute.
|
void |
deleteValidator(AttributeValidator validator)
Deletes a validator from this attribute.
|
AttributeTrigger |
findTrigger(java.lang.String name)
Retrieve the trigger of the given name.
|
AttributeValidator |
findValidator(java.lang.String name)
Retrieve the validator of the given name.
|
BusinessObject |
getBusinessObject()
Returns the business object that owns the attribute
|
java.util.List<Attribute> |
getDependencyAttributes()
Returns list of dependency attributes for this attribute, whose data
changes will cause this attribute's constraint expression to be
reevaluated.
|
java.util.List<java.lang.String> |
getDependencyAttrs()
Returns list of dependency attributes for this attribute, whose data
changes will cause this attribute's constraint expression to be
reevaluated.
|
java.lang.String |
getDescription()
Returns the description of the object.
|
java.lang.String |
getDisplayLabel()
Returns the display label of this attribute.
|
java.lang.String |
getFixedChoiceListLookupType()
Returns the fixed choice lookup type if the attribute is defined as
a fixed choice list
|
java.util.Map<java.lang.String,java.util.List> |
getFixedChoiceListValueMap()
Gets the value map if this attribute is a cascading picklist.
|
java.lang.String |
getHelpText()
Returns a description in terms an application will understand.
|
java.lang.String |
getName()
Returns the name of the object.
|
Attribute |
getParentChoiceList()
Gets the parent the choice list that constrains the values in this choice list.
|
java.util.Collection<AttributeTrigger> |
getTriggers()
Retrieve all triggers for this attribute.
|
java.lang.String |
getType()
Returns the type of this attribute.
|
java.lang.String |
getUpdateableExpression()
Returns the expression that determine if an attribute is updateable.
|
java.util.Collection<AttributeValidator> |
getValidators()
Retrieves all validators for the attribute.
|
boolean |
isRemovable()
Returns if this attribute is removable.
|
boolean |
isRequired()
Returns if value is required for this attribute.
|
boolean |
isUpdateable()
Returns if this attribute is updateable
|
void |
removeDependencyAttr(Attribute value)
Removes an attribute as dependency attribute, whose data changes will
cause this attribute's constraint expression to be reevaluated
|
void |
setDescription(java.lang.String text)
Sets the description of the object.
|
void |
setDisplayLabel(java.lang.String displayLabel)
Sets the display label of this attribute.
|
void |
setHelpText(java.lang.String helpText)
Sets a description in terms an application will understand.
|
void |
setParentChoiceList(Attribute parent,
java.util.Map<java.lang.String,java.util.List> valueMap)
Sets the parent choice list that constrains the values in this choice list.
|
void |
setRequired(boolean required)
Sets if value is required for this attribute.
|
void |
setUpdateableExpression(java.lang.String expression)
Registers the expression that control if this attribute is updateable.
|
java.lang.String getName()
java.lang.String getType()
java.util.Collection<AttributeValidator> getValidators()
AttributeValidator findValidator(java.lang.String name)
name - name of the validator.AttributeValidator createValidator(java.lang.String name, java.lang.String ruleDefinition, java.lang.String errorMessage)
name - name of the validator.ruleDefinition - validator definitionJboException - if an validator for the given name already exists.void deleteValidator(AttributeValidator validator)
validator - the validator to be deletedJboException - if an validator is not provided.java.util.Collection<AttributeTrigger> getTriggers()
AttributeTrigger findTrigger(java.lang.String name)
name - name of the trigger.AttributeTrigger createTrigger(java.lang.String name, java.lang.String triggerDefinition)
name - name of the trigger.triggerDefinition - trigger definition of the triggerJboException - if an trigger for the given name already exists.AttributeTrigger createTrigger(java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
name - name of the trigger.triggerDefinition - trigger definition of the triggererrorMessage - error message of the triggerJboException - if an trigger for the given name already exists.void deleteTrigger(AttributeTrigger trigger)
trigger - the trigger to be deletedJboException - if an trigger is not provided.void setUpdateableExpression(java.lang.String expression)
expression - the expression to control if this attribute is updateable.JboException - if updateable expression cannot be set for the attribute type.java.lang.String getUpdateableExpression()
void addDependencyAttr(Attribute attr)
attr - the new dependent attributevoid removeDependencyAttr(Attribute value)
value - the dependent attribute to be removedjava.util.List<java.lang.String> getDependencyAttrs()
java.util.List<Attribute> getDependencyAttributes()
void setDisplayLabel(java.lang.String displayLabel)
displayLabel - display label of this attributejava.lang.String getDisplayLabel()
void setHelpText(java.lang.String helpText)
helpText - a descriptionjava.lang.String getHelpText()
void setDescription(java.lang.String text)
text - description of the objectjava.lang.String getDescription()
void setRequired(boolean required)
required - if valud is required for this attributeboolean isRequired()
boolean isRemovable()
java.lang.String getFixedChoiceListLookupType()
void setParentChoiceList(Attribute parent, java.util.Map<java.lang.String,java.util.List> valueMap)
parent - the attribute of the parent choice listvalueMap - the value mapping between the parent choice list and this attributeJboException - if the parent attribute specified is not a picklistAttribute getParentChoiceList()
java.util.Map<java.lang.String,java.util.List> getFixedChoiceListValueMap()
BusinessObject getBusinessObject()
boolean isUpdateable()