public final class StandardAttributeImpl extends java.lang.Object implements StandardAttribute
| Modifier | Constructor and Description |
|---|---|
protected |
StandardAttributeImpl(oracle.adfinternal.businesseditor.objects.BusinessObjectImpl bo,
java.lang.String attrName,
java.lang.String logicalType,
java.lang.String picklistLookupType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept(ObjectVisitor visitor)
A visitor pattern is implemented for business object to visit all components
of a business object.
|
void |
activate() |
protected void |
addAttrToList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.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) |
protected void |
addValidator(java.lang.String name) |
protected void |
cancelFlowForExistingObject() |
protected void |
cancelFlowForNewObject() |
boolean |
canPopulateChildren() |
protected void |
checkLoadObject() |
protected void |
commitObject() |
protected boolean |
containsProperty(java.lang.String property) |
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition)
Creates a trigger for this attribute.
|
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition,
java.lang.String errorMessage)
Creates a trigger for this attribute.
|
oracle.adfinternal.businesseditor.objects.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.
|
void |
deprecate() |
protected void |
doCommit() |
protected void |
doRollback() |
void |
ensureVerified() |
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
findTrigger(java.lang.String name)
Retrieve the trigger of the given name.
|
oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl |
findValidator(java.lang.String name)
Retrieve the validator of the given name.
|
protected void |
finishFlow() |
protected void |
finishFlowForExistingObject() |
protected void |
finishFlowForNewObject() |
protected java.lang.String |
getApiName() |
protected java.util.List<Attribute> |
getAttributeListFromAttrNameList(BusinessObject bo,
java.util.List<java.lang.String> attrNames) |
protected oracle.adf.businesseditor.model.BusinessEditorImpl |
getBusinessEditor() |
protected oracle.adf.businesseditor.model.BusinessEditorLogic |
getBusinessEditorLogic() |
protected BusinessEditorManagerImpl |
getBusinessEditorManager() |
BusinessObject |
getBusinessObject()
Returns the business object that owns the attribute
|
protected java.lang.String |
getBusinessObjectFullName() |
protected oracle.adfinternal.businesseditor.objects.ObjectGroupOwner |
getContainer() |
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.
|
protected java.util.Collection<oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl> |
getDependentObjects() |
java.lang.String |
getDescription() |
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.
|
oracle.adfinternal.businesseditor.objects.ObjectGroupHelper |
getGroupHelper(oracle.adfinternal.businesseditor.objects.ObjectType type) |
java.lang.String |
getHelpText()
Returns a description in terms an application will understand.
|
protected boolean |
getIsCascadingPicklistEnabled() |
protected java.lang.String |
getIsDeprecatedPropertyKey() |
protected java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.Object... args) |
protected java.lang.String |
getLogicalType() |
java.lang.String |
getName() |
protected java.lang.String |
getObjectKey() |
protected java.lang.String |
getObjectName() |
protected oracle.adfinternal.businesseditor.objects.ObjectType |
getObjectType() |
oracle.adfinternal.businesseditor.objects.AttributeImpl |
getParentChoiceList()
Gets the parent the choice list that constrains the values in this choice list.
|
protected java.lang.String |
getParentChoiceListAttributeVAName() |
java.lang.Object |
getProperty(java.lang.String property) |
protected java.lang.Object |
getPropertyNoLoad(java.lang.String property) |
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.
|
protected oracle.jbo.ViewObject |
getViewObjectBeingEdited() |
protected void |
initFlow() |
protected void |
initFlowForExistingObject() |
protected void |
initFlowForNewObject() |
protected void |
initialize() |
boolean |
isDeprecated() |
protected boolean |
isDirty() |
protected boolean |
isLoaded() |
protected boolean |
isNew() |
protected boolean |
isNotVerified() |
protected boolean |
isPicklist() |
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 |
populateChildren(oracle.adfinternal.businesseditor.objects.ObjectType type) |
protected void |
postCommit() |
protected void |
preCommit() |
protected void |
readObject(oracle.jbo.Row row) |
protected void |
removeAttrFromList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.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 |
removeProperty(java.lang.String property) |
protected void |
renameTrigger(oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl trigger,
java.lang.String oldName,
java.lang.String newName) |
protected void |
renameValidator(oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl validator,
java.lang.String oldName,
java.lang.String newName) |
void |
setDescription(java.lang.String text) |
protected void |
setDirty(boolean value) |
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.
|
protected void |
setName(java.lang.String name) |
protected void |
setNew() |
protected void |
setNotExist() |
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.
|
protected void |
setProperty(java.lang.String property,
java.lang.Object value) |
protected void |
setPropertyNoLoad(java.lang.String property,
java.lang.Object value) |
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.
|
protected void |
setValidatorPopulated() |
protected void |
setVerified() |
protected boolean |
valuesDiffer(java.lang.Object oldValue,
java.lang.Object newValue) |
protected void |
writeObject(oracle.jbo.Row object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDependencyAttr, createTrigger, createTrigger, createValidator, deleteTrigger, deleteValidator, findTrigger, findValidator, getBusinessObject, getDependencyAttributes, getDependencyAttrs, getDescription, getDisplayLabel, getFixedChoiceListValueMap, getHelpText, getName, getParentChoiceList, getTriggers, getUpdateableExpression, getValidators, isRemovable, isRequired, isUpdateable, removeDependencyAttr, setDescription, setDisplayLabel, setHelpText, setUpdateableExpressionprotected StandardAttributeImpl(oracle.adfinternal.businesseditor.objects.BusinessObjectImpl bo,
java.lang.String attrName,
java.lang.String logicalType,
java.lang.String picklistLookupType)
public void setRequired(boolean required)
AttributesetRequired in interface Attributerequired - if valud is required for this attributepublic java.lang.String getType()
Attributepublic java.lang.String getFixedChoiceListLookupType()
AttributegetFixedChoiceListLookupType in interface Attributepublic void setParentChoiceList(Attribute parent, java.util.Map<java.lang.String,java.util.List> valueMap)
AttributesetParentChoiceList in interface Attributeparent - the attribute of the parent choice listvalueMap - the value mapping between the parent choice list and this attributeprotected void initFlowForNewObject()
protected void initFlowForExistingObject()
protected void finishFlowForNewObject()
protected void finishFlowForExistingObject()
protected void cancelFlowForNewObject()
protected void cancelFlowForExistingObject()
protected oracle.jbo.ViewObject getViewObjectBeingEdited()
protected java.lang.String getLogicalType()
protected oracle.adfinternal.businesseditor.objects.ObjectType getObjectType()
protected boolean isPicklist()
protected boolean getIsCascadingPicklistEnabled()
protected java.lang.String getParentChoiceListAttributeVAName()
protected void accept(ObjectVisitor visitor)
ObjectVisitor)
method which does the followings:
1. Call visitor.visit(this) to process the current object
2. Call accept for all its children so all children will be visitedvisitor - ObjectVisitor instancepublic java.util.Collection<AttributeValidator> getValidators()
AttributegetValidators in interface Attributepublic oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl findValidator(java.lang.String name)
AttributefindValidator in interface Attributename - name of the validator.public oracle.adfinternal.businesseditor.objects.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 oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl findTrigger(java.lang.String name)
AttributefindTrigger in interface Attributename - name of the trigger.public oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl createTrigger(java.lang.String name,
java.lang.String triggerDefinition)
AttributecreateTrigger in interface Attributename - name of the trigger.triggerDefinition - trigger definition of the triggerpublic oracle.adfinternal.businesseditor.objects.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 java.util.List<Attribute> getDependencyAttributes()
AttributegetDependencyAttributes 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 boolean isRequired()
AttributeisRequired in interface Attributepublic boolean isRemovable()
AttributeisRemovable in interface Attributepublic oracle.adfinternal.businesseditor.objects.ObjectGroupHelper getGroupHelper(oracle.adfinternal.businesseditor.objects.ObjectType type)
public oracle.adfinternal.businesseditor.objects.AttributeImpl getParentChoiceList()
AttributegetParentChoiceList in interface Attributepublic java.util.Map<java.lang.String,java.util.List> getFixedChoiceListValueMap()
AttributegetFixedChoiceListValueMap in interface Attributepublic boolean isUpdateable()
AttributeisUpdateable in interface Attributepublic BusinessObject getBusinessObject()
AttributegetBusinessObject in interface Attributeprotected java.lang.String getBusinessObjectFullName()
protected java.lang.String getApiName()
protected void renameValidator(oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl validator,
java.lang.String oldName,
java.lang.String newName)
protected void renameTrigger(oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl trigger,
java.lang.String oldName,
java.lang.String newName)
protected void addAttrToList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.AttributeImpl value)
protected void removeAttrFromList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.AttributeImpl value)
protected void doCommit()
protected void preCommit()
protected void postCommit()
protected void doRollback()
protected void addTrigger(java.lang.String name)
protected void setTriggerPopulated()
protected void addValidator(java.lang.String name)
protected void setValidatorPopulated()
protected java.util.Collection<oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl> getDependentObjects()
protected java.util.List<Attribute> getAttributeListFromAttrNameList(BusinessObject bo, java.util.List<java.lang.String> attrNames)
public java.lang.String getName()
public void setDescription(java.lang.String text)
public java.lang.String getDescription()
public java.lang.Object getProperty(java.lang.String property)
public void deprecate()
public void activate()
public boolean isDeprecated()
protected void setName(java.lang.String name)
protected BusinessEditorManagerImpl getBusinessEditorManager()
protected oracle.adf.businesseditor.model.BusinessEditorImpl getBusinessEditor()
protected oracle.adf.businesseditor.model.BusinessEditorLogic getBusinessEditorLogic()
protected void setProperty(java.lang.String property,
java.lang.Object value)
protected java.lang.String getObjectKey()
protected java.lang.String getIsDeprecatedPropertyKey()
protected void commitObject()
protected void readObject(oracle.jbo.Row row)
protected void writeObject(oracle.jbo.Row object)
public void populateChildren(oracle.adfinternal.businesseditor.objects.ObjectType type)
protected boolean valuesDiffer(java.lang.Object oldValue,
java.lang.Object newValue)
public void ensureVerified()
protected void checkLoadObject()
protected boolean isNew()
protected void setNew()
protected boolean isLoaded()
protected boolean isNotVerified()
protected void setNotExist()
protected void setVerified()
protected boolean isDirty()
protected void setDirty(boolean value)
protected final void initFlow()
protected final void finishFlow()
protected java.lang.Object getPropertyNoLoad(java.lang.String property)
protected void setPropertyNoLoad(java.lang.String property,
java.lang.Object value)
protected boolean containsProperty(java.lang.String property)
protected void removeProperty(java.lang.String property)
public boolean canPopulateChildren()
protected void initialize()
protected oracle.adfinternal.businesseditor.objects.ObjectGroupOwner getContainer()
protected java.lang.String getLocalizedString(java.lang.String key,
java.lang.Object... args)
protected java.lang.String getObjectName()