public class ParameterExtension extends ReportExtension
DomFormatter using ReportExtension.getFormatter(Class, String)ValueParser appropriate to its type.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAMETER_ELEM |
static java.lang.String |
PARAMETER_LOC |
static java.lang.String |
PROPERTY_PARAM_PREFIX |
DAY, df, END_TIME, EXPRESSION_PREFIX, FILTER_ELEMENT, FILTER_LOC, FORMATTER_PREFIX, HOUR, MINUTE, MONTH, nf, NUMBER_OF_SPLIT_UNITS, NUMBER_OF_SPLITS, params, PERIOD_ELEMENT, PERIOD_NS, PRODUCER_ELEMENT, SECOND, SPLIT_UNIT, START_TIME, timestampFormat, WEEK, YEARconn, DESCENDING_ATTR, FILTER_AND_ELEMENT, FILTER_CONTAINER_ELEMENT, FILTER_EQ_ELEMENT, FILTER_NOT_NULL_ELEMENT, FILTER_NULL_ELEMENT, FILTER_OR_ELEMENT, FILTER_ORDER_BY_ELEMENT, FILTER_PRODUCER_ELEMENT, parse_vis, PROPERTY_ELEMENT, TIME_BOUNDS_ELEMENT, VALUE_ELEMENT| Constructor and Description |
|---|
ParameterExtension(uk.ac.ed.epcc.webapp.AppContext ctx,
java.text.NumberFormat nf) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildReportParametersForm(uk.ac.ed.epcc.webapp.forms.Form form,
org.w3c.dom.Document reportTemplateDocument)
Build a form based on the ParameterDef elements in the report.
|
boolean |
checkNode(org.w3c.dom.Element e)
Consider this element for validity.
|
protected uk.ac.ed.epcc.webapp.forms.inputs.Input<?> |
configureInput(org.w3c.dom.Element param,
uk.ac.ed.epcc.webapp.forms.inputs.Input<?> input) |
org.w3c.dom.DocumentFragment |
For(org.w3c.dom.Node node)
Do repeated expansion of a document fragment setting a parameter to a set of objects
generated by a filter.
|
org.w3c.dom.DocumentFragment |
formatParameter(java.lang.String name,
org.w3c.dom.NodeList template)
Expand a template using properties from a Parameter
|
static uk.ac.ed.epcc.webapp.content.ContentBuilder |
getDocumentation(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.content.ContentBuilder cb) |
protected java.lang.String |
getText(org.w3c.dom.Element e)
Get the text body of the Element
The Element is assumed to be a leaf node with only text content.
|
boolean |
isSet(java.lang.String name) |
boolean |
isTrivial(java.lang.Object o) |
org.w3c.dom.DocumentFragment |
parameter(org.w3c.dom.Node node) |
org.w3c.dom.DocumentFragment |
repeat(org.w3c.dom.Node node)
Do repeated expansion of a document fragment based on a parameter that provides a series of values
|
org.w3c.dom.DocumentFragment |
value(org.w3c.dom.Node node) |
addDeveloperError, addError, addError, addError, addFilterElement, addReference, convert, debug, display, displayByClass, empty, format, format, formatByClass, formatObject, getBooleanParam, getDefaultTableFormatPolicy, getDocument, getErrors, getExpression, getFormatter, getFormParameter, getIntParam, getIntParamNS, getNumberParam, getParameterRef, getParamExpressionValue, getProperty, getPropertyExpression, getSelectClause, getTag, getTag, getTag, getTag, getValue, hasParam, hasParameterRef, makePeriod, makeString, parseNumber, parseNumberWithDef, setParams, setTime, setUseReferencegetAttribute, getContext, getDateProperties, getExpression, getParam, getParamElement, getParamElementNS, getParamNS, getParamNSWithDefault, getParamWithDefault, getRecordSelectElement, getValueParser, getValueParser, hasChild, parse, setPolicypublic static final java.lang.String PROPERTY_PARAM_PREFIX
public static final java.lang.String PARAMETER_ELEM
public static final java.lang.String PARAMETER_LOC
public ParameterExtension(uk.ac.ed.epcc.webapp.AppContext ctx,
java.text.NumberFormat nf)
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic void buildReportParametersForm(uk.ac.ed.epcc.webapp.forms.Form form,
org.w3c.dom.Document reportTemplateDocument)
throws java.lang.Exception
java.lang.Exceptionform - reportTemplateDocument - protected uk.ac.ed.epcc.webapp.forms.inputs.Input<?> configureInput(org.w3c.dom.Element param,
uk.ac.ed.epcc.webapp.forms.inputs.Input<?> input)
public org.w3c.dom.DocumentFragment value(org.w3c.dom.Node node)
throws org.w3c.dom.DOMException,
java.lang.Exception
org.w3c.dom.DOMExceptionjava.lang.Exceptionpublic boolean isSet(java.lang.String name)
public org.w3c.dom.DocumentFragment formatParameter(java.lang.String name,
org.w3c.dom.NodeList template)
name - template - public boolean isTrivial(java.lang.Object o)
public org.w3c.dom.DocumentFragment parameter(org.w3c.dom.Node node)
throws ReportException
ReportExceptionpublic org.w3c.dom.DocumentFragment repeat(org.w3c.dom.Node node)
node - public org.w3c.dom.DocumentFragment For(org.w3c.dom.Node node)
node - protected java.lang.String getText(org.w3c.dom.Element e)
throws ReportException
SelectBuildergetText in class SelectBuilderReportExceptione - Elementpublic boolean checkNode(org.w3c.dom.Element e)
throws TemplateValidateException
TemplateValidatorcheckNode in interface TemplateValidatorcheckNode in class ReportExtensionTemplateValidateExceptione - Element to be consideredpublic static uk.ac.ed.epcc.webapp.content.ContentBuilder getDocumentation(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.content.ContentBuilder cb)