Oracle Fusion Middleware Java API Reference for Oracle ADF Model Business Editor Objects
11g Release 1 (11.1.1.7.0)

E36215-01

oracle.adfinternal.businesseditor.objects
Class AttributeImpl

java.lang.Object
  extended by oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl
      extended by oracle.adfinternal.businesseditor.objects.BusinessEditorObjectImpl
          extended by oracle.adfinternal.businesseditor.objects.AttributeImpl
All Implemented Interfaces:
Attribute, ObjectGroupOwner
Direct Known Subclasses:
CustomAttributeImpl, StandardAttributeImpl

public abstract class AttributeImpl
extends BusinessEditorObjectImpl
implements Attribute

For internal framework use only. Base class for StandardAttributeImpl and CustomAttributeImpl.

For internal use only. Application developers should not use this

Constructor Summary
protected AttributeImpl(BusinessObjectImpl bo, java.lang.String attrName)
           
 
Method Summary
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.
 
Methods inherited from class oracle.adfinternal.businesseditor.objects.BusinessEditorObjectImpl
getBusinessEditor, getBusinessEditorLogic, getBusinessEditorManager, getBusinessEditorViewLogic, getDescription, getName, getObjectKey, getProperty, setDescription, setName, setProperty
 
Methods inherited from class oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl
cancelFlowForExistingObject, 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, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adf.businesseditor.objects.Attribute
getDescription, getName, setDescription
 

Constructor Detail

AttributeImpl

protected AttributeImpl(BusinessObjectImpl bo,
                        java.lang.String attrName)
Method Detail

getValidators

public java.util.Collection<AttributeValidator> getValidators()
Description copied from interface: Attribute
Retrieves all validators for the attribute.

Specified by:
getValidators in interface Attribute
Returns:
collection of validators

findValidator

public AttributeValidatorImpl findValidator(java.lang.String name)
Description copied from interface: Attribute
Retrieve the validator of the given name. If no validator exists for the name, null is returned.

Specified by:
findValidator in interface Attribute
Parameters:
name - name of the validator.
Returns:
validator with the given name

createValidator

public AttributeValidatorImpl createValidator(java.lang.String name,
                                              java.lang.String ruleDefinition,
                                              java.lang.String errorMessage)
Description copied from interface: Attribute
Creates a validator for this attribute.

Specified by:
createValidator in interface Attribute
Parameters:
name - name of the validator.
ruleDefinition - validator definition
Returns:
the validator created

deleteValidator

public void deleteValidator(AttributeValidator validator)
Description copied from interface: Attribute
Deletes a validator from this attribute.

Specified by:
deleteValidator in interface Attribute
Parameters:
validator - the validator to be deleted

getTriggers

public java.util.Collection<AttributeTrigger> getTriggers()
Description copied from interface: Attribute
Retrieve all triggers for this attribute.

Specified by:
getTriggers in interface Attribute
Returns:
collection of triggers

findTrigger

public AttributeTriggerImpl findTrigger(java.lang.String name)
Description copied from interface: Attribute
Retrieve the trigger of the given name. If no trigger exists for the name, null is returned.

Specified by:
findTrigger in interface Attribute
Parameters:
name - name of the trigger.
Returns:
trigger with the given name

createTrigger

public AttributeTriggerImpl createTrigger(java.lang.String name,
                                          java.lang.String triggerDefinition)
Description copied from interface: Attribute
Creates a trigger for this attribute.

Specified by:
createTrigger in interface Attribute
Parameters:
name - name of the trigger.
triggerDefinition - trigger definition of the trigger
Returns:
the trigger created for the type and name.

createTrigger

public AttributeTriggerImpl createTrigger(java.lang.String name,
                                          java.lang.String triggerDefinition,
                                          java.lang.String errorMessage)
Description copied from interface: Attribute
Creates a trigger for this attribute.

Specified by:
createTrigger in interface Attribute
Parameters:
name - name of the trigger.
triggerDefinition - trigger definition of the trigger
errorMessage - error message of the trigger
Returns:
the trigger created for the type and name.

deleteTrigger

public void deleteTrigger(AttributeTrigger trigger)
Description copied from interface: Attribute
Deletes a trigger from this attribute.

Specified by:
deleteTrigger in interface Attribute
Parameters:
trigger - the trigger to be deleted

setUpdateableExpression

public void setUpdateableExpression(java.lang.String expression)
Description copied from interface: Attribute
Registers the expression that control if this attribute is updateable.

