Enum TextInstance.TextLocationType
- java.lang.Object
-
- java.lang.Enum<TextInstance.TextLocationType>
-
- software.amazon.smithy.model.knowledge.TextInstance.TextLocationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TextInstance.TextLocationType>
- Enclosing class:
- TextInstance
public static enum TextInstance.TextLocationType extends java.lang.Enum<TextInstance.TextLocationType>
Enum type indicating what kind of location in the model associated text appeared in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLIED_TRAIT
NAMESPACE
SHAPE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextInstance.TextLocationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TextInstance.TextLocationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHAPE
public static final TextInstance.TextLocationType SHAPE
-
APPLIED_TRAIT
public static final TextInstance.TextLocationType APPLIED_TRAIT
-
NAMESPACE
public static final TextInstance.TextLocationType NAMESPACE
-
-
Method Detail
-
values
public static TextInstance.TextLocationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextInstance.TextLocationType c : TextInstance.TextLocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextInstance.TextLocationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-