Package com.adobe.epubcheck.api
Class FeatureReport
- java.lang.Object
-
- com.adobe.epubcheck.api.FeatureReport
-
public final class FeatureReport extends java.lang.ObjectA 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 Classes Modifier and Type Class Description static classFeatureReport.FeatureA noteworthy feature in an EPUB Rendition (e.g.
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.SetMultimap<FeatureEnum,FeatureReport.Feature>features
-
Constructor Summary
Constructors Constructor Description FeatureReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<FeatureReport.Feature>getFeature(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, java.lang.String value)Add a new feature to this report.
-
-
-
Field Detail
-
features
private final com.google.common.collect.SetMultimap<FeatureEnum,FeatureReport.Feature> features
-
-
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)
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
public java.util.Set<FeatureReport.Feature> getFeature(FeatureEnum feature)
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.
-
-