org.jcreme.filters
Class StringComparisonOperator

java.lang.Object
  extended byorg.jcreme.enumerations.Enumeration
      extended byorg.jcreme.filters.ComparisonOperator
          extended byorg.jcreme.filters.StringComparisonOperator
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class StringComparisonOperator
extends ComparisonOperator

This enumeration contains the operators that can be used in a string manipulation context to test the relation of two strings. As a subclass of the ComparisonOperator enumeration, values of this class are also registered as elements of the ComparisonOperator enumeration.

Version:
$Revision: 1.3 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
static StringComparisonOperator LIKE
          The 'LIKE' enumeration value.
static StringComparisonOperator NOT_LIKE
          The 'NOT LIKE' enumeration value.
static java.lang.String S_LIKE
          The name for the 'LIKE' enumeration value.
static java.lang.String S_NOT_LIKE
          The name for the 'NOT LIKE' enumeration value.
(package private) static long serialVersionUID
           
 
Constructor Summary
protected StringComparisonOperator(java.lang.String name)
          Creates new StringComparisonOperator
 
Method Summary
protected  java.util.Hashtable getFromName()
          This method is for internal use only.
static StringComparisonOperator getStringComparisonOperator(java.lang.String name)
          This method retrieves an StringComparisonOperator instance from its name.
static StringComparisonOperator[] getStringComparisonOperators()
          This methods gives the instances of this class.
static Enumeration[] getValues()
          This method enables to retrieve all the possible values of an Enumeration class.
 
Methods inherited from class org.jcreme.filters.ComparisonOperator
addAsComparisonOperator, get, getComparisonOperators
 
Methods inherited from class org.jcreme.enumerations.Enumeration
compareTo, getName, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

S_LIKE

public static final java.lang.String S_LIKE
The name for the 'LIKE' enumeration value.

See Also:
Constant Field Values

LIKE

public static final StringComparisonOperator LIKE
The 'LIKE' enumeration value.


S_NOT_LIKE

public static final java.lang.String S_NOT_LIKE
The name for the 'NOT LIKE' enumeration value.

See Also:
Constant Field Values

NOT_LIKE

public static final StringComparisonOperator NOT_LIKE
The 'NOT LIKE' enumeration value.

Constructor Detail

StringComparisonOperator

protected StringComparisonOperator(java.lang.String name)
                            throws java.security.InvalidParameterException
Creates new StringComparisonOperator

Parameters:
name - the name of this enumerated value. It cannot be null.
Throws:
java.security.InvalidParameterException - if the parameter is null.
Method Detail

getFromName

protected java.util.Hashtable getFromName()
This method is for internal use only.

Overrides:
getFromName in class ComparisonOperator
Returns:
the Hashtable that links the enumerated values names with the actual enumerated value.

getStringComparisonOperator

public static StringComparisonOperator getStringComparisonOperator(java.lang.String name)
This method retrieves an StringComparisonOperator instance from its name.

Parameters:
name - the name of the StringComparisonOperator instance.
Returns:
the StringComparisonOperator that has this name. Null if no value corresponding to this name was found.

getStringComparisonOperators

public static StringComparisonOperator[] getStringComparisonOperators()
This methods gives the instances of this class.

Returns:
all the instances of this class.

getValues

public static Enumeration[] getValues()
This method enables to retrieve all the possible values of an Enumeration class.

Returns:
the values for this class.


Copyright 2006 null. All Rights Reserved.