Enum Class StyleTemplateLink.Region

java.lang.Object
java.lang.Enum<StyleTemplateLink.Region>
de.espirit.firstspirit.access.store.templatestore.StyleTemplateLink.Region
All Implemented Interfaces:
Serializable, Comparable<StyleTemplateLink.Region>, Constable
Enclosing interface:
StyleTemplateLink

public static enum StyleTemplateLink.Region extends Enum<StyleTemplateLink.Region>
The region targeted by this link.
Since:
4.0.120
  • Enum Constant Details

  • Method Details

    • values

      public static StyleTemplateLink.Region[] 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 StyleTemplateLink.Region 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
    • getName

      public String getName()
      Provides the name of this link.
      Returns:
      The name.
      Since:
      4.0.120
    • forName

      public static StyleTemplateLink.Region forName(@NotNull @NotNull String name)
      Provides a region for the given name.
      Returns:
      The matching region.
      Throws:
      IllegalArgumentException - if there is no region with the requested name.
      Since:
      4.0.120
    • matches

      public boolean matches(int value, int current, boolean last)
      Checks, whether the given arguments are applicable with this region.
      Parameters:
      value - The value.
      current - The current location.
      last - The last location.
      Since:
      4.0.120