de.oio.jpdfunit.document.util
Class TextSearchType

java.lang.Object
  extended by de.oio.jpdfunit.document.util.TextSearchType

public final class TextSearchType
extends Object

The basic class which realizes the different TextSearcher classes.

Author:
Benjamin Bratkus

Field Summary
static TextSearchType CONTAINS
          The ContainsTextSearcher is used for searching a text within the content of a page of the pdf document.
static TextSearchType ENDSWITH
          The EndswithTextSearcher is used for searching a text at the end of the content of a page of the pdf document.
static TextSearchType EQUALS
          The EqualsTextSearcher is used for searching on a page of the pdf document which content is equal to the expected text.
static TextSearchType REGEXP
          The RegexpTextSearcher is used for searching a text within the content of a page of the pdf document.
static TextSearchType STARTSWITH
          The StartsWithTextSearcher is used for searching a text at the beginnig of the content of a page of the pdf document.
static TextSearchType WORD
          The WordTextSearcher is used for searching a word means a String in the content of a page of the pdf document.
 
Method Summary
 TextSearcher getSearcher()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTAINS

public static final TextSearchType CONTAINS
The ContainsTextSearcher is used for searching a text within the content of a page of the pdf document.


WORD

public static final TextSearchType WORD
The WordTextSearcher is used for searching a word means a String in the content of a page of the pdf document. Searchs a string as substring of the content. It uses the default delimiter set, which is " \t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.


EQUALS

public static final TextSearchType EQUALS
The EqualsTextSearcher is used for searching on a page of the pdf document which content is equal to the expected text.


STARTSWITH

public static final TextSearchType STARTSWITH
The StartsWithTextSearcher is used for searching a text at the beginnig of the content of a page of the pdf document. Searchs a string as substring of the content. It uses the default delimiter set, which is " \t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.


ENDSWITH

public static final TextSearchType ENDSWITH
The EndswithTextSearcher is used for searching a text at the end of the content of a page of the pdf document. Searchs a string as substring of the content. It uses the default delimiter set, which is " \t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.


REGEXP

public static final TextSearchType REGEXP
The RegexpTextSearcher is used for searching a text within the content of a page of the pdf document.

Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
The name of the Textsearchtype.

getSearcher

public TextSearcher getSearcher()
Returns:
The TextSearcher for searching the text in the content.


Copyright © 2011. All Rights Reserved.