|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
net.sourceforge.chaperon.model.grammar.GrammarFactory
This class should generate a grammar from a SAX stream
Field Summary | |
static java.lang.String |
ASSOCIATIVITY_ELEMENT
Element name |
static java.lang.String |
ERRORSYMBOL_ELEMENT
Element name |
static java.lang.String |
GRAMMAR_ELEMENT
Element name |
static java.lang.String |
NONTERMINALSYMBOL_ELEMENT
Element name |
static java.lang.String |
NS
The namspace of the grammar configuration |
static java.lang.String |
PRECEDENCE_ATTRIBUTE
Attribute name of the Precedence property |
static java.lang.String |
PRIORITY_ELEMENT
Element name |
static java.lang.String |
PRODUCTION_ELEMENT
Element name |
static java.lang.String |
STARTSYMBOL_ELEMENT
Element name |
static java.lang.String |
SYMBOL_ATTRIBUTE
Attribute name |
static java.lang.String |
TERMINALSYMBOL_ELEMENT
Element name |
static java.lang.String |
TYPE_ATTRIBUTE
Attribute name of the associativity property |
Constructor Summary | |
GrammarFactory()
|
Method Summary | |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element. |
Grammar |
getGrammar()
Returns the generated Grammar |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NS
public static final java.lang.String GRAMMAR_ELEMENT
public static final java.lang.String PRODUCTION_ELEMENT
public static final java.lang.String PRECEDENCE_ATTRIBUTE
public static final java.lang.String NONTERMINALSYMBOL_ELEMENT
public static final java.lang.String TERMINALSYMBOL_ELEMENT
public static final java.lang.String ERRORSYMBOL_ELEMENT
public static final java.lang.String STARTSYMBOL_ELEMENT
public static final java.lang.String PRIORITY_ELEMENT
public static final java.lang.String ASSOCIATIVITY_ELEMENT
public static final java.lang.String TYPE_ATTRIBUTE
public static final java.lang.String SYMBOL_ATTRIBUTE
Constructor Detail |
public GrammarFactory()
Method Detail |
public Grammar getGrammar()
public void setDocumentLocator(org.xml.sax.Locator locator)
public void startDocument()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI
or if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing
is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not
available.atts
- The attributes attached to the element. If there are no attributes, it shall be an
empty Attributes object.
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI
or if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing
is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not
available.
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |