org.tigris.scarab.om
Interface Conditioned

All Known Implementing Classes:
Attribute, RModuleAttribute, RModuleIssueType, Transition

public interface Conditioned

This interface declared the methods that any object subjected to Conditions should implement. It's meant to enforce the way this objects behave, so the Condition-related actions could evolve if necessary.

Author:
Jorge

Method Summary
 java.lang.Integer[] getConditionsArray()
          Returns the array of Ids of the conditions that will force the requirement of this attribute if set.
 boolean isConditioned()
           
 boolean isRequiredIf(java.lang.Integer optionID)
          Return true if the given attributeOptionId will make the current attribute required.
 void setConditionsArray(java.lang.Integer[] aOptionId)
          Load the attribute options' IDs from the template combo.
 

Method Detail

getConditionsArray

public java.lang.Integer[] getConditionsArray()
Returns the array of Ids of the conditions that will force the requirement of this attribute if set. Used by templates to load the combo.

Returns:

setConditionsArray

public void setConditionsArray(java.lang.Integer[] aOptionId)
                        throws org.apache.torque.TorqueException
Load the attribute options' IDs from the template combo.

Parameters:
aOptionId -
Throws:
org.apache.torque.TorqueException

isRequiredIf

public boolean isRequiredIf(java.lang.Integer optionID)
                     throws org.apache.torque.TorqueException
Return true if the given attributeOptionId will make the current attribute required.

Parameters:
optionID -
Returns:
Throws:
org.apache.torque.TorqueException

isConditioned

public boolean isConditioned()
Returns:
true if there's any condition associated to this object, false if there's not.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.