Enum PatternMatchingEntity.EntityType
- java.lang.Object
-
- java.lang.Enum<PatternMatchingEntity.EntityType>
-
- com.microsoft.cognitiveservices.speech.intent.PatternMatchingEntity.EntityType
-
- All Implemented Interfaces:
Serializable,Comparable<PatternMatchingEntity.EntityType>
- Enclosing class:
- PatternMatchingEntity
public static enum PatternMatchingEntity.EntityType extends Enum<PatternMatchingEntity.EntityType>
Used to define the type of entity used for intent recognition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AnyThis will match any text that fills the slot.ListThis will match text that is contained within the list or any text if the mode is set to EntityMatchMode.Fuzzy.PrebuiltIntegerThis will match cardinal and ordinal integers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the internal value property idstatic PatternMatchingEntity.EntityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PatternMatchingEntity.EntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Any
public static final PatternMatchingEntity.EntityType Any
This will match any text that fills the slot.
-
List
public static final PatternMatchingEntity.EntityType List
This will match text that is contained within the list or any text if the mode is set to EntityMatchMode.Fuzzy.
-
PrebuiltInteger
public static final PatternMatchingEntity.EntityType PrebuiltInteger
This will match cardinal and ordinal integers.
-
-
Method Detail
-
values
public static PatternMatchingEntity.EntityType[] 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 (PatternMatchingEntity.EntityType c : PatternMatchingEntity.EntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PatternMatchingEntity.EntityType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
Returns the internal value property id- Returns:
- the speech property id
-
-