Class AbstractFormatter
java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
- All Implemented Interfaces:
ReportFormatter
- Direct Known Subclasses:
ChartFormatter
,CsvFormatter
,DocFormatter
,DocxFormatter
,HtmlFormatter
,JasperFormatter
,JmixTableFormatter
,PivotTableFormatter
,XLSFormatter
,XlsxFormatter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final Pattern
static final String
static final Pattern
static final String
protected List<ContentInliner>
Chain of responsibility for content inlinersprotected JmixFieldFormatProvider
protected OutputStream
protected ReportOutputType
protected ReportTemplate
protected BandData
protected Scripting
static final String
static final String
protected Set<ReportOutputType>
static final Pattern
static final String
static final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractFormatter
(FormatterFactoryInput formatterFactoryInput) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
applyStringFunction
(String valueString, String stringFunction) void
protected boolean
containsJustOneAlias
(String value) byte[]
Creates document and put it into byte arrayprotected String
defaultFormat
(Object value) protected BandData
findBandByPath
(String path) protected String
formatValue
(Object value, String parameterName, String fullParameterName) protected String
formatValue
(Object value, String parameterName, String fullParameterName, String stringFunction) getAllAliases
(String value) protected AbstractFormatter.InlinerAndMatcher
getContentInlinerForFormat
(String formatString) protected String
getFormatString
(String parameterName, String fullParameterName) protected String
inlineParameterValue
(String template, String parameterName, String value) protected String
insertBandDataToString
(BandData bandData, String resultStr) protected Boolean
isGroovyScript
(String parameterName, String fullParameterName) void
setContentInliners
(List<ContentInliner> contentInliners) void
setDefaultFormatProvider
(JmixFieldFormatProvider defaultFormatProvider) void
setScripting
(Scripting scripting) protected String
unwrapParameterName
(String nameWithAlias) protected ReportFormattingException
wrapWithReportingException
(String message) protected ReportingException
wrapWithReportingException
(String message, Exception e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.reports.yarg.formatters.ReportFormatter
renderDocument
-
Field Details
-
SIMPLE_ALIAS_REGEXP
- See Also:
-
ALIAS_GROUP
- See Also:
-
STRING_FUNCTION_GROUP
- See Also:
-
UNIVERSAL_ALIAS_REGEXP
- See Also:
-
ALIAS_WITH_BAND_NAME_REGEXP
- See Also:
-
BAND_NAME_DECLARATION_REGEXP
- See Also:
-
UNIVERSAL_ALIAS_PATTERN
-
ALIAS_WITH_BAND_NAME_PATTERN
-
BAND_NAME_DECLARATION_PATTERN
-
VALUE
- See Also:
-
rootBand
-
reportTemplate
-
outputType
-
outputStream
-
supportedOutputTypes
-
defaultFormatProvider
-
scripting
-
contentInliners
Chain of responsibility for content inliners
-
-
Constructor Details
-
AbstractFormatter
-
-
Method Details
-
setScripting
-
createDocument
public byte[] createDocument()Description copied from interface:ReportFormatter
Creates document and put it into byte array- Specified by:
createDocument
in interfaceReportFormatter
-
getContentInliners
-
setContentInliners
-
setDefaultFormatProvider
-
unwrapParameterName
-
formatValue
-
formatValue
-
getFormatString
-
isGroovyScript
-
applyStringFunction
-
defaultFormat
-
insertBandDataToString
-
inlineParameterValue
-
containsJustOneAlias
-
getAllAliases
-
findBandByPath
-
separateBandNameAndParameterName
-
wrapWithReportingException
-
wrapWithReportingException
-
getContentInlinerForFormat
-
checkThreadInterrupted
public void checkThreadInterrupted()
-