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

E36215-01

oracle.adf.businesseditor.objects
Interface Attribute

All Known Subinterfaces:
CustomAttribute, StandardAttribute
All Known Implementing Classes:
AttributeImpl, CustomAttributeImpl, StandardAttributeImpl

public interface Attribute

Base class for StandardAttribute and CustomAttribute.

For internal use only. Application developers should not use this

Method Summary
 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.
 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 getHelpText()
          Returns a description in terms an application will understand.
 java.lang.String getName()
          Returns the name of the object.
 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.
 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 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.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the object.

Returns:
the name of the object
Throws:

getValidators

java.util.Collection<AttributeValidator> getValidators()
Retrieves all validators for the attribute.

Returns:
collection of validators

findValidator

AttributeValidator findValidator(java.lang.String name)
Retrieve the validator of the given name. If no validator exists for the name, null is returned.

Parameters:
name - name of the validator.
Returns:
validator with the given name

createValidator

AttributeValidator createValidator(java.lang.String name,
                                   java.lang.String ruleDefinition,
                                   java.lang.String errorMessage)
Creates a validator for this attribute.

Parameters:
name - name of the validator.
ruleDefinition - validator definition
Returns:
the validator created
Throws:
oracle.jbo.JboException - if an validator for the given name already exists.

deleteValidator

void deleteValidator(AttributeValidator validator)
Deletes a validator from this attribute.

Parameters:
validator - the validator to be deleted
Throws:
oracle.jbo.JboException - if an validator is not provided.

getTriggers

java.util.Collection<AttributeTrigger> getTriggers()
Retrieve all triggers for this attribute.

Returns:
collection of triggers

findTrigger

AttributeTrigger findTrigger(java.lang.String name)
Retrieve the trigger of the given name. If no trigger exists for the name, null is returned.

Parameters:
name - name of the trigger.
Returns:
trigger with the given name
Throws:

createTrigger

AttributeTrigger createTrigger(java.lang.String name,
                               java.lang.String triggerDefinition)
Creates a trigger for this attribute.

Parameters:
name - name of the trigger.
triggerDefinition - trigger definition of the trigger
Returns:
the trigger created for the type and name.
Throws:
oracle.jbo.JboException - if an trigger for the given name already exists.

createTrigger

AttributeTrigger createTrigger(java.lang.String name,
                               java.lang.String triggerDefinition,
                               java.lang.String errorMessage)
Creates a trigger for this 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.
Throws:
oracle.jbo.JboException - if an trigger for the given name already exists.

deleteTrigger

void deleteTrigger(AttributeTrigger trigger)
Deletes a trigger from this attribute.

Parameters:
trigger - the trigger to be deleted
Throws:
oracle.jbo.JboException - if an trigger is not provided.

setUpdateableExpression

void setUpdateableExpression(java.lang.String expression)
Registers the expression that control if this attribute is updateable.

Parameters:
expression - the expression to control if this attribute is updateable.
Throws:
oracle.jbo.JboException - if updateable expression cannot be set for the attribute type.

getUpdateableExpression

java.lang.String getUpdateableExpression()
Returns the expression that determine if an attribute is updateable.

Returns:
the expression to determine if an attribute is updateable.
Throws:

addDependencyAttr

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

Parameters:
attr - the new dependent attribute

removeDependencyAttr

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

Parameters:
value - the dependent attribute to be removed

getDependencyAttrs

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.

Returns:
list of dependency attributes

setDisplayLabel

void setDisplayLabel(java.lang.String displayLabel)
Sets the display label of this attribute.

Parameters:
displayLabel - display label of this attribute

getDisplayLabel

java.lang.String getDisplayLabel()
Returns the display label of this attribute.

Returns:
the display label of this attribute

setHelpText

void setHelpText(java.lang.String helpText)
Sets a description in terms an application will understand.

Parameters:
helpText - a description

getHelpText

java.lang.String getHelpText()
Returns a description in terms an application will understand.

Returns:
a description
Throws:

setDescription

void setDescription(java.lang.String text)
Sets the description of the object.

Parameters:
text - description of the object
Throws:

getDescription

java.lang.String getDescription()
Returns the description of the object.

Returns:
the description of the object
Throws:

setRequired

void setRequired(boolean required)
Sets if value is required for this attribute.

Parameters:
required - if valud is required for this attribute

isRequired

boolean isRequired()
Returns if value is required for this attribute.

Returns:
if value is required for this attribute.

isRemovable

boolean isRemovable()
Returns if this attribute is removable.

Returns:
if this attribute is removable

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.