Operations Summary: | |
void | init(in string ruleName) |
void | initFromComponents(in string packageName, in string simpleGrammarName, in string simpleRuleName) raises |
string | getFullGrammarName() |
string | getPackageName() |
string | getRuleName() |
string | getSimpleGrammarName() |
string | getSimpleRuleName() |
boolean | isLegalRuleName() |
boolean | isLegalRuleNameFromName(in string name) |
boolean | isRuleNamePart(in wchar c) |
void | setRuleName(in string ruleName) |
void | setRuleNameWithComponents(in string packageName, in string simpleGrammarName, in string simpleRuleName) raises |
Operations Inherited from Rule | |
copy, toString |
Operations Inherited from Bonobo::Unknown | |
ref, unref, queryInterface |
Operation Details: |
Initialize a RuleName
from a string. Leading and
trailing angle brackets are stripped if found. The rulename may
be a simple rulename, qualified rulename or full-qualified rulename.
Initialize a RuleName
from its package-name,
grammar-name and simple-name components. Leading and trailing
angle brackets are stripped from ruleName
if found.
The package name may be null. The grammar name may be null only
if packageName is null.
Get the full grammar name. If the packageName
is
null
, the return value is the simple grammar name.
May return null.
Get the rule's package name.
Get the rulename including the package and grammar name if they are non-null. The return value may be a fully-qualified rulename, qualified rulename, or simple rulename.
Get the simple grammar name. May be null.
Get the simple rulename.
Tests whether this RuleName
is a legal grammar
format rulename. The isLegalRuleNameFromRuleName
method defines legal rulename forms.
RuleName
is a legal grammar format rulename.isLegalRuleNameFromRuleName
isRuleNamePart
Tests whether a string is a legal grammar rulename format. The
legal patterns for rulenames are defined
above. The method does not test whether the rulename exists or
is resolvable (see the resolve
method of
RuleGrammar).
An import string (e.g. "com.acme.*") is considered legal even though the "*" character is not a legal rulename character. If present, starting and ending angle brackets are ignored.
isLegalRuleName
isRuleNamePart
Tests whether a character is a legal part of a Java Speech Grammar Format rulename.
isLegalRuleName
isLegalRuleNameFromName
Set the rulename. The rulename may be a simple, qualified or fully-qualified rulename. Leading and trailing angle brackets are stripped if found.
Set the rule's name with package name, simple grammar name and
simple rulename components. Leading and trailing angle brackets
are stripped from ruleName.
The package name may
be null. The simple grammar name may be null only if
packageName
is null
.