Class MasterReport

    • Field Detail

      • allReportedMessageIds

        public static java.util.Set<MessageId> 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

        private java.lang.String ePubName
      • customMessageFileName

        java.lang.String customMessageFileName
    • Constructor Detail

      • MasterReport

        protected MasterReport()
        Creates a report with a new Messages instance and sets the locale held in LocaleHolder to the default locale.
      • MasterReport

        protected MasterReport​(boolean setLocale)
        Creates a report with a new Messages instance and sets the locale held in LocaleHolder to the default locale only if the given flag is true.
        Parameters:
        setLocale - whether to update the locale held in LocaleHolder
    • Method Detail

      • setLocale

        public void setLocale​(java.util.Locale locale)
        Description copied from interface: LocalizableReport
        Sets the locale to use in the report's messages
        Specified by:
        setLocale in interface LocalizableReport
      • getMessages

        public Messages getMessages()
      • setOverrideFile

        public void setOverrideFile​(java.io.File overrideFile)
        Specified by:
        setOverrideFile in interface Report
      • reportMessageId

        private void reportMessageId​(MessageId id)
      • message

        public void message​(MessageId id,
                            EPUBLocation location,
                            java.lang.Object... args)
        Description copied from interface: Report
        Called when a violation of the standard is found in epub.
        Specified by:
        message in interface Report
        Parameters:
        id - Id of the message being reported
        location - location information for the message
        args - Arguments referenced by the format string for the message.
      • setCustomMessageFile

        public void setCustomMessageFile​(java.lang.String customMessageFileName)
        Specified by:
        setCustomMessageFile in interface Report
      • setReportingLevel

        public void setReportingLevel​(int reportingLevel)
        Specified by:
        setReportingLevel in interface Report
      • getEpubFileName

        public java.lang.String getEpubFileName()
        Specified by:
        getEpubFileName in interface Report
      • setEpubFileName

        public void setEpubFileName​(java.lang.String value)
        Specified by:
        setEpubFileName in interface Report
      • getInfoCount

        public int getInfoCount()
        Specified by:
        getInfoCount in interface Report
      • close

        public void close()
        Specified by:
        close in interface Report