Interface ArchiveRule

All Known Implementing Classes:
AnnotationRule, AttachmentRule, AudioVideoRule, ClipAreaRule, ColorProfileRule, ColorSpaceRule, DocTypeRule, ExtensionRule, ExternalResourceRule, FontSubsetRule, ImageExtensionRule, ImageFormatRule, ImageInterpolateRule, ImageResourceRegRule, NonGotoActionRule, OutlineActionRule, PageBlockDepthRule, PermissionRule, ResourcePlacementRule, SignatureRule, SingleDocRule, TextHScaleRule, TextSizeRule
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArchiveRule
OFD-A 检查规则

每条规则验证 OFD 文档的某一个约束是否满足 GB/T 42133-2022 标准。 规则实现应为无状态,允许多次调用。

实现类命名格式: XxxRule,与对应的处理器(XxxHandler)对应。

Since:
2.4.0
Author:
权观宇
  • Method Summary

    Modifier and Type
    Method
    Description
    check(OFDReader reader, org.ofdrw.pkg.container.OFDDir ofdDir)
    对打开的 OFD 文档执行检查
  • Method Details

    • check

      List<ArchiveViolation> check(OFDReader reader, org.ofdrw.pkg.container.OFDDir ofdDir)
      对打开的 OFD 文档执行检查

      检查过程只读,不修改文档内容。

      Parameters:
      reader - OFD 阅读器,提供资源、页面、附件等高级访问能力
      ofdDir - OFD 虚拟容器,提供低级的文件和目录操作
      Returns:
      发现的违规项列表(非 null),文档合规时返回空列表