Class FeatureReport
java.lang.Object
com.adobe.epubcheck.api.FeatureReport
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA noteworthy feature in an EPUB Rendition (e.g. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.SetMultimap<FeatureEnum, FeatureReport.Feature> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(FeatureEnum feature) Returns the set ofFeatureReport.Featurestored in this report for the given feature name.booleanhasFeature(FeatureEnum feature) Returnstrueiff this reports contains data for a feature name.voidreport(FeatureEnum name, EPUBLocation location) Add a new feature to this report.voidreport(FeatureEnum name, EPUBLocation location, String value) Add a new feature to this report.
-
Field Details
-
features
-
-
Constructor Details
-
FeatureReport
public FeatureReport()
-
-
Method Details
-
report
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
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
Returnstrueiff this reports contains data for a feature name.- Parameters:
feature- the feature name to look-up- Returns:
trueiff this reports contains data for a feature name.
-
getFeature
Returns the set ofFeatureReport.Featurestored in this report for the given feature name.- Parameters:
feature- the feature name to look-up- Returns:
- the (possibly empty) set of
FeatureReport.Featurestored in this report for the given feature name.
-