org.codehaus.mojo.pomtools.console.toolkit.event
Class MatchingListener

java.lang.Object
  extended by org.codehaus.mojo.pomtools.console.toolkit.event.AbstractEventListener
      extended by org.codehaus.mojo.pomtools.console.toolkit.event.MatchingListener
All Implemented Interfaces:
ConsoleEventListener

public abstract class MatchingListener
extends AbstractEventListener

Version:
$Id: MatchingListener.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Constructor Summary
MatchingListener(java.lang.String[] inputStrings, java.lang.String description)
           
MatchingListener(java.lang.String[] inputStrings, java.lang.String description, java.lang.String descriptionKey)
           
MatchingListener(java.lang.String inputString, java.lang.String description)
           
 
Method Summary
 boolean accept(ConsoleEvent event)
           
 java.lang.String getDescriptionKey()
           
 void validateConfiguration(ConsoleEventDispatcher dispatcher)
          Validates that there are no other MatchingListeners in the dispatcher that accept the same input as this listener.
 
Methods inherited from class org.codehaus.mojo.pomtools.console.toolkit.event.AbstractEventListener
getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.pomtools.console.toolkit.event.ConsoleEventListener
processEvent
 

Constructor Detail

MatchingListener

public MatchingListener(java.lang.String inputString,
                        java.lang.String description)

MatchingListener

public MatchingListener(java.lang.String[] inputStrings,
                        java.lang.String description)

MatchingListener

public MatchingListener(java.lang.String[] inputStrings,
                        java.lang.String description,
                        java.lang.String descriptionKey)
Method Detail

validateConfiguration

public void validateConfiguration(ConsoleEventDispatcher dispatcher)
                           throws ConsoleConfigurationException
Validates that there are no other MatchingListeners in the dispatcher that accept the same input as this listener.

Throws:
ConsoleConfigurationException

accept

public boolean accept(ConsoleEvent event)

getDescriptionKey

public java.lang.String getDescriptionKey()


Copyright © 2009 The Codehaus. All Rights Reserved.