public abstract class AbstractSchemaInformedGrammar extends AbstractGrammar implements SchemaInformedGrammar
| Modifier and Type | Field and Description |
|---|---|
protected int |
codeLengthA |
protected int |
codeLengthB |
protected boolean |
hasEndElement |
protected int |
leastAttributeEventCode |
protected int |
numberOfDeclaredAttributes |
END_ELEMENT, END_RULE, label, START_ELEMENT_GENERIC, stopLearningContainerSize| Constructor and Description |
|---|
AbstractSchemaInformedGrammar() |
AbstractSchemaInformedGrammar(String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProduction(Event event,
Grammar grammar) |
SchemaInformedGrammar |
clone() |
SchemaInformedGrammar |
duplicate() |
boolean |
equals(Object o) |
Production |
getAttributeNSProduction(String namespaceURI) |
Production |
getAttributeProduction(String namespaceURI,
String localName) |
int |
getLeastAttributeEventCode() |
int |
getNumberOfDeclaredAttributes() |
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() |
protected boolean |
isTerminalRule() |
void |
joinGrammars(Grammar rule) |
String |
toString() |
protected void |
updateSortedEvents(Event newEvent,
Grammar newGrammar) |
addTerminalProduction, checkQualifiedName, getElementContentGrammar, getEventCode, getLabel, hashCode, learnAttribute, learnCharacters, learnEndElement, learningStopped, learnStartElement, setLabel, stopLearningfinalize, getClass, notify, notifyAll, wait, wait, waitaddTerminalProduction, getLabel, setLabelgetElementContentGrammar, getGrammarType, learnAttribute, learnCharacters, learnEndElement, learningStopped, learnStartElement, stopLearningprotected int codeLengthA
protected int codeLengthB
protected boolean hasEndElement
protected int leastAttributeEventCode
protected int numberOfDeclaredAttributes
public AbstractSchemaInformedGrammar()
public AbstractSchemaInformedGrammar(String label)
public boolean hasEndElement()
GrammarhasEndElement in interface Grammarprotected final boolean isTerminalRule()
public final boolean isSchemaInformed()
isSchemaInformed in interface Grammarpublic int getNumberOfDeclaredAttributes()
getNumberOfDeclaredAttributes in interface SchemaInformedGrammarpublic int getLeastAttributeEventCode()
getLeastAttributeEventCode in interface SchemaInformedGrammarpublic final int getNumberOfEvents()
getNumberOfEvents in interface Grammarpublic void addProduction(Event event, Grammar grammar)
addProduction in interface Grammarpublic void joinGrammars(Grammar rule)
public SchemaInformedGrammar clone()
public SchemaInformedGrammar duplicate()
duplicate in interface SchemaInformedGrammarpublic 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 final Production getProduction(int eventCode)
getProduction in interface Grammarpublic boolean equals(Object o)
equals in class AbstractGrammarCopyright © 2018 Siemens AG. All rights reserved.