junit.extensions.jfcunit.tools
Class Operator.Operation

java.lang.Object
  extended byjunit.extensions.jfcunit.tools.Operator.Operation
Enclosing class:
Operator

public static final class Operator.Operation
extends java.lang.Object

Operations for comparing strings.

Title: class Operator.Operations

Description: Operation are specified in the Operator.evaluate() method.

Copyright: Copyright (c) 2004

Company: JFCUnit OpenSource project.

Version:
1.0
Author:
Kevin Wilson

Field Summary
private static java.lang.String[] CODE_STRINGS
          String so for the OP codes.
static int CONTAINS
          Check that the value is contained.
static int ENDSWITH
          Check that the value ends with the given value.
static int EQUALS
          Check that the values are equal.
static int MATCH
          Match the item using a Regular expression.
static int STARTSWITH
          Check that the value starts with the given value.
 
Constructor Summary
private Operator.Operation()
          Private constructor.
 
Method Summary
static int getOperation(java.lang.String code)
          Convert the String to a Operation code.
static java.lang.String toString(int code)
          Get the string version of the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE_STRINGS

private static final java.lang.String[] CODE_STRINGS
String so for the OP codes.


MATCH

public static final int MATCH
Match the item using a Regular expression.

See Also:
Constant Field Values

STARTSWITH

public static final int STARTSWITH
Check that the value starts with the given value.

See Also:
Constant Field Values

ENDSWITH

public static final int ENDSWITH
Check that the value ends with the given value.

See Also:
Constant Field Values

EQUALS

public static final int EQUALS
Check that the values are equal.

See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
Check that the value is contained.

See Also:
Constant Field Values
Constructor Detail

Operator.Operation

private Operator.Operation()
Private constructor. This class should not be instanciated.

Method Detail

getOperation

public static int getOperation(java.lang.String code)
Convert the String to a Operation code.

Parameters:
code - String version of the Operation.
Returns:
int version of the operation.

toString

public static java.lang.String toString(int code)
Get the string version of the operation.

Parameters:
code - int Finder.OP_code
Returns:
String version of the operation.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999