|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.io.simple.AbstractReportDefinitionHandler | +--com.jrefinery.report.io.simple.FunctionFactory
The functionFactory creates functions and adds these functions to the FunctionCollection of the current report.
Field Summary |
Constructor Summary | |
FunctionFactory(org.jfree.xml.Parser parser,
java.lang.String finishTag)
Creates a new function handler. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receives some (or all) of the text in the current element. |
void |
endElement(java.lang.String qName)
Ends the current element. |
protected void |
endExpression()
Ends the expression. |
protected void |
endFunction()
Ends the function. |
protected void |
endFunctions()
Ends the parsing of functions. |
protected void |
endProperties()
Ends the properties parsing for the current function. |
protected void |
endProperty()
Ends the definition of a single property entry. |
protected void |
endPropertyRef()
Ends the definition of a single property entry. |
protected Expression |
getCurrentExpression()
Returns the current expression. |
protected Function |
getCurrentFunction()
Returns the function under construction. |
protected java.util.Properties |
getProperties()
Returns the current properties bundle for the function that is currently created. |
protected void |
setCurrentExpression(Expression function)
Sets the current expression. |
protected void |
setCurrentFunction(Function function)
Defines the current function. |
protected void |
setProperties(java.util.Properties p)
Sets the properties for the current function. |
void |
startElement(java.lang.String qName,
org.xml.sax.Attributes atts)
SAX-Handler function that is forwarded from the ReportDefinitionContentHandler. |
protected void |
startExpression(org.xml.sax.Attributes attr)
Starts processing an expression element. |
protected void |
startFunction(org.xml.sax.Attributes attr)
starts and loads a function by instantating the functions class. |
protected void |
startFunctions(org.xml.sax.Attributes atts)
Starts a new function collection. |
protected void |
startProperties(org.xml.sax.Attributes atts)
Starts the Properties tag to create a new property bundle for a function. |
protected void |
startProperty(org.xml.sax.Attributes atts)
Starts a new property entry for the current function. |
protected void |
startPropertyRef(org.xml.sax.Attributes attr)
Starts processing an expression element. |
Methods inherited from class com.jrefinery.report.io.simple.AbstractReportDefinitionHandler |
getContentBase, getFinishTag, getLocator, getNameGenerator, getParser, getReport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FunctionFactory(org.jfree.xml.Parser parser, java.lang.String finishTag)
parser
- the used parser to coordinate the parsing process.finishTag
- the finish tag, that should trigger the deactivation of this parser.
java.lang.NullPointerException
- if the finishTag or the parser are null.Method Detail |
public void startElement(java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.jfree.xml.ElementDefinitionHandler
qName
- the element name.atts
- the attributes.
org.xml.sax.SAXException
- if an unknown tag is encountered.protected java.util.Properties getProperties()
protected void setProperties(java.util.Properties p)
p
- the properties.protected Function getCurrentFunction()
protected void setCurrentFunction(Function function)
function
- the function.protected Expression getCurrentExpression()
protected void setCurrentExpression(Expression function)
function
- the expression.protected void startProperties(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
atts
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.protected void startProperty(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
atts
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.protected void startFunctions(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
atts
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.protected void startExpression(org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
attr
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.protected void startPropertyRef(org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
attr
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.protected void startFunction(org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
attr
- the element attributes.
org.xml.sax.SAXException
- if there is an error parsing the XML.public void characters(char[] ch, int start, int length)
characters
in interface org.jfree.xml.ElementDefinitionHandler
characters
in class AbstractReportDefinitionHandler
ch
- the character array.start
- the first character index.length
- the length (number of valid characters).public void endElement(java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.jfree.xml.ElementDefinitionHandler
qName
- the element name.
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endFunction() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endExpression() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endFunctions() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endProperties() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endProperty() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.protected void endPropertyRef() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a problem parsing the element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |