Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

oracle.mail.sdk.rule
Class AccountType

java.lang.Object
  |
  +--oracle.xml.classgen.CGXSDElement
        |
        +--oracle.mail.sdk.rule.RuleElement
              |
              +--oracle.mail.sdk.rule.AccountType

public class AccountType
extends RuleElement

This class represents the object that holds a list of events. Each event is associated with a list of rules. This class is used as the starting point of traversing all the rules for a user. It is also used to create an Account object instance.

An AccountType object has three attributes:

A AccountType object may be empty, i.e., with no rule lists attached. Such an account will have no rules defined for it.

Since:
9.0
Version:
$Header: AccountType.java 10-jan-2002.17:06:22 haye Exp $
See Also:
Account

Constructor Summary
AccountType()
           

 

Method Summary
 void addRulelist(RuleListType therulelist)
          Adds a rule list to this account.
 java.lang.Integer getId()
          Gets the value of the numerical attribute ID.
 java.lang.String getOwnerType()
          Gets the value of attribute ownerType.
 java.lang.String getQualifiedName()
          Gets the value of attribute qualifiedName.
 java.util.Vector getRulelists()
          Gets the vector of rule lists in the object.
 void setId(java.lang.Integer theid)
          Sets the value of ID, the numerical ID attribute for the user.
 void setOwnerType(java.lang.String theownerType)
          Sets the value of attribute ownerType, either "user", "domain" or "system".
 void setQualifiedName(java.lang.String thequalifiedName)
          Sets the value of attribute qualifiedName, in the form of "name@domain".
 void setRulelists(java.util.Vector therulelists)
          Resets this object with a new list of rule lists.

 

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

AccountType

public AccountType()
Method Detail

setId

public void setId(java.lang.Integer theid)
           throws java.lang.IllegalArgumentException
Sets the value of ID, the numerical ID attribute for the user.
Parameters:
theid - the value to which the attribute is set
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

getId

public java.lang.Integer getId()
Gets the value of the numerical attribute ID.

setQualifiedName

public void setQualifiedName(java.lang.String thequalifiedName)
                      throws java.lang.IllegalArgumentException
Sets the value of attribute qualifiedName, in the form of "name@domain".
Parameters:
thequalifiedName - the value to which the attribute is set
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

getQualifiedName

public java.lang.String getQualifiedName()
Gets the value of attribute qualifiedName.

setOwnerType

public void setOwnerType(java.lang.String theownerType)
                  throws java.lang.IllegalArgumentException,
                         oracle.xml.classgen.InvalidContentException
Sets the value of attribute ownerType, either "user", "domain" or "system".
Parameters:
theownerType - the value to which the attribute is set
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

getOwnerType

public java.lang.String getOwnerType()
Gets the value of attribute ownerType.
Returns:
the value of attribute ownerType, either user, domain or system

addRulelist

public void addRulelist(RuleListType therulelist)
                 throws oracle.xml.classgen.InvalidContentException
Adds a rule list to this account.
Parameters:
therulelist - the rule list as a RuleListType object
Throws:
oracle.xml.classgen.InvalidContentException - if the element is not valid.
See Also:
RuleListType

setRulelists

public void setRulelists(java.util.Vector therulelists)
                  throws oracle.xml.classgen.InvalidContentException
Resets this object with a new list of rule lists.
Parameters:
therulelists - the list of rule lists as Vector of RuleListType objects.
Throws:
oracle.xml.classgen.InvalidContentException - if the element is not valid.

getRulelists

public java.util.Vector getRulelists()
Gets the vector of rule lists in the object.
Returns:
the list of rule lists as Vector of RuleListType objects

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

Copyright © 1988, 2003 Oracle Corporation. All Rights Reserved.