Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp.test
Class TestComparator  view TestComparator download TestComparator.java

java.lang.Object
  extended bycom.tripi.asp.test.TestComparator

public class TestComparator
extends java.lang.Object

TestComparator is a class which can compare a string to a template, including embedded regular expressions.


Nested Class Summary
static class TestComparator.TestComparatorTests
          Test class which contains tests for the TestComparator class
 
Field Summary
(package private) static org.apache.log4j.Category DBG
          Debugging category
(package private)  java.lang.String templ
          Template
 
Constructor Summary
TestComparator(java.lang.String templ)
          Constructor with template.
 
Method Summary
 boolean matches(java.lang.String str)
          Tests if the current string matches the template.
 boolean simpleMatch(java.lang.String str, java.lang.String templ)
          Internal function which performs a 'simple' match, matching two strings handling the ^^ escape sequence.
static junit.framework.Test suite()
          Test suite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

static final org.apache.log4j.Category DBG
Debugging category


templ

java.lang.String templ
Template

Constructor Detail

TestComparator

public TestComparator(java.lang.String templ)
Constructor with template.

Method Detail

matches

public boolean matches(java.lang.String str)
Tests if the current string matches the template.


simpleMatch

public boolean simpleMatch(java.lang.String str,
                           java.lang.String templ)
Internal function which performs a 'simple' match, matching two strings handling the ^^ escape sequence.


suite

public static junit.framework.Test suite()
Test suite