public class MultiplexRootElementHandler extends RootXmlReadHandler
Constructor and Description |
---|
MultiplexRootElementHandler(ResourceManager manager,
ResourceKey source,
ResourceKey context,
long version,
XmlFactoryModule[] rootHandlers)
Creates a new MultiplexRootElementHandler for the given root handler selection.
|
Modifier and Type | Method and Description |
---|---|
EntityResolver |
getEntityResolver()
Returns the entity resolver used in this handler.
|
ParserEntityResolver |
getParserEntityResolver()
Returns the parent entity resolver used in the element handler.
|
protected XmlFactoryModule[] |
getRootHandlers()
Returns all known roothandlers.
|
XmlFactoryModule |
getSelectedRootHandler() |
protected void |
interceptFirstStartElement(String originalUri,
String localName,
String qName,
Attributes attributes)
Starts processing an element.
|
characters, delegate, endElement, getCommentHandler, getContext, getCurrentHandler, getDependencyCollector, getDocumentLocator, getHelperObject, getHelperObjectNames, getParserConfiguration, getResourceManager, getResult, getRootHandler, getSource, installRootHandler, isFirstCall, isXmlnsUrisNotAvailable, pushDefaultNamespace, recurse, setDocumentLocator, setHelperObject, setRootHandler, setXmlnsUrisNotAvailable, startDocument, startElement, unwind, wrapAttributes
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public MultiplexRootElementHandler(ResourceManager manager, ResourceKey source, ResourceKey context, long version, XmlFactoryModule[] rootHandlers)
manager
- the resource manager that loaded this xml-file.source
- the source-key that idenfies from where the file was loaded.context
- the key that should be used to resolve relative paths.version
- the versioning information for the root-file.rootHandlers
- the roothandlers, never null.public EntityResolver getEntityResolver()
getEntityResolver
in class RootXmlReadHandler
public ParserEntityResolver getParserEntityResolver()
protected XmlFactoryModule[] getRootHandlers()
protected void interceptFirstStartElement(String originalUri, String localName, String qName, Attributes attributes) throws SAXException
interceptFirstStartElement
in class RootXmlReadHandler
originalUri
- the URI.localName
- the local name.qName
- the qName.attributes
- the attributes.SAXException
- if there is a parsing problem.public XmlFactoryModule getSelectedRootHandler()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.