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
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Patternstatic final Stringstatic final Patternstatic final Stringprotected List<ContentInliner>Chain of responsibility for content inlinersprotected DefaultFormatProviderprotected OutputStreamprotected ReportOutputTypeprotected ReportTemplateprotected BandDataprotected Scriptingstatic final Stringstatic final Stringprotected Set<ReportOutputType>static final Patternstatic final Stringstatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFormatter(FormatterFactoryInput formatterFactoryInput) -
Method Summary
Modifier 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 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ReportFormatterCreates document and put it into byte array- Specified by:
createDocumentin interfaceReportFormatter
-
getContentInliners
-
setContentInliners
-
setDefaultFormatProvider
-
unwrapParameterName
-
formatValue
-
formatValue
-
getFormatString
-
isGroovyScript
-
applyStringFunction
-
defaultFormat
-
insertBandDataToString
-
inlineParameterValue
-
containsJustOneAlias
-
getAllAliases
-
findBandByPath
-
separateBandNameAndParameterName
-
wrapWithReportingException
-
wrapWithReportingException
-
getContentInlinerForFormat
-
checkThreadInterrupted
public void checkThreadInterrupted()
-