Enum TacticalSymbolTag

java.lang.Object
java.lang.Enum<TacticalSymbolTag>
de.turnertech.tz.symbol.TacticalSymbolTag
All Implemented Interfaces:
Serializable, Comparable<TacticalSymbolTag>

public enum TacticalSymbolTag extends Enum<TacticalSymbolTag>
A tag which may be related to a tactical symbol. These are usefull for searching, grouping and sorting.
  • Enum Constant Details

  • Method Details

    • values

      public static TacticalSymbolTag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TacticalSymbolTag 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
    • from

      public static Optional<TacticalSymbolTag> from(String label)
      Gets the tag instance related to a string. This is used to instantiate the tags from the text index stored in the classpath. It is also the method used to convert the german tags, into english code.
      Parameters:
      label - The label assigned in the text index.
      Returns:
      The tag, or empty if not found.
      Since:
      1.2