Class FeatureReport


  • public final class FeatureReport
    extends java.lang.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.
    • Constructor Detail

      • FeatureReport

        public FeatureReport()
    • Method Detail

      • 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,
                           java.lang.String value)
        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)
        value - The value 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.