public interface Grammar
| Modifier and Type | Method and Description |
|---|---|
void |
addProduction(Event event,
Grammar grammar) |
Production |
getAttributeNSProduction(String namespaceURI) |
Production |
getAttributeProduction(String namespaceURI,
String localName) |
Grammar |
getElementContentGrammar() |
GrammarType |
getGrammarType() |
int |
getNumberOfEvents() |
Production |
getProduction(EventType eventType) |
Production |
getProduction(int eventCode) |
Production |
getStartElementNSProduction(String namespaceURI) |
Production |
getStartElementProduction(String namespaceURI,
String localName) |
boolean |
hasEndElement()
Informs whether a grammar has first level EndElement (EE) production
|
boolean |
isSchemaInformed() |
void |
learnAttribute(Attribute at) |
void |
learnCharacters() |
void |
learnEndElement() |
int |
learningStopped()
Reports internal state
|
void |
learnStartElement(StartElement se) |
void |
stopLearning()
Learning is stopped for the EXI Profile.
|
boolean isSchemaInformed()
boolean hasEndElement()
GrammarType getGrammarType()
int getNumberOfEvents()
void learnStartElement(StartElement se)
void learnEndElement()
void learnAttribute(Attribute at)
void learnCharacters()
void stopLearning()
Grammar learning is stopped in the sense that counters are incremented but the actual events cannot be retrieved anymore. However, it is taken care that neither EE, CH, nor AT(xsi:type) is learned more than twice.
int learningStopped()
Grammar getElementContentGrammar()
Production getProduction(EventType eventType)
Production getStartElementProduction(String namespaceURI, String localName)
Production getStartElementNSProduction(String namespaceURI)
Production getAttributeProduction(String namespaceURI, String localName)
Production getAttributeNSProduction(String namespaceURI)
Production getProduction(int eventCode)
Copyright © 2018 Siemens AG. All rights reserved.