public class SchemaInformedGrammars extends AbstractGrammars
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
builtInXMLSchemaTypesOnly |
protected SchemaInformedGrammar |
elementFragmentGrammar |
protected String |
schemaId |
documentGrammar, fragmentGrammar| Constructor and Description |
|---|
SchemaInformedGrammars(GrammarContext grammarContext,
Document document,
Fragment fragment,
SchemaInformedGrammar elementFragmentGrammar) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Grammar |
getFragmentGrammar() |
String |
getSchemaId()
The schemaID option may be used to identify the schema information used
for processing the EXI body.
|
SchemaInformedGrammar |
getSchemaInformedElementFragmentGrammar() |
boolean |
isBuiltInXMLSchemaTypesOnly()
The built-in XML schema types are available.
|
void |
setBuiltInXMLSchemaTypesOnly(boolean builtInXMLSchemaTypesOnly) |
void |
setSchemaId(String schemaId)
Sets the schemaId passed to EXI decoder.
|
getDocumentGrammar, getGrammarContext, isSchemaInformedprotected boolean builtInXMLSchemaTypesOnly
protected String schemaId
protected final SchemaInformedGrammar elementFragmentGrammar
public SchemaInformedGrammars(GrammarContext grammarContext, Document document, Fragment fragment, SchemaInformedGrammar elementFragmentGrammar)
public void setBuiltInXMLSchemaTypesOnly(boolean builtInXMLSchemaTypesOnly)
public final String getSchemaId()
GrammarsAn example schemaID scheme is the use of URI that is apt for globally identifying schema resources on the Web.
public void setSchemaId(String schemaId) throws UnsupportedOption
GrammarsNote: Schema-less or XML-types grammars have a schema id associated with them (null and empty string).
schemaId - schemaIdUnsupportedOption - if schemaId does not respect EXI restrictions (e.g.,
schema-less grammars: schemaId == null)public boolean isBuiltInXMLSchemaTypesOnly()
GrammarsNote: the grammar is schema-informed also (see isSchemaInformed())
public Grammar getFragmentGrammar()
public SchemaInformedGrammar getSchemaInformedElementFragmentGrammar()
public boolean equals(Object o)
equals in class AbstractGrammarsCopyright © 2018 Siemens AG. All rights reserved.