|
Oracle Email Java API Reference Release 2(9.0.4) B10724-01 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.xml.classgen.CGXSDElement | +--oracle.mail.sdk.rule.RuleElement | +--oracle.mail.sdk.rule.RuleType
This class represents one rule. A rule can contain a condition and a list of actions. RuleType objects are building blocks for RuleListType objects. A RuleType object may have the following attributes:
A RuleType object may have at most one Condition object. If there is no Condition object, the rule is said to be "unconditional". An unconditional rule will be executed every time. A RuleType object may have more than one action, and the actions are executed in order.
RuleListType
Constructor Summary | |
RuleType() |
Method Summary | |
void |
addAction(ActionType theaction) Adds one action element. |
void |
addCondition(ConditionType thecondition) Adds the condition object. |
java.util.Vector |
getActions() Gets the Action list as a Vector. |
java.lang.String |
getActive() Gets the value of the Active attribute. |
ConditionType |
getCondition() Gets the condition object. |
java.lang.String |
getDescription() Gets the value of attribute Description. |
java.lang.String |
getGroup() Gets the value of attribute Group. |
java.lang.String |
getVisible() Gets the value of the Visible attribute. |
void |
print(oracle.xml.parser.v2.XMLOutputStream out) Prints in XML format of this object. |
void |
removeCondition() Removes the condition object. |
void |
setActions(java.util.Vector actions) Resets the action list with the given list of actions. |
void |
setActive(java.lang.String theactive) Sets the value of Active attribute, either "yes" or "no". |
void |
setDescription(java.lang.String thedescription) Sets the value of attribute Description. |
void |
setGroup(java.lang.String thegroup) Sets the value of attribute Group. |
void |
setVisible(java.lang.String thevisible) Sets the value of Visible attribute, either "yes" or "no". |
Methods inherited from class oracle.mail.sdk.rule.RuleElement |
getParent, getType, printAttributes, removeAll, removeAt |
Methods inherited from class oracle.xml.classgen.CGXSDElement |
getAttributes, getChildElements, getNodeValue, printAttributes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleType()
Method Detail |
public void setVisible(java.lang.String thevisible) throws java.lang.IllegalArgumentException, oracle.xml.classgen.InvalidContentException
thevisible
- the value to which the attribute is setpublic java.lang.String getVisible()
public void setActive(java.lang.String theactive) throws java.lang.IllegalArgumentException, oracle.xml.classgen.InvalidContentException
theactive
- the value to which the attribute is setpublic java.lang.String getActive()
public void setDescription(java.lang.String thedescription) throws java.lang.IllegalArgumentException
thedescription
- the value to which the attribute is setpublic java.lang.String getDescription()
public void setGroup(java.lang.String thegroup) throws java.lang.IllegalArgumentException
thegroup
- the value to which the attribute is setpublic java.lang.String getGroup()
public void addCondition(ConditionType thecondition) throws oracle.xml.classgen.InvalidContentException
thecondition
- the element nodeConditionType
public void removeCondition()
public ConditionType getCondition()
public void addAction(ActionType theaction) throws oracle.xml.classgen.InvalidContentException
theaction
- the element nodeActionType
public void setActions(java.util.Vector actions) throws oracle.xml.classgen.InvalidContentException
actions
- the list of action objectspublic java.util.Vector getActions()
public void print(oracle.xml.parser.v2.XMLOutputStream out) throws java.io.IOException
out
- the Output StreamXMLOutputStream
|
Oracle Email Java API Reference Release 2(9.0.4) B10724-01 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |