public final class VoiceXmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidIdentifierName(String name)
Checks if a name is a valid VoiceXML identifier as per VoiceXML 2.0
specification (section 5.1): The variable naming convention
is as in ECMAScript, but names beginning with the underscore character
("_") and names ending with a dollar sign ("$") are reserved for internal
use.
|
public static boolean isValidIdentifierName(String name)
The variable naming convention is as in ECMAScript, but names beginning with the underscore character ("_") and names ending with a dollar sign ("$") are reserved for internal use. VoiceXML variables, including form item variables, must not contain ECMAScript reserved words. They must also follow ECMAScript rules for referential correctness. For example, variable names must be unique and their declaration must not include a dot - "var x.y" is an illegal declaration in ECMAScript. Variable names which violate naming conventions or ECMAScript rules cause an 'error.semantic' event to be thrown.
name
- the name to be testedtrue
if and only if the name is a valid VoiceXML
identifier.Copyright © 2019 Nu Echo Inc..