Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

oracle.mail.sdk.rule
Class RuleElement

java.lang.Object
  |
  +--oracle.xml.classgen.CGXSDElement
        |
        +--oracle.mail.sdk.rule.RuleElement
Direct Known Subclasses:
Account, AccountType, ActionType, AttributeType, CommandType, ConditionType, InSectionType, OperatorType, RuleListType, RuleType

public abstract class RuleElement
extends oracle.xml.classgen.CGXSDElement

Common super class for all rule objects. This class provides common utilities and maintains a parent-child relationship between elements. This class is not instantiable.

Since:
9.0
Version:
$Header: RuleElement.java 13-mar-2003.15:10:29 vikas Exp $

Method Summary
 RuleElement getParent()
          Gets the parent element for the current element
 java.lang.Object getType()
          Gets the type object for the element.
 void printAttributes(oracle.xml.parser.v2.XMLOutputStream out, java.lang.String name)
          Serializes attributes into XML format
 void removeAll()
          Removes all child elements.
 void removeAt(int index)
          Removes an child element at a specific position starting with 0.

 

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

 

Method Detail

getType

public java.lang.Object getType()
Gets the type object for the element. This is used to get the AccountType object from an Account object.
Returns:
the type object

removeAt

public void removeAt(int index)
Removes an child element at a specific position starting with 0. E.g. this can be used to remove a specific RuleType object from a RuleListType object.
Parameters:
index - the index of the element

removeAll

public void removeAll()
Removes all child elements. E.g. this can be used to clear a list of ActionType objects from a RuleType object.

getParent

public RuleElement getParent()
Gets the parent element for the current element
Returns:
the parent element

printAttributes

public void printAttributes(oracle.xml.parser.v2.XMLOutputStream out,
                            java.lang.String name)
                     throws java.io.IOException
Serializes attributes into XML format
Parameters:
out - the output stream to write to
name - the attribute name

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

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