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

B14492-01

oracle.mail.sdk.rule
Class InSectionType

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

public final 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
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
escapeString, getParent, getType, printAttributes, removeAll, removeAt

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:
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® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

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