Oracle Mail Java API Reference
10g Release 1 (10.1.2)

B25457-01

oracle.mail.sdk.rule
Class AttributeType

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

public final class AttributeType
extends RuleElement

The class represents a message attribute, to be used in a condition object. Some attributes requires parameters, such as "xheader" requiring a header name, and "flag" requiring a flag name. The choices to attribute tag names are:

Since:
9.0
See Also:
ConditionType

Constructor Summary
AttributeType(java.lang.String theattribute)
          Creates an instance from an attribute string

 

Method Summary
 java.lang.String getAttributeType()
          Gets the attribute data type
 java.lang.String getParam()
          Gets the value of attribute parameter
 java.lang.String getTag()
          Gets the attribute name
 void setParam(java.lang.String theparam)
          Sets the value of the attribute parameter

 

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

 

Constructor Detail

AttributeType

public AttributeType(java.lang.String theattribute)
              throws oracle.xml.classgen.InvalidContentException
Creates an instance from an attribute string
Parameters:
theattribute - the attribute string
Throws:
InvalidContentException - if the attribute string is not valid

Method Detail

getTag

public java.lang.String getTag()
Gets the attribute name
Returns:
name of the attribute

getAttributeType

public java.lang.String getAttributeType()
Gets the attribute data type
Returns:
data type of the attribute

setParam

public void setParam(java.lang.String theparam)
              throws java.lang.IllegalArgumentException
Sets the value of the attribute parameter
Parameters:
theparam - the parameter to set
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

getParam

public java.lang.String getParam()
                          throws java.lang.IllegalArgumentException
Gets the value of attribute parameter
Returns:
the attrubute parameter
Throws:
java.lang.IllegalArgumentException - if the attribute is not valid.

Oracle Mail Java API Reference
10g Release 1 (10.1.2)

B25457-01

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