Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

oracle.mail.sdk.rule
Class InSectionType

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

public class InSectionType
extends RuleElement

This class represent a in-section search criteria object to be used as type of condition. An object of this class contains a search section tag and a search pattern. The condition is true if the pattern is found within the section of the message. Section tag can be any header name such as "Content-Type", or a special keyword "body" to indicate that the search should be performed on the message body.

Since:
9.0
Version:
$Header: InSectionType.java 10-jan-2002.17:06:25 haye Exp $
See Also:
ConditionType

Constructor Summary
InSectionType(java.lang.String value)
          Creates an instance of this class with the given search pattern string.

 

Method Summary
 java.lang.String getTag()
          Gets the value of the section tag.
 void setTag(java.lang.String thetag)
          Sets the value of the section tag.

 

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

InSectionType

public InSectionType(java.lang.String value)
              throws oracle.xml.classgen.InvalidContentException
Creates an instance of this class with the given search pattern string.
Parameters:
value - the search pattern string within the section
Throws:
oracle.xml.classgen.InvalidContentException - invalid pattern string
Method Detail

setTag

public void setTag(java.lang.String thetag)
            throws java.lang.IllegalArgumentException
Sets the value of the section tag.
Parameters:
tag - the value of the section tag.
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

getTag

public java.lang.String getTag()
                        throws java.lang.IllegalArgumentException
Gets the value of the section tag.
Returns:
tag the section tag.
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

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