com.notuvy.util
Class MultiplePatternMatcher

java.lang.Object
  extended by com.notuvy.util.MultiplePatternMatcher

public class MultiplePatternMatcher
extends Object

Match a string against multiple patterns. Try the patterns in order, and handle the first match.

Author:
murali

Nested Class Summary
static interface MultiplePatternMatcher.Handler
           
 
Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
MultiplePatternMatcher()
           
 
Method Summary
 MultiplePatternMatcher add(Pattern pPattern, MultiplePatternMatcher.Handler pHandler)
           
protected  List getCandidates()
           
 Object getResult()
           
 boolean on(String pInput)
           
 void setResult(Object pResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

MultiplePatternMatcher

public MultiplePatternMatcher()
Method Detail

getResult

public Object getResult()

getCandidates

protected List getCandidates()

setResult

public void setResult(Object pResult)

add

public MultiplePatternMatcher add(Pattern pPattern,
                                  MultiplePatternMatcher.Handler pHandler)

on

public boolean on(String pInput)


Copyright © 2013. All Rights Reserved.