|
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.RuleListType
This class represents a list of rules associated with one event. Objects of this class are building blocks for the AccountType class, with each RuleListType object associated with one applicable event.
The list of allowable event values are:
A RuleListType object should contain at least one rule. Rules in the RuleListType object are ordered and will be evaluated in order at runtime.
AccountType
Constructor Summary | |
RuleListType() |
Method Summary | |
void |
activateGroup(java.lang.String groupName) Marks attribute "active" to "yes" for all rules in a group. |
void |
addRule(RuleType therule) Adds a rule object to this list. |
void |
disableGroup(java.lang.String groupName) Marks attribute "active" to "no" for all rules in a group. |
java.util.Set |
getAllGroupNames() Gets all rule group names without duplicates. |
java.lang.String |
getEvent() Gets the value of the Event attribute. |
java.util.Vector |
getRules() Gets the list of rules. |
java.util.Vector |
getRulesForGroup(java.lang.String groupName) Gets the list of rules that has the same "group" attribute value as the given group name. |
java.util.Vector |
getVisibleRules() Gets the list of all visible rules. |
void |
setEvent(java.lang.String theevent) Sets the value of Event attribute. |
void |
setRules(java.util.Vector therules) Resets this object with given list of rules as a Vector os RuleType objects. |
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, print, printAttributes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleListType()
Method Detail |
public void setEvent(java.lang.String theevent) throws java.lang.IllegalArgumentException, oracle.xml.classgen.InvalidContentException
theevent
- the event stringpublic java.lang.String getEvent()
public void addRule(RuleType therule) throws oracle.xml.classgen.InvalidContentException
rule
- the rule objectRuleType
public void setRules(java.util.Vector therules) throws oracle.xml.classgen.InvalidContentException
therules
- the vector of rulespublic java.util.Vector getRules()
public java.util.Vector getRulesForGroup(java.lang.String groupName)
groupName
- the group name to retrievepublic java.util.Set getAllGroupNames()
public java.util.Vector getVisibleRules()
public void activateGroup(java.lang.String groupName) throws oracle.xml.classgen.InvalidContentException
groupName
- the name of the rule group to activatepublic void disableGroup(java.lang.String groupName) throws oracle.xml.classgen.InvalidContentException
groupName
- the name of the rule group to disable
|
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 |