org.pentaho.reporting.libraries.xmlns.parser
public class RootXmlReadHandler extends DefaultHandler
Constructor Summary | |
---|---|
RootXmlReadHandler(ResourceManager manager, ResourceKey source, long version)
Creates a new root-handler using the given versioning information and
resource-manager.
| |
RootXmlReadHandler(ResourceManager manager, ResourceKey source, ResourceKey context, long version)
Creates a new root-handler using the given versioning information and
resource-manager.
|
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length)
Process character data.
|
void | delegate(XmlReadHandler handler, String uri, String tagName, Attributes attrs)
Delegate to another handler.
|
void | endElement(String originalUri, String localName, String qName)
Finish processing an element.
|
CommentHandler | getCommentHandler()
Returns the comment handler that is used to collect comments.
|
ResourceKey | getContext()
Returns the context key. |
DependencyCollector | getDependencyCollector()
Returns the current dependency collector for this parse-operation.
|
Locator | getDocumentLocator()
Returns the current documentLocator.
|
Object | getHelperObject(String key)
Returns an object from the registry.
|
String[] | getHelperObjectNames()
Returns the array of all currently registered helper-objects. |
DefaultConfiguration | getParserConfiguration()
Returns the parser-configuration. |
ResourceManager | getResourceManager()
Returns the resource-manager that is used to load external resources.
|
Object | getResult()
Tries to return the parse-result of the selected root-handler.
|
ResourceKey | getSource()
Returns the source key. |
boolean | isFirstCall()
Checks, whether this is the first call to the handler.
|
void | recurse(XmlReadHandler handler, String uri, String tagName, Attributes attrs)
Start a new handler stack and delegate to another handler.
|
void | setDocumentLocator(Locator locator)
Receive an object for locating the origin of SAX document events.
|
void | setHelperObject(String key, Object value)
Adds an object to the registry.
|
void | startDocument()
Starts processing a document.
|
void | startElement(String originalUri, String localName, String qName, Attributes attributes)
Starts processing an element.
|
void | unwind(String uri, String tagName)
Hand control back to the previous handler.
|
Parameters: manager the resource manager that loaded this xml-file. source the source-key that idenfies from where the file was loaded. version the versioning information for the root-file.
Parameters: 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.
Parameters: ch the character buffer. start the start index. length the length of the character data.
Throws: SAXException if there is a parsing error.
Parameters: handler the new handler. tagName the tag name. uri the namespace uri of the current tag. attrs the attributes.
Throws: SAXException if there is a problem with the parser.
Parameters: originalUri the URI. localName the local name. qName the qName.
Throws: SAXException if there is a parsing error.
Returns: the comment handler.
Returns: the context.
Returns: the dependency collector.
Returns: the documentLocator.
Parameters: key the key.
Returns: The object.
Returns: the helper object names.
Returns: the parser's configuration.
Returns: the resource-manager.
Returns: the parse-result.
Throws: SAXException if an error occurs.
Returns: the source key.
Returns: true, if this is the first call, false otherwise.
Parameters: handler the handler. uri the namespace uri of the current tag. tagName the tag name. attrs the attributes.
Throws: SAXException if there is a problem with the parser.
Parameters: locator the documentLocator.
Parameters: key the key. value the object.
Throws: SAXException not in this implementation.
Parameters: originalUri the URI. localName the local name. qName the qName. attributes the attributes.
Throws: SAXException if there is a parsing problem.
Parameters: tagName the tagname. uri the namespace uri of the current tag.
Throws: SAXException if there is a problem with the parser.