org.weborganic.furi
Interface Matchable

All Known Implementing Classes:
TokenLiteral, TokenOperatorDX, TokenOperatorPS, TokenVariable, URIPattern

public interface Matchable

A class implementing this interface can be matched. This interface can be used to indicate whether a class can be used for pattern matching.

Version:
4 February 2009
Author:
Christophe Lauret

Method Summary
 boolean match(String part)
          Indicates whether this token matches the specified part of a URL.
 Pattern pattern()
          Returns a regular expression pattern corresponding to this object.
 

Method Detail

match

boolean match(String part)
Indicates whether this token matches the specified part of a URL.

Parameters:
part - The part of URL to test for matching.
Returns:
true if it matches; false otherwise.

pattern

Pattern pattern()
Returns a regular expression pattern corresponding to this object.

Returns:
The regular expression pattern corresponding to this object.