public abstract class AbstractGrammar extends Object implements Grammar
| Modifier and Type | Field and Description |
|---|---|
protected static Event |
END_ELEMENT |
protected static SchemaInformedGrammar |
END_RULE |
protected String |
label |
protected static Event |
START_ELEMENT_GENERIC |
protected int |
stopLearningContainerSize |
| Constructor and Description |
|---|
AbstractGrammar() |
AbstractGrammar(String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTerminalProduction(Event event) |
protected static boolean |
checkQualifiedName(QName c,
String namespaceURI,
String localName) |
boolean |
equals(Object obj) |
Grammar |
getElementContentGrammar() |
protected static int |
getEventCode(EventType eventType,
List<EventType> events) |
String |
getLabel() |
int |
hashCode() |
void |
learnAttribute(Attribute at) |
void |
learnCharacters() |
void |
learnEndElement() |
int |
learningStopped()
Reports internal state
|
void |
learnStartElement(StartElement se) |
void |
setLabel(String label) |
void |
stopLearning()
Learning is stopped for the EXI Profile.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddProduction, getAttributeNSProduction, getAttributeProduction, getGrammarType, getNumberOfEvents, getProduction, getProduction, getStartElementNSProduction, getStartElementProduction, hasEndElement, isSchemaInformedprotected static final SchemaInformedGrammar END_RULE
protected static final Event START_ELEMENT_GENERIC
protected static final Event END_ELEMENT
protected String label
protected int stopLearningContainerSize
public AbstractGrammar()
public AbstractGrammar(String label)
public void addTerminalProduction(Event event)
public void learnStartElement(StartElement se)
learnStartElement in interface Grammarpublic void learnEndElement()
learnEndElement in interface Grammarpublic void learnAttribute(Attribute at)
learnAttribute in interface Grammarpublic void learnCharacters()
learnCharacters 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 Grammarpublic int learningStopped()
GrammarlearningStopped in interface Grammarpublic void setLabel(String label)
public String getLabel()
public Grammar getElementContentGrammar()
getElementContentGrammar in interface GrammarCopyright © 2018 Siemens AG. All rights reserved.