org.apache.wicket.util.parse.metapattern.parsers
Class WordParser

java.lang.Object
  extended by org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
      extended by org.apache.wicket.util.parse.metapattern.parsers.WordParser

public final class WordParser
extends MetaPatternParser

Matches a 'word' surrounded by whitespace. See java.util.regex.Pattern for more details on what 'word' means.

Author:
Jonathan Locke

Constructor Summary
WordParser(java.lang.CharSequence input)
          Construct.
 
Method Summary
 java.lang.String getWord()
          Gets the word including the optional whitespace surrounding the word.
 
Methods inherited from class org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
advance, atEnd, matcher, matches, setPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordParser

public WordParser(java.lang.CharSequence input)
Construct.

Parameters:
input - to parse
Method Detail

getWord

public java.lang.String getWord()
Gets the word including the optional whitespace surrounding the word.

Returns:
the word surrounded by whitespace


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.