Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

oracle.mail.sdk.rule
Class Account

oracle.mail.sdk.rule.RuleElement
  |
  +--oracle.mail.sdk.rule.Account

public final class Account
extends RuleElement

This class represents the top level object that contains all of one's rules. It serves as an interface to RuleParser when saving or retrieving a user's rules. To create an Account object, you need to have an AccountType object first. AccountType object actually contains all the rule component. An Account object is simply a wrapper that interfaces with RuleParser.

Since:
9.0
See Also:
AccountType, RuleParser, RuleParser.getRuleObjects(), RuleParser.setRuleObjects(Account)

Constructor Summary
Account(AccountType elemtype)
Constructs an instance using an existing AccountType Object.

Method Summary
void print(oracle.xml.parser.v2.XMLOutputStream out)
Prints in XML representation of the Account object to an XMLOutputStream object.

Methods inherited from class oracle.mail.sdk.rule.RuleElement
escapeString, getParent, getType, printAttributes, removeAll, removeAt

Constructor Detail

Account

public Account(AccountType elemtype)
Constructs an instance using an existing AccountType Object.
Parameters:
elemtype - the type to which the element is set
See Also:
AccountType

Method Detail

print

public void print(oracle.xml.parser.v2.XMLOutputStream out)
           throws java.io.IOException
Prints in XML representation of the Account object to an XMLOutputStream object. This method can be used to display rules in text.
Parameters:
out - the output stream
Throws:
java.io.IOException - if there is an error in writing the output
See Also:
XMLOutputStream

Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

Copyright © 1988, 2005, Oracle. All rights reserved.