Specified by:
setUpdateableExpression in interface Attribute
Parameters:
expression - the expression to control if this attribute is updateable.

getUpdateableExpression

public java.lang.String getUpdateableExpression()
Description copied from interface: Attribute
Returns the expression that determine if an attribute is updateable.

Specified by:
getUpdateableExpression in interface Attribute
Returns:
the expression to determine if an attribute is updateable.

addDependencyAttr

public void addDependencyAttr(Attribute attr)
Description copied from interface: Attribute
Adds an attribute as dependency attribute, whose data changes will cause this attribute's constraint expression to be reevaluated.

Specified by:
addDependencyAttr in interface Attribute
Parameters:
attr - the new dependent attribute

removeDependencyAttr

public void removeDependencyAttr(Attribute value)
Description copied from interface: Attribute
Removes an attribute as dependency attribute, whose data changes will cause this attribute's constraint expression to be reevaluated

Specified by:
removeDependencyAttr in interface Attribute
Parameters:
value - the dependent attribute to be removed

getDependencyAttrs

public java.util.List<java.lang.String> getDependencyAttrs()
Description copied from interface: Attribute
Returns list of dependency attributes for this attribute, whose data changes will cause this attribute's constraint expression to be reevaluated.

Specified by:
getDependencyAttrs in interface Attribute
Returns:
list of dependency attributes

setDisplayLabel

public void setDisplayLabel(java.lang.String displayLabel)
Description copied from interface: Attribute
Sets the display label of this attribute.

Specified by:
setDisplayLabel in interface Attribute
Parameters:
displayLabel - display label of this attribute

getDisplayLabel

public java.lang.String getDisplayLabel()
Description copied from interface: Attribute
Returns the display label of this attribute.

Specified by:
getDisplayLabel in interface Attribute
Returns:
the display label of this attribute

setHelpText

public void setHelpText(java.lang.String helpText)
Description copied from interface: Attribute
Sets a description in terms an application will understand.

Specified by:
setHelpText in interface Attribute
Parameters:
helpText - a description

getHelpText

public java.lang.String getHelpText()
Description copied from interface: Attribute
Returns a description in terms an application will understand.

Specified by:
getHelpText in interface Attribute
Returns:
a description

setRequired

public void setRequired(boolean required)
Description copied from interface: Attribute
Sets if value is required for this attribute.

Specified by:
setRequired in interface Attribute
Parameters:
required - if valud is required for this attribute

isRequired

public boolean isRequired()
Description copied from interface: Attribute
Returns if value is required for this attribute.

Specified by:
isRequired in interface Attribute
Returns:
if value is required for this attribute.

isRemovable

public boolean isRemovable()
Description copied from interface: Attribute
Returns if this attribute is removable.

Specified by:
isRemovable in interface Attribute
Returns:
if this attribute is removable

getGroupHelper

public ObjectGroupHelper getGroupHelper(ObjectType type)
Specified by:
getGroupHelper in interface ObjectGroupOwner
Overrides:
getGroupHelper in class BusinessEditorBaseObjectImpl

getBusinessObjectFullName

protected java.lang.String getBusinessObjectFullName()

getApiName

protected java.lang.String getApiName()

renameValidator

protected void renameValidator(AttributeValidatorImpl validator,
                               java.lang.String oldName,
                               java.lang.String newName)

renameTrigger

protected void renameTrigger(AttributeTriggerImpl trigger,
                             java.lang.String oldName,
                             java.lang.String newName)

addAttrToList

protected void addAttrToList(java.lang.String property,
                             AttributeImpl value)

removeAttrFromList

protected void removeAttrFromList(java.lang.String property,
                                  AttributeImpl value)

doCommit

protected void doCommit()
Overrides:
doCommit in class BusinessEditorBaseObjectImpl

doRollback

protected void doRollback()
Overrides:
doRollback in class BusinessEditorBaseObjectImpl

addTrigger

protected void addTrigger(java.lang.String name)

setTriggerPopulated

protected void setTriggerPopulated()

getFixedChoiceListLookupType

protected abstract java.lang.String getFixedChoiceListLookupType()

getLogicalType

protected abstract java.lang.String getLogicalType()

Oracle Fusion Middleware Java API Reference for Oracle ADF Model Business Editor Objects
11g Release 1 (11.1.1.7.0)

E36215-01

Copyright © 1997, 2013, Oracle. All rights reserved.