Enum ParseState

  • All Implemented Interfaces:
    Serializable, Comparable<ParseState>

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

    Since:
    3.0.0
    Author:
    Pascal Essiembre
    • Method Detail

      • values

        public static ParseState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ParseState c : ParseState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ParseState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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)