public class AdhocToXmlTransform extends Object implements IAdhocToXmlTransform
AdhocToXmlTransform class.
Used by the library to convert an object into one that can be used by the JAXB api to marshall an object into an xml file. This is not used in general but is specific to configurations used in the adhoc module. An instance of this class may be applied as follows:
XmlAdhocConfiguration xmlAdhocConfiguration = adhocToXmlTransform.transform(adhocConfiguration);
Marshaller marshaller = JAXBContext.newInstance(XmlAdhocConfiguration.class).createMarshaller();
JAXBElement<XmlAdhocConfiguration> element = element = new net.sf.dynamicreports.adhoc.xmlconfiguration.ObjectFactory().createConfiguration(xmlAdhocConfiguration);
// we can then marshall the element into xml as shown...
marshaller.marshal(element, new StreamResult(outputStream));
Please note that the XmlAdhocConfiguration is class generated by the JAXB api and would be the product of reading data from an xml. This is the type that the serializable JAXBElement for
marshalling, must therefore adhere to, and that can only be created using the transform(AdhocConfiguration) method of this class.| Constructor and Description |
|---|
AdhocToXmlTransform() |
| Modifier and Type | Method and Description |
|---|---|
protected XmlAdhocAxisFormat |
axisFormat(AdhocAxisFormat adhocAxisFormat)
axisFormat.
|
protected XmlAdhocCalculation |
calculation(AdhocCalculation adhocCalculation)
calculation.
|
protected void |
chart(AdhocChart adhocChart,
XmlAdhocChart xmlAdhocChart)
chart.
|
protected XmlAdhocChartSerie |
chartSerie(AdhocChartSerie adhocChartSerie)
chartSerie.
|
protected XmlAdhocChartType |
chartType(AdhocChartType adhocChartType)
chartType.
|
protected String |
color(Color color)
color.
|
protected XmlAdhocColumn |
column(AdhocColumn adhocColumn)
column.
|
protected XmlAdhocComponent |
component(AdhocComponent adhocComponent)
component.
|
protected void |
component(AdhocComponent adhocComponent,
XmlAdhocComponent xmlAdhocComponent)
component.
|
protected XmlAdhocFilter |
filter(AdhocFilter adhocFilter)
filter.
|
protected XmlAdhocFont |
font(AdhocFont adhocFont)
font.
|
protected XmlAdhocGroup |
group(AdhocGroup adhocGroup)
group.
|
protected XmlAdhocGroupHeaderLayout |
groupHeaderLayout(AdhocGroupHeaderLayout adhocGroupHeaderLayout)
groupHeaderLayout.
|
protected XmlAdhocHorizontalAlignment |
horizontalAlignment(AdhocHorizontalAlignment adhocHorizontalAlignment)
horizontalAlignment.
|
protected XmlAdhocOrderType |
orderType(AdhocOrderType adhocOrderType)
orderType.
|
protected XmlAdhocOrientation |
orientation(AdhocOrientation adhocOrientation)
orientation.
|
protected XmlAdhocPage |
page(AdhocPage adhocPage)
page.
|
protected XmlAdhocPageOrientation |
pageOrientation(AdhocPageOrientation adhocPageOrientation)
pageOrientation.
|
protected XmlAdhocPen |
pen(AdhocPen adhocPen)
pen.
|
protected void |
properties(AdhocProperties properties,
List<XmlAdhocProperty> xmlAdhocProperties)
properties.
|
protected String |
propertyValueToString(Object value)
propertyValueToString.
|
protected XmlAdhocReport |
report(AdhocReport adhocReport)
report.
|
protected XmlAdhocRestriction |
restriction(AdhocRestriction adhocRestriction)
restriction.
|
protected void |
restriction(AdhocRestriction adhocRestriction,
XmlAdhocRestriction xmlAdhocRestriction)
restriction.
|
protected XmlAdhocSort |
sort(AdhocSort adhocSort)
sort.
|
protected XmlAdhocStyle |
style(AdhocStyle adhocStyle)
style.
|
protected XmlAdhocSubtotal |
subtotal(AdhocSubtotal adhocSubtotal)
subtotal.
|
protected XmlAdhocSubtotalPosition |
subtotalPosition(AdhocSubtotalPosition adhocSubtotalPosition)
subtotalPosition.
|
protected void |
textField(AdhocTextField adhocTextField,
XmlAdhocTextField xmlAdhocTextField)
textField.
|
XmlAdhocConfiguration |
transform(AdhocConfiguration adhocConfiguration)
transform.
|
protected XmlAdhocValueOperator |
valueOperator(AdhocValueOperator adhocValueOperator)
valueOperator.
|
protected void |
valueRestriction(AdhocValueRestriction adhocValueRestriction,
XmlAdhocValueRestriction xmlAdhocValueRestriction)
valueRestriction.
|
protected XmlAdhocVerticalAlignment |
verticalAlignment(AdhocVerticalAlignment adhocVerticalAlignment)
verticalAlignment.
|
public XmlAdhocConfiguration transform(AdhocConfiguration adhocConfiguration)
transform.
transform in interface IAdhocToXmlTransformadhocConfiguration - a AdhocConfiguration object.XmlAdhocConfiguration object.protected void properties(AdhocProperties properties, List<XmlAdhocProperty> xmlAdhocProperties)
properties.
properties - a AdhocProperties object.xmlAdhocProperties - a List object.protected XmlAdhocReport report(AdhocReport adhocReport)
report.
adhocReport - a AdhocReport object.XmlAdhocReport object.protected XmlAdhocColumn column(AdhocColumn adhocColumn)
column.
adhocColumn - a AdhocColumn object.XmlAdhocColumn object.protected XmlAdhocGroup group(AdhocGroup adhocGroup)
group.
adhocGroup - a AdhocGroup object.XmlAdhocGroup object.protected XmlAdhocGroupHeaderLayout groupHeaderLayout(AdhocGroupHeaderLayout adhocGroupHeaderLayout)
groupHeaderLayout.
adhocGroupHeaderLayout - a AdhocGroupHeaderLayout object.XmlAdhocGroupHeaderLayout object.protected XmlAdhocSubtotal subtotal(AdhocSubtotal adhocSubtotal)
subtotal.
adhocSubtotal - a AdhocSubtotal object.XmlAdhocSubtotal object.protected XmlAdhocCalculation calculation(AdhocCalculation adhocCalculation)
calculation.
adhocCalculation - a AdhocCalculation object.XmlAdhocCalculation object.protected XmlAdhocSubtotalPosition subtotalPosition(AdhocSubtotalPosition adhocSubtotalPosition)
subtotalPosition.
adhocSubtotalPosition - a AdhocSubtotalPosition object.XmlAdhocSubtotalPosition object.protected XmlAdhocSort sort(AdhocSort adhocSort)
sort.
adhocSort - a AdhocSort object.XmlAdhocSort object.protected XmlAdhocOrderType orderType(AdhocOrderType adhocOrderType)
orderType.
adhocOrderType - a AdhocOrderType object.XmlAdhocOrderType object.protected XmlAdhocStyle style(AdhocStyle adhocStyle)
style.
adhocStyle - a AdhocStyle object.XmlAdhocStyle object.protected XmlAdhocFont font(AdhocFont adhocFont)
font.
adhocFont - a AdhocFont object.XmlAdhocFont object.protected XmlAdhocPen pen(AdhocPen adhocPen)
pen.
adhocPen - a AdhocPen object.XmlAdhocPen object.protected XmlAdhocHorizontalAlignment horizontalAlignment(AdhocHorizontalAlignment adhocHorizontalAlignment)
horizontalAlignment.
adhocHorizontalAlignment - a AdhocHorizontalAlignment object.XmlAdhocHorizontalAlignment object.protected XmlAdhocVerticalAlignment verticalAlignment(AdhocVerticalAlignment adhocVerticalAlignment)
verticalAlignment.
adhocVerticalAlignment - a AdhocVerticalAlignment object.XmlAdhocVerticalAlignment object.protected XmlAdhocPage page(AdhocPage adhocPage)
page.
adhocPage - a AdhocPage object.XmlAdhocPage object.protected XmlAdhocPageOrientation pageOrientation(AdhocPageOrientation adhocPageOrientation)
pageOrientation.
adhocPageOrientation - a AdhocPageOrientation object.XmlAdhocPageOrientation object.protected XmlAdhocComponent component(AdhocComponent adhocComponent)
component.
adhocComponent - a AdhocComponent object.XmlAdhocComponent object.protected void component(AdhocComponent adhocComponent, XmlAdhocComponent xmlAdhocComponent)
component.
adhocComponent - a AdhocComponent object.xmlAdhocComponent - a XmlAdhocComponent object.protected void textField(AdhocTextField adhocTextField, XmlAdhocTextField xmlAdhocTextField)
textField.
adhocTextField - a AdhocTextField object.xmlAdhocTextField - a XmlAdhocTextField object.protected void chart(AdhocChart adhocChart, XmlAdhocChart xmlAdhocChart)
chart.
adhocChart - a AdhocChart object.xmlAdhocChart - a XmlAdhocChart object.protected XmlAdhocOrientation orientation(AdhocOrientation adhocOrientation)
orientation.
adhocOrientation - a AdhocOrientation object.XmlAdhocOrientation object.protected XmlAdhocAxisFormat axisFormat(AdhocAxisFormat adhocAxisFormat)
axisFormat.
adhocAxisFormat - a AdhocAxisFormat object.XmlAdhocAxisFormat object.protected XmlAdhocChartSerie chartSerie(AdhocChartSerie adhocChartSerie)
chartSerie.
adhocChartSerie - a AdhocChartSerie object.XmlAdhocChartSerie object.protected XmlAdhocChartType chartType(AdhocChartType adhocChartType)
chartType.
adhocChartType - a AdhocChartType object.XmlAdhocChartType object.protected XmlAdhocFilter filter(AdhocFilter adhocFilter)
filter.
adhocFilter - a AdhocFilter object.XmlAdhocFilter object.protected XmlAdhocRestriction restriction(AdhocRestriction adhocRestriction)
restriction.
adhocRestriction - a AdhocRestriction object.XmlAdhocRestriction object.protected void restriction(AdhocRestriction adhocRestriction, XmlAdhocRestriction xmlAdhocRestriction)
restriction.
adhocRestriction - a AdhocRestriction object.xmlAdhocRestriction - a XmlAdhocRestriction object.protected void valueRestriction(AdhocValueRestriction adhocValueRestriction, XmlAdhocValueRestriction xmlAdhocValueRestriction)
valueRestriction.
adhocValueRestriction - a AdhocValueRestriction object.xmlAdhocValueRestriction - a XmlAdhocValueRestriction object.protected XmlAdhocValueOperator valueOperator(AdhocValueOperator adhocValueOperator)
valueOperator.
adhocValueOperator - a AdhocValueOperator object.XmlAdhocValueOperator object.Copyright © 2010–2021. All rights reserved.