Enum Class ParseState

java.lang.Object
java.lang.Enum<ParseState>
com.norconex.importer.handler.parser.ParseState
All Implemented Interfaces:
Serializable, Comparable<ParseState>, Constable

public enum ParseState extends Enum<ParseState>

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).

  • Enum Constant Details

  • Method Details

    • values

      public static ParseState[] 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

      public static ParseState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isPre

      public boolean isPre()
    • isPost

      public boolean isPost()
    • isPre

      public static boolean isPre(ParseState parseState)
    • isPost

      public static boolean isPost(ParseState parseState)