net.sf.jameleon.util
Interface TextMatcher


public interface TextMatcher

A way to communicate with the plugin for matching text, and setting it in the context


Method Summary
 String getCurrentScreenAsText()
          Gets the current screen as text.
 String getMatchingRegexText(String text, String regex, int group)
          Gets the matching regular expression text.
 void setVariable(String key, Object value)
          Sets the variable in the context.
 

Method Detail

getCurrentScreenAsText

String getCurrentScreenAsText()
Gets the current screen as text. This method should define logic needed to get the text representation of the screen.

Returns:
String

getMatchingRegexText

String getMatchingRegexText(String text,
                            String regex,
                            int group)
Gets the matching regular expression text.

Parameters:
text - - The text to run the regular expression against
regex - - The regular expression
group - - The group number of the regular expression to match against. If the regex has no parens, then the group would be zero.
Returns:
String

setVariable

void setVariable(String key,
                 Object value)
Sets the variable in the context.

Parameters:
key - - The context variable name
value - - The variable value.


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.