java.lang.Object
java.lang.Enum<ParameterType>
software.amazon.smithy.rulesengine.language.syntax.parameters.ParameterType
All Implemented Interfaces:
Serializable, Comparable<ParameterType>, Constable

public enum ParameterType extends Enum<ParameterType>
The types that parameters can be.
  • Enum Constant Details

    • STRING

      public static final ParameterType STRING
      A "string" parameter type.
    • BOOLEAN

      public static final ParameterType BOOLEAN
      A "boolean" parameter type.
  • Method Details

    • values

      public static ParameterType[] 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 ParameterType 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
    • fromNode

      public static ParameterType fromNode(StringNode node) throws RuleError
      Creates a ParameterType of a specific type from the given Node information.
      Parameters:
      node - the node to deserialize.
      Returns:
      the created ParameterType.
      Throws:
      RuleError - when the value is not a valid ParameterType.
    • fromNode

      public static ParameterType fromNode(Node node) throws RuleError
      Creates a ParameterType of a specific type from the given Node type.
      Parameters:
      node - the node to deserialize.
      Returns:
      the created ParameterType.
      Throws:
      RuleError - when the node would not create a valid ParameterType.
    • fromType

      public static ParameterType fromType(Type type)
      Creates a ParameterType of a specific type from the given parameter Type.
      Parameters:
      type - the Type to create from.
      Returns:
      the created ParameterType.
      Throws:
      RuntimeException - when the value would not create a valid ParameterType.
    • fromShapeType

      public static ParameterType fromShapeType(ShapeType type)
      Creates a ParameterType of a specific type from the given ShapeType.
      Parameters:
      type - the ShapeType to create from.
      Returns:
      the created ParameterType.
      Throws:
      RuntimeException - when the value would not create a valid ParameterType.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ParameterType>