public abstract class AttributeImpl extends BusinessEditorObjectImpl implements Attribute
StandardAttributeImpl and CustomAttributeImpl.| Modifier | Constructor and Description |
|---|---|
protected |
AttributeImpl(BusinessObjectImpl bo, java.lang.String attrName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttrToList(java.lang.String property, AttributeImpl value) |
void |
addDependencyAttr(Attribute attr)
Adds an attribute as dependency attribute, whose data changes will cause this attribute's constraint expression to be reevaluated.
|
protected void |
addTrigger(java.lang.String name) |
AttributeTriggerImpl |
createTrigger(java.lang.String name, java.lang.String triggerDefinition)
Creates a trigger for this attribute.
|
AttributeTriggerImpl |
createTrigger(java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
Creates a trigger for this attribute.
|
AttributeValidatorImpl |
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.
|
protected void |
doCommit() |
protected void |
doRollback() |
AttributeTriggerImpl |
findTrigger(java.lang.String name)
Retrieve the trigger of the given name.
|
AttributeValidatorImpl |
findValidator(java.lang.String name)
Retrieve the validator of the given name.
|
protected java.lang.String |
getApiName() |
protected java.lang.String |
getBusinessObjectFullName() |
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 |
getDisplayLabel()
Returns the display label of this attribute.
|
protected abstract java.lang.String |
getFixedChoiceListLookupType() |
ObjectGroupHelper |
getGroupHelper(ObjectType type) |
java.lang.String |
getHelpText()
Returns a description in terms an application will understand.
|
protected abstract java.lang.String |
getLogicalType() |
java.util.Collection<AttributeTrigger> |
getTriggers()
Retrieve all triggers for 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.
|
protected void |
removeAttrFromList(java.lang.String property, AttributeImpl value) |
void |
removeDependencyAttr(Attribute value)
Removes an attribute as dependency attribute, whose data changes will cause this attribute's constraint expression to be reevaluated
|
protected void |
renameTrigger(AttributeTriggerImpl trigger, java.lang.String oldName, java.lang.String newName) |
protected void |
renameValidator(AttributeValidatorImpl validator, java.lang.String oldName, java.lang.String newName) |
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 |
setRequired(boolean required)
Sets if value is required for this attribute.
|
protected void |
setTriggerPopulated() |
void |
setUpdateableExpression(java.lang.String expression)
Registers the expression that control if this attribute is updateable.
|
getBusinessEditor, getBusinessEditorLogic, getBusinessEditorManager, getBusinessEditorViewLogic, getDescription, getName, getObjectKey, getProperty, setDescription, setName, setPropertycancelFlowForExistingObject, cancelFlowForNewObject, canPopulateChildren, checkLoadObject, containsProperty, ensureVerified, finishFlowForExistingObject, finishFlowForNewObject, getContainer, getLocalizedString, getObjectType, getPropertyNoLoad, getViewObjectBeingEdited, initFlowForExistingObject, initFlowForNewObject, initialize, isLoaded, isNew, isNotVerified, populateChildren, postCommit, preCommit, readObject, removeProperty, setDirty, setNew, setNotExist, setPropertyNoLoad, setVerified, valuesDiffer, writeObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getName, setDescriptionprotected AttributeImpl(BusinessObjectImpl bo, java.lang.String attrName)
public java.util.Collection<AttributeValidator> getValidators()
AttributegetValidators in interface Attributepublic AttributeValidatorImpl findValidator(java.lang.String name)
AttributefindValidator in interface Attributename - name of the validator.public AttributeValidatorImpl createValidator(java.lang.String name, java.lang.String ruleDefinition, java.lang.String errorMessage)
AttributecreateValidator in interface Attributename - name of the validator.ruleDefinition - validator definitionpublic void deleteValidator(AttributeValidator validator)
AttributedeleteValidator in interface Attributevalidator - the validator to be deletedpublic java.util.Collection<AttributeTrigger> getTriggers()
AttributegetTriggers in interface Attributepublic AttributeTriggerImpl findTrigger(java.lang.String name)
AttributefindTrigger in interface Attributename - name of the trigger.public AttributeTriggerImpl createTrigger(java.lang.String name, java.lang.String triggerDefinition)
AttributecreateTrigger in interface Attributename - name of the trigger.triggerDefinition - trigger definition of the triggerpublic AttributeTriggerImpl createTrigger(java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
AttributecreateTrigger in interface Attributename - name of the trigger.triggerDefinition - trigger definition of the triggererrorMessage - error message of the triggerpublic void deleteTrigger(AttributeTrigger trigger)
AttributedeleteTrigger in interface Attributetrigger - the trigger to be deletedpublic void setUpdateableExpression(java.lang.String expression)
AttributesetUpdateableExpression in interface Attributeexpression - the expression to control if this attribute is updateable.public java.lang.String getUpdateableExpression()
AttributegetUpdateableExpression in interface Attributepublic void addDependencyAttr(Attribute attr)
AttributeaddDependencyAttr in interface Attributeattr - the new dependent attributepublic void removeDependencyAttr(Attribute value)
AttributeremoveDependencyAttr in interface Attributevalue - the dependent attribute to be removedpublic java.util.List<java.lang.String> getDependencyAttrs()
AttributegetDependencyAttrs in interface Attributepublic void setDisplayLabel(java.lang.String displayLabel)
AttributesetDisplayLabel in interface AttributedisplayLabel - display label of this attributepublic java.lang.String getDisplayLabel()
AttributegetDisplayLabel in interface Attributepublic void setHelpText(java.lang.String helpText)
AttributesetHelpText in interface AttributehelpText - a descriptionpublic java.lang.String getHelpText()
AttributegetHelpText in interface Attributepublic void setRequired(boolean required)
AttributesetRequired in interface Attributerequired - if valud is required for this attributepublic boolean isRequired()
AttributeisRequired in interface Attributepublic boolean isRemovable()
AttributeisRemovable in interface Attributepublic ObjectGroupHelper getGroupHelper(ObjectType type)
getGroupHelper in interface ObjectGroupOwnergetGroupHelper in class BusinessEditorBaseObjectImplprotected java.lang.String getBusinessObjectFullName()
protected java.lang.String getApiName()
protected void renameValidator(AttributeValidatorImpl validator, java.lang.String oldName, java.lang.String newName)
protected void renameTrigger(AttributeTriggerImpl trigger, java.lang.String oldName, java.lang.String newName)
protected void addAttrToList(java.lang.String property,
AttributeImpl value)
protected void removeAttrFromList(java.lang.String property,
AttributeImpl value)
protected void doCommit()
doCommit in class BusinessEditorBaseObjectImplprotected void doRollback()
doRollback in class BusinessEditorBaseObjectImplprotected void addTrigger(java.lang.String name)
protected void setTriggerPopulated()
protected abstract java.lang.String getFixedChoiceListLookupType()
protected abstract java.lang.String getLogicalType()