Package relaxngcc.parser
Class ParserRuntime
java.lang.Object
relaxngcc.parser.state.NGCCRuntime
relaxngcc.parser.ParserRuntime
- All Implemented Interfaces:
ContentHandler,NGCCEventSource
- Direct Known Subclasses:
IncludeParserRuntime,RootParserRuntime
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(BuildError err) voidendElement(String uri, String local, String qname) getDatatype(String name) Gets the current datatype library.abstract RootParserRuntimeGets the reference to the root runtime.Gets the value of the current "ns".voidParses a document with this runtime.parseSimpleName(String qname, boolean attributeMode) Parses a QName into a SimpleNameClass.voidprocessInclude(String href) Processes the <include> element.voidstartElement(String uri, String local, String qname, Attributes atts) Methods inherited from class relaxngcc.parser.state.NGCCRuntime
characters, consumeAttribute, endDocument, endPrefixMapping, getAttributeIndex, getCurrentAttributes, getLocator, ignorableWhitespace, onEnterElementConsumed, onLeaveElementConsumed, processingInstruction, processList, redirectSubtree, replace, reset, resolveNamespacePrefix, sendEnterAttribute, sendEnterElement, sendLeaveAttribute, sendLeaveElement, sendText, setDocumentLocator, setRootHandler, skippedEntity, startDocument, startPrefixMapping, trace, tracelnMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
grammar
Grammar object that we are currently building.
-
-
Method Details
-
parse
Parses a document with this runtime.- Throws:
SAXException
-
parseSimpleName
Parses a QName into a SimpleNameClass. -
processInclude
Processes the <include> element.- Throws:
SAXException
-
getRootRuntime
Gets the reference to the root runtime. -
getTargetNamespace
Gets the value of the current "ns". -
getDatatype
Gets the current datatype library. -
createLocator
-
startElement
public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classNGCCRuntime- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classNGCCRuntime- Throws:
SAXException
-
addError
-
iterateErrors
-