public class FormatExtension extends ReportExtension
MacroExpander.
Sub-trees of the template may be omitted using IfDef elements that test for non-null properties
in the current record.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORMAT_LOC |
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, FORMAT_ATTR, parse_vis, PROPERTY_ELEMENT, TIME_BOUNDS_ELEMENT, VALUE_ELEMENT| Constructor and Description |
|---|
FormatExtension(uk.ac.ed.epcc.webapp.AppContext conn,
java.text.NumberFormat nf) |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.DocumentFragment |
format(RecordSet recordSet,
uk.ac.ed.epcc.webapp.time.Period period,
org.w3c.dom.NodeList template) |
org.w3c.dom.Element |
getFirstElement(org.w3c.dom.NodeList list,
java.lang.String name) |
boolean |
isTrivial(java.lang.Object o) |
addDeveloperError, addError, addError, addError, addFilterElement, addReference, checkNode, 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, getText, getValueParser, getValueParser, hasChild, parse, setPolicypublic static final java.lang.String FORMAT_LOC
public FormatExtension(uk.ac.ed.epcc.webapp.AppContext conn,
java.text.NumberFormat nf)
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic org.w3c.dom.Element getFirstElement(org.w3c.dom.NodeList list,
java.lang.String name)
public org.w3c.dom.DocumentFragment format(RecordSet recordSet, uk.ac.ed.epcc.webapp.time.Period period, org.w3c.dom.NodeList template)
public boolean isTrivial(java.lang.Object o)