|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.jfree.xml.FrontendDefaultHandler
|
+--org.jfree.xml.parser.RootXmlReadHandler
|
+--org.jfree.report.modules.parser.base.ReportParser
The report parser initializes the parsing engine and coordinates the parsing process. Once the parsing is complete, the generated report instance can be queries with getResult();
This parser produces JFreeReport objects.
| Field Summary | |
static java.lang.String |
HELPER_OBJ_REPORT_NAME
The key that stores the report defintion in the helper objects collection. |
| Fields inherited from class org.jfree.xml.FrontendDefaultHandler |
CONTENTBASE_KEY |
| Constructor Summary | |
ReportParser()
Default constuctor. |
|
| Method Summary | |
void |
endElement(java.lang.String tagName,
java.lang.String namespace,
java.lang.String qName)
Handles the end of an element. |
void |
error(org.xml.sax.SAXParseException e)
Receive notification of a recoverable parser error. |
void |
fatalError(org.xml.sax.SAXParseException e)
Report a fatal XML parsing error. |
org.jfree.xml.util.ObjectFactory |
getFactoryLoader()
Returns the object factory. |
ReportBuilderHints |
getParserHints()
Returns the report builder hints instance used to collect all comments and other valueable information that cannot be restored with just the parsed object model. |
java.lang.Object |
getResult()
Returns the parsered object. |
void |
info(java.lang.String message)
Places an informational message on the message queue. |
boolean |
isIncluded()
Checks whether this report is a included report and not the main report definition. |
org.jfree.xml.FrontendDefaultHandler |
newInstance()
Returns a new instance of the parser. |
protected void |
setParserHints(ReportBuilderHints hints)
|
void |
startElement(java.lang.String tagName,
java.lang.String namespace,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Handles the start of an element. |
void |
warning(org.xml.sax.SAXParseException e)
Receive notification of a parser warning. |
| Methods inherited from class org.jfree.xml.parser.RootXmlReadHandler |
addDefaultMappings,
addManualMapping,
addMultiplexMapping,
characters,
createHandler,
delegate,
getCurrentHandler,
getHelperObject,
getRootHandler,
loadClass,
loadHandlerClass,
recurse,
setHelperObject,
setRootHandler,
startDocument,
unwind |
| Methods inherited from class org.jfree.xml.FrontendDefaultHandler |
findPropertyKeys,
getCommentHandler,
getConfigProperties,
getConfigProperty,
getConfigProperty,
getContentBase,
getLocator,
setConfigProperty,
setDocumentLocator |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument,
endPrefixMapping,
ignorableWhitespace,
notationDecl,
processingInstruction,
resolveEntity,
skippedEntity,
startPrefixMapping,
unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String HELPER_OBJ_REPORT_NAME
| Constructor Detail |
public ReportParser()
| Method Detail |
public org.jfree.xml.util.ObjectFactory getFactoryLoader()
public org.jfree.xml.FrontendDefaultHandler newInstance()
public java.lang.Object getResult()
throws org.xml.sax.SAXException
public ReportBuilderHints getParserHints()
protected void setParserHints(ReportBuilderHints hints)
public boolean isIncluded()
public void endElement(java.lang.String tagName,
java.lang.String namespace,
java.lang.String qName)
throws org.xml.sax.SAXException
tagName - the tagname of the element.namespace - the current namespaceqName - the fully qualified name(java.lang.String, java.lang.String,
java.lang.String)
public void startElement(java.lang.String tagName,
java.lang.String namespace,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
tagName - the tagname of the element.namespace - the current namespaceqName - the fully qualified nameattributes - the elements attributes.(java.lang.String, java.lang.String,
java.lang.String, org.xml.sax.Attributes)
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
e - The error information encoded as an exception.ErrorHandler.fatalError(org.xml.sax.SAXParseException),
SAXParseException
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
e - The warning information encoded as an exception.ErrorHandler.warning(org.xml.sax.SAXParseException),
SAXParseException
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
e - The warning information encoded as an exception.ErrorHandler.warning(org.xml.sax.SAXParseException),
SAXParseException
public void info(java.lang.String message)
throws org.xml.sax.SAXException
message - the message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||