Modifier and Type | Class and Description |
---|---|
static class |
ShapeType.Category |
Enum Constant and Description |
---|
BIG_DECIMAL |
BIG_INTEGER |
BLOB |
BOOLEAN |
BYTE |
DOCUMENT |
DOUBLE |
FLOAT |
INTEGER |
LIST |
LONG |
MAP |
MEMBER |
OPERATION |
RESOURCE |
SERVICE |
SET |
SHORT |
STRING |
STRUCTURE |
TIMESTAMP |
UNION |
Modifier and Type | Method and Description |
---|---|
AbstractShapeBuilder<?,?> |
createBuilderForType()
Creates a shape builder that corresponds to the shape type.
|
static java.util.Optional<ShapeType> |
fromString(java.lang.String text)
Create a new Shape.Type from a string.
|
ShapeType.Category |
getCategory()
Returns the category of the shape type, as defined in the Smithy
specification (one of SIMPLE, AGGREGATE, or SERVICE).
|
java.lang.Class<? extends Shape> |
getShapeClass()
Gets the class that implements this shape type.
|
java.lang.String |
toString() |
static ShapeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeType BLOB
public static final ShapeType BOOLEAN
public static final ShapeType STRING
public static final ShapeType TIMESTAMP
public static final ShapeType BYTE
public static final ShapeType SHORT
public static final ShapeType INTEGER
public static final ShapeType LONG
public static final ShapeType FLOAT
public static final ShapeType DOCUMENT
public static final ShapeType DOUBLE
public static final ShapeType BIG_DECIMAL
public static final ShapeType BIG_INTEGER
public static final ShapeType LIST
public static final ShapeType SET
public static final ShapeType MAP
public static final ShapeType STRUCTURE
public static final ShapeType UNION
public static final ShapeType MEMBER
public static final ShapeType SERVICE
public static final ShapeType RESOURCE
public static final ShapeType OPERATION
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ShapeType>
public java.lang.Class<? extends Shape> getShapeClass()
public ShapeType.Category getCategory()
public static java.util.Optional<ShapeType> fromString(java.lang.String text)
text
- Text to convert into a Shape.Typepublic AbstractShapeBuilder<?,?> createBuilderForType()