Class MasterReport
java.lang.Object
com.adobe.epubcheck.api.MasterReport
- All Implemented Interfaces:
LocalizableReport, Report
- Direct Known Subclasses:
CheckingReport, DefaultReportImpl, QuietReport, WriterReportImpl, XmlReportAbstract
Reports are derived from this so that we can test for message Id coverage as
well as have a centralized location for severity reporting level testing.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringprivate MessageDictionaryprivate Stringprivate intprivate intprivate intprivate Messagesprivate intprivate intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a report with a newMessagesinstance and sets the locale held inLocaleHolderto the default locale.protectedMasterReport(boolean setLocale) Creates a report with a newMessagesinstance and sets the locale held inLocaleHolderto the default locale only if the given flag istrue. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintintGets the locale to use in the report's messagesintintintvoidmessage(MessageId id, EPUBLocation location, Object... args) Called when a violation of the standard is found in epub.private voidvoidsetCustomMessageFile(String customMessageFileName) voidsetEpubFileName(String value) voidSets the locale to use in the report's messagesvoidsetOverrideFile(File overrideFile) voidsetReportingLevel(int reportingLevel) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Report
generate, info, initialize, message
-
Field Details
-
allReportedMessageIds
-
errorCount
private int errorCount -
warningCount
private int warningCount -
fatalErrorCount
private int fatalErrorCount -
usageCount
private int usageCount -
infoCount
private int infoCount -
reportingLevel
private int reportingLevel -
ePubName
-
dictionary
-
messages
-
customMessageFileName
String customMessageFileName
-
-
Constructor Details
-
MasterReport
protected MasterReport()Creates a report with a newMessagesinstance and sets the locale held inLocaleHolderto the default locale. -
MasterReport
protected MasterReport(boolean setLocale) Creates a report with a newMessagesinstance and sets the locale held inLocaleHolderto the default locale only if the given flag istrue.- Parameters:
setLocale- whether to update the locale held inLocaleHolder
-
-
Method Details
-
getDictionary
- Specified by:
getDictionaryin interfaceReport
-
setLocale
Description copied from interface:LocalizableReportSets the locale to use in the report's messages- Specified by:
setLocalein interfaceLocalizableReport
-
getLocale
Description copied from interface:LocalizableReportGets the locale to use in the report's messages- Specified by:
getLocalein interfaceLocalizableReport
-
getMessages
-
setOverrideFile
- Specified by:
setOverrideFilein interfaceReport
-
reportMessageId
-
message
Description copied from interface:ReportCalled when a violation of the standard is found in epub. -
setCustomMessageFile
- Specified by:
setCustomMessageFilein interfaceReport
-
getCustomMessageFile
- Specified by:
getCustomMessageFilein interfaceReport
-
getReportingLevel
public int getReportingLevel()- Specified by:
getReportingLevelin interfaceReport
-
setReportingLevel
public void setReportingLevel(int reportingLevel) - Specified by:
setReportingLevelin interfaceReport
-
getEpubFileName
- Specified by:
getEpubFileNamein interfaceReport
-
setEpubFileName
- Specified by:
setEpubFileNamein interfaceReport
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfaceReport
-
getWarningCount
public int getWarningCount()- Specified by:
getWarningCountin interfaceReport
-
getFatalErrorCount
public int getFatalErrorCount()- Specified by:
getFatalErrorCountin interfaceReport
-
getInfoCount
public int getInfoCount()- Specified by:
getInfoCountin interfaceReport
-
getUsageCount
public int getUsageCount()- Specified by:
getUsageCountin interfaceReport
-
close
-