Package io.jmix.reports.yarg.reporting
Class StreamingReportValidator
java.lang.Object
io.jmix.reports.yarg.reporting.StreamingReportValidator
Validates the band structure of a report that uses a streaming band against the restrictions of the
streaming XLSX engine. Shared by the rendering engine (
Reporting) and the report designer UI,
so an unsupported structure is rejected identically at save time and at run time.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectNonHorizontalBands(ReportBand band, List<StreamingReportValidator.Violation> violations) protected voidcollectStreamingBands(ReportBand band, List<ReportBand> streamingBands) protected booleanisStreamingCapable(@Nullable String loaderType, ReportLoaderFactory loaderFactory) validate(ReportBand rootBand, ReportLoaderFactory loaderFactory) Returns the violations of the streaming engine's restrictions, or an empty list when the report either has no streaming band or satisfies all of them.protected voidvalidateStreamingBand(ReportBand band, ReportLoaderFactory loaderFactory, List<StreamingReportValidator.Violation> violations)
-
Constructor Details
-
StreamingReportValidator
public StreamingReportValidator()
-
-
Method Details
-
validate
public List<StreamingReportValidator.Violation> validate(ReportBand rootBand, ReportLoaderFactory loaderFactory) Returns the violations of the streaming engine's restrictions, or an empty list when the report either has no streaming band or satisfies all of them. -
collectStreamingBands
-
validateStreamingBand
protected void validateStreamingBand(ReportBand band, ReportLoaderFactory loaderFactory, List<StreamingReportValidator.Violation> violations) -
isStreamingCapable
protected boolean isStreamingCapable(@Nullable String loaderType, ReportLoaderFactory loaderFactory) -
collectNonHorizontalBands
protected void collectNonHorizontalBands(ReportBand band, List<StreamingReportValidator.Violation> violations)
-