Enum Class ParseState
- All Implemented Interfaces:
Serializable,Comparable<ParseState>,Constable
Act as a flag indicating if a document has been parsed or not in a given process flow.
Typically, a pre-parsed document still has its original format (HTML, PDF, etc.). A post-parsed document on the other hand, usually has its plain text extracted and all formating is gone. Pre-parsed documents can be in binary format while post-parsed onces are in text-format (unless parsing was explicitely disabled).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPost()static booleanisPost(ParseState parseState) booleanisPre()static booleanisPre(ParseState parseState) static ParseStateReturns the enum constant of this class with the specified name.static ParseState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRE
-
POST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isPre
public boolean isPre() -
isPost
public boolean isPost() -
isPre
-
isPost
-