Packagenet.user1.reactor.filters
Classpublic class AttributeComparison
InheritanceAttributeComparison Inheritance Object
Implements IComparable

Since : Reactor 1.0.0

Represents a single attribute comparison to be used in a filter. The comparison includes the name of the attribute, the value to be compared, and the type of comparison (e.g., equals, greater than, etc). For example, the following code shows an AttributeComparison for the attribute "level" that passes when the value is greater than or equal to 10.

   new AttributeComparison("level", 
                           10, 
                           CompareType.GREATER_THAN_OR_EQUAL);
   
For information on filtering messages, see the IFilter interface.

See also

IFilter


Public Methods
 MethodDefined By
  
AttributeComparison(name:String, value:Object, compareType:String)
Constructor.
AttributeComparison
  
toXMLString():String
Returns a string containing the XML representation of this AttributeComparison, suitable for transmission to Union Server.
AttributeComparison
Constructor Description
AttributeComparison()Constructor
public function AttributeComparison(name:String, value:Object, compareType:String)

Constructor.

Parameters
name:String — The attribute name to compare.
 
value:Object — The attribute value to compare.
 
compareType:String — The comparison type. Must be one of the constants defined by the CompareType class.

See also

Method Descriptions
toXMLString()method
public function toXMLString():String

Since : Reactor 1.0.0

Returns a string containing the XML representation of this AttributeComparison, suitable for transmission to Union Server.

Returns
String