|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler
org.pentaho.reporting.libraries.xmlns.parser.MultiplexRootElementHandler
public class MultiplexRootElementHandler
A root-handler that intercepts the first call to startElement to select a XmlReadHandler based on the XmlDocumentInfo provided by the parser.
Constructor Summary | |
---|---|
MultiplexRootElementHandler(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey source,
org.pentaho.reporting.libraries.resourceloader.ResourceKey context,
long version,
XmlFactoryModule[] rootHandlers)
Creates a new MultiplexRootElementHandler for the given root handler selection. |
Method Summary | |
---|---|
org.xml.sax.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(java.lang.String originalUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Starts processing an element. |
boolean |
isXmlnsUrisNotAvailable()
Returns, whether the parser resolves namespace-URIs. |
void |
setXmlnsUrisNotAvailable(boolean xmlnsUrisNotAvailable)
Sets a hint that the parser will not be able to return URIs for XML-Namespaces. |
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler |
---|
characters, delegate, endElement, getCommentHandler, getContext, getCurrentHandler, getDependencyCollector, getDocumentLocator, getHelperObject, getHelperObjectNames, getParserConfiguration, getResourceManager, getResult, getRootHandler, getSource, installRootHandler, isFirstCall, pushDefaultNamespace, recurse, setDocumentLocator, setHelperObject, setRootHandler, startDocument, startElement, unwind, wrapAttributes |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
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 |
Constructor Detail |
---|
public MultiplexRootElementHandler(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceKey source, org.pentaho.reporting.libraries.resourceloader.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.Method Detail |
---|
public boolean isXmlnsUrisNotAvailable()
public void setXmlnsUrisNotAvailable(boolean xmlnsUrisNotAvailable)
xmlnsUrisNotAvailable
- a flag indicating that the XML parser has troubles resolving namespaces.public org.xml.sax.EntityResolver getEntityResolver()
public ParserEntityResolver getParserEntityResolver()
protected XmlFactoryModule[] getRootHandlers()
protected void interceptFirstStartElement(java.lang.String originalUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
interceptFirstStartElement
in class RootXmlReadHandler
originalUri
- the URI.localName
- the local name.qName
- the qName.attributes
- the attributes.
org.xml.sax.SAXException
- if there is a parsing problem.public XmlFactoryModule getSelectedRootHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |