MCPcopy Create free account
hub / github.com/w3c/epubcheck / message

Method message

src/main/java/com/adobe/epubcheck/api/MasterReport.java:100–131  ·  view source on GitHub ↗
(MessageId id, EPUBLocation location, Object... args)

Source from the content-addressed store, hash-verified

98 }
99
100 @Override
101 public void message(MessageId id, EPUBLocation location, Object... args)
102 {
103 Message message = getDictionary().getMessage(id);
104 assert (message != null);
105 Severity severity = message.getSeverity();
106 if (ReportingLevel.getReportingLevel(severity) >= getReportingLevel())
107 {
108 if (severity.equals(Severity.ERROR))
109 {
110 errorCount++;
111 }
112 else if (severity.equals(Severity.WARNING))
113 {
114 warningCount++;
115 }
116 else if (severity.equals(Severity.FATAL))
117 {
118 fatalErrorCount++;
119 }
120 else if (severity.equals(Severity.USAGE))
121 {
122 usageCount++;
123 }
124 else if (severity.equals(Severity.INFO))
125 {
126 infoCount++;
127 }
128 this.message(message, location, args);
129 }
130 reportMessageId(id);
131 }
132
133 @Override
134 public void setCustomMessageFile(String customMessageFileName)

Callers

nothing calls this directly

Calls 7

getDictionaryMethod · 0.95
getSeverityMethod · 0.95
getReportingLevelMethod · 0.95
getReportingLevelMethod · 0.95
reportMessageIdMethod · 0.95
getMessageMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected