Class FeatureReport

java.lang.Object
com.adobe.epubcheck.api.FeatureReport

public final class FeatureReport extends Object
A feature report holds a list of noteworthy EPUB features. Features are typically reported by handlers at parsing time. The report can be looked-up after the parsing phase to enable checks that depend on conditions spanning over multiple documents.
  • Field Details

  • Constructor Details

    • FeatureReport

      public FeatureReport()
  • Method Details

    • report

      public void report(FeatureEnum name, EPUBLocation location)
      Add a new feature to this report.
      Parameters:
      name - The name of the feature (must not be null)
      path - The location of the feature (can be null)
    • report

      public void report(FeatureEnum name, EPUBLocation location, String value)
      Add a new feature to this report.
      Parameters:
      name - The name of the feature (must not be null)
      value - The value of the feature (can be null)
      path - The location of the feature (can be null)
    • hasFeature

      public boolean hasFeature(FeatureEnum feature)
      Returns true iff this reports contains data for a feature name.
      Parameters:
      feature - the feature name to look-up
      Returns:
      true iff this reports contains data for a feature name.
    • getFeature

      public Set<FeatureReport.Feature> getFeature(FeatureEnum feature)
      Returns the set of FeatureReport.Feature stored in this report for the given feature name.
      Parameters:
      feature - the feature name to look-up
      Returns:
      the (possibly empty) set of FeatureReport.Feature stored in this report for the given feature name.