simple.util
Interface Match

All Superinterfaces:
java.io.Serializable

public interface Match
extends java.io.Serializable

This object is used with the Resolver to store and retrive the pattern match pairs. This is used so that the resolver can return the pairs in a consistent and simple manner. This provides an organized way to interact with the Resolver. This is Serializable so it is possible to store any retrived implementation.

Author:
Niall Gallagher

Method Summary
 java.lang.String getMatch()
          This is match that the getPattern result resolves for.
 java.lang.String getPattern()
          This is the pattern that this match was stored under in the Resolver.
 

Method Detail

getPattern

java.lang.String getPattern()
This is the pattern that this match was stored under in the Resolver. The pattern is typically a String that contains wild characters so that it can be matched with certain Strings.

Returns:
this returns the wild pattern for the match

getMatch

java.lang.String getMatch()
This is match that the getPattern result resolves for. The Resolvr returns this String when the resolve method is given a String that can be matched using the pattern.

Returns:
the matched String for the pattern