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 TypeMethodDescriptionvoid
addError
(BuildError err) void
endElement
(String uri, String local, String qname) getDatatype
(String name) Gets the current datatype library.abstract RootParserRuntime
Gets the reference to the root runtime.Gets the value of the current "ns".void
Parses a document with this runtime.parseSimpleName
(String qname, boolean attributeMode) Parses a QName into a SimpleNameClass.void
processInclude
(String href) Processes the <include> element.void
startElement
(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, traceln
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classNGCCRuntime
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classNGCCRuntime
- Throws:
SAXException
-
addError
-
iterateErrors
-