Enum Class ShapeType
- All Implemented Interfaces:
Serializable
,Comparable<ShapeType>
,Constable
An enumeration of the different types in a model.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionAbstractShapeBuilder<?,
?> Creates a shape builder that corresponds to the shape type.fromString
(String text) Create a new Shape.Type from a string.Returns the category of the shape type, as defined in the Smithy specification (one of SIMPLE, AGGREGATE, or SERVICE).Gets the class that implements this shape type.boolean
isShapeType
(ShapeType other) Returns whether this shape type is equivalent to the given shape type, accounting for things like enums being considered specializations of strings.toString()
static ShapeType
Returns the enum constant of this class with the specified name.static ShapeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOB
-
BOOLEAN
-
STRING
-
TIMESTAMP
-
BYTE
-
SHORT
-
INTEGER
-
LONG
-
FLOAT
-
DOCUMENT
-
DOUBLE
-
BIG_DECIMAL
-
BIG_INTEGER
-
ENUM
-
INT_ENUM
-
LIST
-
SET
-
MAP
-
STRUCTURE
-
UNION
-
MEMBER
-
SERVICE
-
RESOURCE
-
OPERATION
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
-
getShapeClass
Gets the class that implements this shape type.- Returns:
- Returns the shape class.
-
getCategory
Returns the category of the shape type, as defined in the Smithy specification (one of SIMPLE, AGGREGATE, or SERVICE).- Returns:
- Returns the category of the type.
-
isShapeType
Returns whether this shape type is equivalent to the given shape type, accounting for things like enums being considered specializations of strings.- Parameters:
other
- The other shape type to compare against.- Returns:
- Returns true if the shape types are equivalent.
-
fromString
Create a new Shape.Type from a string.- Parameters:
text
- Text to convert into a Shape.Type- Returns:
- Returns the Type in an Optional.
-
createBuilderForType
Creates a shape builder that corresponds to the shape type.- Returns:
- Returns a shape builder corresponding to the type.
-