|
Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference E14011-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterCondition
This class represents the conditions defined in the user rules
FilterCondition helper function to create conditions to the rule type. It use exceptions to enforce that the operation types and the number and types of the arguments are correct.
Method Summary | |
---|---|
BusinessRuleTerm |
getBusinessRuleTerm()
Get the business term that is to be used by the condition |
java.lang.String |
getBusinessTermName()
Get the name of the business term |
java.lang.String |
getBusinessTermType()
Get the type of the business term |
java.lang.Object |
getOperandOne()
Get the first operand of the condition |
java.lang.Object |
getOperandTwo()
Get the second operand of the condition |
TermOperationType |
getTermOperation()
Get the operation of the condition |
Iterator<BusinessRuleTerm> |
getValidBusinessTerms()
|
Iterator<java.lang.String> |
getValidTerms()
|
boolean |
isEqual(FilterCondition f)
Check if the two filter conditions are the same |
boolean |
isValidTerm(BusinessRuleTerm t)
Validate if the RuleTerm is a valid business term |
boolean |
isValidTerm(java.lang.String t)
Validate if the RuleTerm is a valid business term |
void |
setFilterTerm(java.lang.String name)
Set the business term that is to be used by the condition |
void |
setOperandOne(java.lang.Object o1)
Set the first operand of the condition |
void |
setOperandTwo(java.lang.Object o2)
Set the second operand of the condition |
void |
setTermOperation(TermOperationType value)
Sets the operation of the condition |
boolean |
validate()
Check that the Object is valid |
Method Detail |
---|
BusinessRuleTerm getBusinessRuleTerm()
java.lang.String getBusinessTermName()
java.lang.String getBusinessTermType()
java.lang.Object getOperandOne()
java.lang.Object getOperandTwo()
TermOperationType getTermOperation()
Iterator<BusinessRuleTerm> getValidBusinessTerms()
Iterator<java.lang.String> getValidTerms()
boolean isEqual(FilterCondition f)
f
- the filter condition to compare
boolean isValidTerm(BusinessRuleTerm t)
t
- Business term
boolean isValidTerm(java.lang.String t)
t
- business term
void setFilterTerm(java.lang.String name) throws UserRuleSetValidationException
name
- the name of the business term
UserRuleSetValidationException
- it the value of bt is not a defined
business termvoid setOperandOne(java.lang.Object o1) throws UserRuleSetValidationException
o1
- the first operand of the condition
UserRuleSetValidationException
- if TermOperation has not been set,
the operation does not accept operands, or the operand is of the
wrong type.void setOperandTwo(java.lang.Object o2) throws UserRuleSetValidationException
o2
- the second operand of the condition
UserRuleSetValidationException
- if TermOperation has not been set,
the operation does not accept two operands, or the operand is of the
wrong type.void setTermOperation(TermOperationType value) throws UserRuleSetValidationException
value
- the operation of the condition
UserRuleSetValidationException
- if the business term has not been
set or operation is not valid for the business termboolean validate() throws UserRuleSetValidationException
UserRuleSetValidationException
- if the object is invalid
|
Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference E14011-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |