org.apache.tapestry.valid
Interface PatternDelegate


public interface PatternDelegate

Implementations of this interface will provide pattern utility services.

Since:
3.0
Version:
$Id: PatternDelegate.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Harish Krishnaswamy

Method Summary
 boolean contains(String patternString, String input)
          Answers the question whether the input string fulfills the pattern string provided.
 String getEscapedPatternString(String patternString)
          Returns the escaped sequence of characters representing the pattern string provided.
 

Method Detail

contains

boolean contains(String patternString,
                 String input)
Answers the question whether the input string fulfills the pattern string provided.

Parameters:
patternString - The pattern that the input string is compared against.
input - The string under test.
Returns:
Returns true if the pattern exists in the input string; returns false otherwise.

getEscapedPatternString

String getEscapedPatternString(String patternString)
Returns the escaped sequence of characters representing the pattern string provided.

Parameters:
patternString - The raw sequence of characters that represent the pattern.
Returns:
The escaped sequence of characters that represent the pattern.