public abstract class AbstractBuiltInGrammar extends AbstractGrammar implements BuiltInGrammar
| Modifier and Type | Field and Description |
|---|---|
protected List<Production> |
containers |
protected int |
ec1Length |
END_ELEMENT, END_RULE, label, START_ELEMENT_GENERIC, stopLearningContainerSize| Constructor and Description |
|---|
AbstractBuiltInGrammar() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProduction(Event event,
Grammar grammar) |
protected boolean |
contains(Event event) |
Production |
getAttributeNSProduction(String namespaceURI) |
Production |
getAttributeProduction(String namespaceURI,
String localName) |
int |
getNumberOfEvents() |
Production |
getProduction(EventType eventType) |
Production |
getProduction(int eventCode) |
Production |
getStartElementNSProduction(String namespaceURI) |
Production |
getStartElementProduction(String namespaceURI,
String localName) |
Grammar |
getTypeEmpty() |
boolean |
hasEndElement()
Informs whether a grammar has first level EndElement (EE) production
|
boolean |
isSchemaInformed() |
void |
stopLearning()
Learning is stopped for the EXI Profile.
|
String |
toString() |
addTerminalProduction, checkQualifiedName, equals, getElementContentGrammar, getEventCode, getLabel, hashCode, learnAttribute, learnCharacters, learnEndElement, learningStopped, learnStartElement, setLabelclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementContentGrammar, getGrammarType, learnAttribute, learnCharacters, learnEndElement, learningStopped, learnStartElementprotected List<Production> containers
protected int ec1Length
public boolean hasEndElement()
GrammarhasEndElement in interface Grammarpublic void stopLearning()
GrammarGrammar 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.
stopLearning in interface GrammarstopLearning in class AbstractGrammarpublic final boolean isSchemaInformed()
isSchemaInformed in interface Grammarpublic Grammar getTypeEmpty()
public int getNumberOfEvents()
getNumberOfEvents in interface Grammarpublic void addProduction(Event event, Grammar grammar)
addProduction in interface Grammarprotected boolean contains(Event event)
public Production getProduction(EventType eventType)
getProduction in interface Grammarpublic Production getStartElementProduction(String namespaceURI, String localName)
getStartElementProduction in interface Grammarpublic Production getStartElementNSProduction(String namespaceURI)
getStartElementNSProduction in interface Grammarpublic Production getAttributeProduction(String namespaceURI, String localName)
getAttributeProduction in interface Grammarpublic Production getAttributeNSProduction(String namespaceURI)
getAttributeNSProduction in interface Grammarpublic Production getProduction(int eventCode)
getProduction in interface GrammarCopyright © 2018 Siemens AG. All rights reserved.