Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

oracle.mail.sdk.rule
Class ActionType

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

public class ActionType
extends RuleElement

The class represents one action. An action contains a command and optionally some parameters required by the command.

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

Constructor Summary
ActionType()
           

 

Method Summary
 void addCommand(java.lang.String thecommand)
          Adds the command element.
 void addParameter(java.lang.String theparameter)
          Adds a parameter
 java.lang.String getCommand()
          Gets the command name
 java.util.Vector getParameters()
          Gets the parameter list in a Vector
 void print(oracle.xml.parser.v2.XMLOutputStream out)
          Prints in XML format of this object.

 

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

ActionType

public ActionType()
Method Detail

addCommand

public void addCommand(java.lang.String thecommand)
                throws oracle.xml.classgen.InvalidContentException
Adds the command element. There's only one command needed. Adding a second command overrides the first one.
Parameters:
thecommand - the command name
Throws:
oracle.xml.classgen.InvalidContentException - if the element is not valid.

getCommand

public java.lang.String getCommand()
Gets the command name
Returns:
the command name

addParameter

public void addParameter(java.lang.String theparameter)
                  throws oracle.xml.classgen.InvalidContentException
Adds a parameter
Parameters:
theparameter - the parameter string
Throws:
oracle.xml.classgen.InvalidContentException - if the element is not valid.

getParameters

public java.util.Vector getParameters()
Gets the parameter list in a Vector
Returns:
a vector of parameter strings

print

public void print(oracle.xml.parser.v2.XMLOutputStream out)
           throws java.io.IOException
Prints in XML format of this object. The output is a fragment of an XML document.
Overrides:
print in class oracle.xml.classgen.CGXSDElement
Parameters:
out - the Output Stream
Throws:
java.io.IOException - if there is an error in writing the output
See Also:
XMLOutputStream

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

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