com.xenonsoft.bridgetown.examples.categoriser
Class DefaultMatcherImpl

java.lang.Object
  extended bycom.xenonsoft.bridgetown.examples.categoriser.DefaultMatcherImpl
All Implemented Interfaces:
IMatcher, java.io.Serializable

public class DefaultMatcherImpl
extends java.lang.Object
implements IMatcher, java.io.Serializable

A mock object of the categorisation matching algorithm

Version:
$Id: DefaultMatcherImpl.java,v 1.6 2005/03/17 02:35:51 peter_pilgrim Exp $
Author:
Peter Pilgrim, Jul 26, 2004 2:40:01 PM
See Also:
Serialized Form

Constructor Summary
DefaultMatcherImpl()
          Default constructor
 
Method Summary
 java.util.List match(java.lang.Object query, java.lang.Object refValue)
          Performs the matching
 void setDescription(java.lang.String description)
          Sets the description
 void setMode(java.lang.String mode)
          Sets the mode
 java.lang.String toString()
          Gets debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMatcherImpl

public DefaultMatcherImpl()
Default constructor

Method Detail

setDescription

public void setDescription(java.lang.String description)
Sets the description

Specified by:
setDescription in interface IMatcher
See Also:
categoriser.IMatcher#setDescription(java.lang.String)

setMode

public void setMode(java.lang.String mode)
Sets the mode

Specified by:
setMode in interface IMatcher
Parameters:
mode -
See Also:
categoriser.IMatcher#setMode(java.lang.String)

match

public java.util.List match(java.lang.Object query,
                            java.lang.Object refValue)
Performs the matching

Specified by:
match in interface IMatcher
Parameters:
query - the query template instance
refValue - the object uses as a reference
Returns:
List collection of probable matching elements. An empty list denotes that no matches can be found.
See Also:
categoriser.IMatcher#match(java.lang.Object, java.lang.Object)

toString

public java.lang.String toString()
Gets debuggable string



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.