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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classprotected static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Patternstatic final Stringstatic final Patternstatic final Stringprotected List<ContentInliner>Chain of responsibility for content inlinersprotected DefaultFormatProviderprotected GroovyScriptParametersProviderprotected OutputStreamprotected ReportOutputTypeprotected ReportTemplateprotected BandDataprotected Scriptingstatic final Stringstatic final Stringprotected Set<ReportOutputType>static final Patternstatic final Stringstatic final String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractFormatter(FormatterFactoryInput formatterFactoryInput) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringapplyStringFunction(String valueString, String stringFunction) voidprotected booleancontainsJustOneAlias(String value) byte[]Creates document and put it into byte arrayprotected StringdefaultFormat(Object value) protected BandDatafindBandByPath(String path) protected StringformatValue(Object value, String parameterName, String fullParameterName) protected StringformatValue(Object value, String parameterName, String fullParameterName, String stringFunction) getAllAliases(String value) protected AbstractFormatter.InlinerAndMatchergetContentInlinerForFormat(String formatString) protected StringgetFormatString(String parameterName, String fullParameterName) protected StringgetFullParameterName(BandData bandData, String parameterName) protected StringinlineParameterValue(String template, String parameterName, String value) protected StringinsertBandDataToString(BandData bandData, String resultStr) protected BooleanisGroovyScript(String parameterName, String fullParameterName) voidsetContentInliners(List<ContentInliner> contentInliners) voidsetDefaultFormatProvider(DefaultFormatProvider defaultFormatProvider) voidsetScripting(Scripting scripting) protected StringunwrapParameterName(String nameWithAlias) protected ReportFormattingExceptionwrapWithReportingException(String message) protected ReportingExceptionwrapWithReportingException(String message, Exception e) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.reports.yarg.formatters.ReportFormatterrenderDocument
- 
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
- 
groovyScriptParametersProvider
- 
scripting
- 
contentInlinersChain of responsibility for content inliners
 
- 
- 
Constructor Details- 
AbstractFormatter
 
- 
- 
Method Details- 
setScripting
- 
createDocumentpublic byte[] createDocument()Description copied from interface:ReportFormatterCreates document and put it into byte array- Specified by:
- createDocumentin interface- ReportFormatter
 
- 
getContentInliners
- 
setContentInliners
- 
setDefaultFormatProvider
- 
unwrapParameterName
- 
formatValue
- 
formatValue
- 
getFormatString
- 
isGroovyScript
- 
applyStringFunction
- 
defaultFormat
- 
insertBandDataToString
- 
getFullParameterName
- 
inlineParameterValue
- 
containsJustOneAlias
- 
getAllAliases
- 
findBandByPath
- 
separateBandNameAndParameterName
- 
wrapWithReportingException
- 
wrapWithReportingException
- 
getContentInlinerForFormat
- 
checkThreadInterruptedpublic void checkThreadInterrupted()
 
-