Enum Class Text2Udom.parsingState

java.lang.Object
java.lang.Enum<Text2Udom.parsingState>
eu.bandm.tools.d2d2.base.Text2Udom.parsingState
All Implemented Interfaces:
Serializable, Comparable<Text2Udom.parsingState>, java.lang.constant.Constable
Enclosing class:
Text2Udom

public static enum Text2Udom.parsingState extends Enum<Text2Udom.parsingState>
Realizes the parsing state on lower=character level. Neither this type nor the division into separate parsing methods is really necessary, but makes the code more readable.
  • Enum Constant Details

    • nothing_open

      public static final Text2Udom.parsingState nothing_open
      after an explicit close, or at the beginning of parsing.
    • look_for_tag

      public static final Text2Udom.parsingState look_for_tag
      after a command lead-in character has been consumed
    • consume_characters

      public static final Text2Udom.parsingState consume_characters
      while consuming character data, will be ended by next command char.
    • verbatim

      public static final Text2Udom.parsingState verbatim
      verbatim mode, will NOT be ended by next command char, only by explict end command and all known direct child elements.
    • skip_for_command

      public static final Text2Udom.parsingState skip_for_command
      error recovery.
  • Method Details

    • values

      public static Text2Udom.parsingState[] 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 Text2Udom.parsingState 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