Package io.micronaut.aws.alexa.ssml
Enum Class InterpretAs
- All Implemented Interfaces:
Serializable
,Comparable<InterpretAs>
,Constable
- Since:
- 2.0.0
- Author:
- sdelamo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInterpret a value as part of street address.Interpret the value as a cardinal number.Spell out each letter.Interpret the value as a date.Spell each digit separately ."Bleep" out the content inside the tag.Interpret the value as a fraction.Interpret the value as an interjection.Interpret the value as an ordinal number.Interpret a value as a 7-digit or 10-digit telephone number.Interpret a value such as 1'21" as duration in minutes and seconds.Interpret a value as a measurement. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static InterpretAs
Returns the enum constant of this class with the specified name.static InterpretAs[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHARACTERS
Spell out each letter. -
SPELL_OUT
-
CARDINAL
Interpret the value as a cardinal number. -
NUMBER
-
ORDINAL
Interpret the value as an ordinal number. -
DIGITS
Spell each digit separately . -
FRACTION
Interpret the value as a fraction. This works for both common fractions (such as 3/20) and mixed fractions (such as 1+1/2). -
UNIT
Interpret a value as a measurement. The value should be either a number or fraction followed by a unit (with no space in between) or just a unit. -
DATE
Interpret the value as a date. Specify the format with the format attribute. -
TIME
Interpret a value such as 1'21" as duration in minutes and seconds. -
TELEPHONE
Interpret a value as a 7-digit or 10-digit telephone number. This can also handle extensions (for example, 2025551212x345). -
ADDRESS
Interpret a value as part of street address. -
INTERJECTION
Interpret the value as an interjection. -
EXPLETIVE
"Bleep" out the content inside the tag.
-
-
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
- Overrides:
toString
in classEnum<InterpretAs>
-