| java.lang.Object org.xml.sax.helpers.DefaultHandler net.sourceforge.chaperon.model.grammar.GrammarFactory
GrammarFactory | public class GrammarFactory extends DefaultHandler (Code) | | This class should generate a grammar from a SAX stream
author: Stephan Michels version: CVS $Id: GrammarFactory.java,v 1.5 2003/12/14 09:48:34 benedikta Exp $ |
Method Summary | |
public void | endElement(String namespaceURI, String localName, String qName) Receive notification of the end of an element. | public Grammar | getGrammar() | public void | setDocumentLocator(Locator locator) Receive an object for locating the origin of SAX document events. | public void | startDocument() Receive notification of the beginning of a document. | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) Receive notification of the beginning of an element.
Parameters: namespaceURI - The Namespace URI, or the empty string if the element has no Namespace URIor if Namespace processing is not being performed. Parameters: localName - The local name (without prefix), or the empty string if Namespace processingis not being performed. Parameters: qName - The raw XML 1.0 name (with prefix), or the empty string if raw names are notavailable. Parameters: atts - The attributes attached to the element. |
ASSOCIATIVITY_ELEMENT | final public static String ASSOCIATIVITY_ELEMENT(Code) | | Element name
|
ERRORSYMBOL_ELEMENT | final public static String ERRORSYMBOL_ELEMENT(Code) | | Element name
|
GRAMMAR_ELEMENT | final public static String GRAMMAR_ELEMENT(Code) | | Element name
|
NONTERMINALSYMBOL_ELEMENT | final public static String NONTERMINALSYMBOL_ELEMENT(Code) | | Element name
|
NS | final public static String NS(Code) | | The namspace of the grammar configuration
|
PRECEDENCE_ATTRIBUTE | final public static String PRECEDENCE_ATTRIBUTE(Code) | | Attribute name of the Precedence property
|
PRIORITY_ELEMENT | final public static String PRIORITY_ELEMENT(Code) | | Element name
|
PRODUCTION_ELEMENT | final public static String PRODUCTION_ELEMENT(Code) | | Element name
|
STARTSYMBOL_ELEMENT | final public static String STARTSYMBOL_ELEMENT(Code) | | Element name
|
SYMBOL_ATTRIBUTE | final public static String SYMBOL_ATTRIBUTE(Code) | | Attribute name
|
TERMINALSYMBOL_ELEMENT | final public static String TERMINALSYMBOL_ELEMENT(Code) | | Element name
|
TYPE_ATTRIBUTE | final public static String TYPE_ATTRIBUTE(Code) | | Attribute name of the associativity property
|
endElement | public void endElement(String namespaceURI, String localName, String qName) throws SAXException(Code) | | Receive notification of the end of an element.
Parameters: namespaceURI - The Namespace URI, or the empty string if the element has no Namespace URIor if Namespace processing is not being performed. Parameters: localName - The local name (without prefix), or the empty string if Namespace processingis not being performed. Parameters: qName - The raw XML 1.0 name (with prefix), or the empty string if raw names are notavailable. throws: SAXException - |
getGrammar | public Grammar getGrammar()(Code) | | Returns the generated Grammar
Grammar |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Receive an object for locating the origin of SAX document events.
|
startDocument | public void startDocument()(Code) | | Receive notification of the beginning of a document.
|
startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException(Code) | | Receive notification of the beginning of an element.
Parameters: namespaceURI - The Namespace URI, or the empty string if the element has no Namespace URIor if Namespace processing is not being performed. Parameters: localName - The local name (without prefix), or the empty string if Namespace processingis not being performed. Parameters: qName - The raw XML 1.0 name (with prefix), or the empty string if raw names are notavailable. Parameters: atts - The attributes attached to the element. If there are no attributes, it shall be anempty Attributes object. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|