Package $package

Enum $EnumTemplate

All Implemented Interfaces:
Serializable, Comparable<$EnumTemplate>, java.lang.constant.Constable

public enum $EnumTemplate
extends Enum<$EnumTemplate>
#* The $EnumTemplate interface provides the Velocity template for Projo's scraping mechanism for enums. The class is both a completely valid Java class and a valid Apache Velocity template (which is why the specific definition of its template references may appear a little funky at first glance), though it is currently treated as a resource, not a Java source. # $javadoc #*
Author:
Mirko Raner #
  • Method Details

    • values

      public static $EnumTemplate[] 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 $EnumTemplate 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