Enum Class ParsingEnumKind

java.lang.Object
java.lang.Enum<ParsingEnumKind>
de.iip_ecosphere.platform.configuration.aas.ParsingEnumKind
All Implemented Interfaces:
Serializable, Comparable<ParsingEnumKind>, Constable

enum ParsingEnumKind extends Enum<ParsingEnumKind>
Kinds of enumerations in parsing.
Author:
Holger Eichelberger, SSE
  • Enum Constant Details

  • Field Details

    • marker

      private Pattern[] marker
  • Constructor Details

    • ParsingEnumKind

      private ParsingEnumKind(String... marker)
      Creates an enumeration marker.
      Parameters:
      marker - the marker
  • Method Details

    • values

      public static ParsingEnumKind[] 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 ParsingEnumKind 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
    • getMatch

      public String[] getMatch(String text, boolean atBeginning)
      Returns a match of this enum kind within text.
      Parameters:
      text - the text to match
      atBeginning - whether the match shall be at the beginning or within text
      Returns:
      the match (0: text before, 1: text after) or null for no match