public class JhoveRepInfoReport
extends com.adobe.epubcheck.api.MasterReport
MasterReport. Its
purpose is to collect the properties needed to producing a JHOVE RepInfo
object while the EPUB is being validated.| Modifier and Type | Field and Description |
|---|---|
protected long |
charsCount |
protected Set<String> |
contributors |
protected String |
creationDate |
protected Set<String> |
creators |
protected String |
date |
protected Set<String> |
embeddedFonts |
protected List<com.adobe.epubcheck.reporting.CheckMessage> |
errors |
protected static String |
FALLBACK_FORMAT |
protected List<com.adobe.epubcheck.reporting.CheckMessage> |
fatalErrors |
protected String |
formatName |
protected String |
formatVersion |
protected String |
generationDate |
protected boolean |
hasAudio |
protected boolean |
hasEncryption |
protected boolean |
hasFixedLayout |
protected boolean |
hasScripts |
protected boolean |
hasSignatures |
protected boolean |
hasVideo |
protected List<com.adobe.epubcheck.reporting.CheckMessage> |
hints |
protected String |
identifier |
protected static String |
ISO_DATE_PATTERN |
protected String |
language |
protected String |
lastModifiedDate |
protected Set<String> |
mediaTypes |
protected long |
pagesCount |
protected String |
publisher |
protected Set<String> |
references |
protected Set<String> |
refFonts |
protected Set<String> |
resources |
protected Set<String> |
rights |
protected Set<String> |
subjects |
protected Set<String> |
titles |
protected List<com.adobe.epubcheck.reporting.CheckMessage> |
warns |
| Constructor and Description |
|---|
JhoveRepInfoReport(String ePubName) |
| Modifier and Type | Method and Description |
|---|---|
int |
generate() |
List<com.adobe.epubcheck.reporting.CheckMessage> |
getAllMessages()
Get all messages generated during validation
|
long |
getCharacterCount()
Get EPUB character count.
|
String[] |
getContributors()
Get EPUB contributors as string array.
|
Date |
getCreationDate()
Get EPUB file creation date
|
String[] |
getCreators()
Get EPUB creators as string array
|
String |
getDate()
Get EPUB publication date
|
Set<String> |
getEmbeddedFonts()
Get EPUB embedded fonts
|
int |
getErrorCount() |
int |
getFatalErrorCount() |
Set<String> |
getFeatures()
Get set of features identified in the EPUB
|
String |
getFormat()
Get format of file validated (application/octet-stream if not an EPUB)
|
String |
getIdentifier()
Get EPUB identifier.
|
String |
getLanguage()
Get EPUB language.
|
Date |
getLastModifiedDate()
Get EPUB file last modified date
|
String[] |
getMediaTypes()
Get list of media types present in the EPUB package
|
long |
getPageCount()
Get EPUB page count.
|
String |
getPublisher()
Get EPUB publisher
|
String[] |
getReferences()
Get all EPUB references - this array includes both referenced and embedded
material.
|
Set<String> |
getRefFonts()
Get EPUB referenced fonts - these fonts are not embedded
|
String[] |
getResources()
Get a list of all EPUB resources - files that are either stored in the EPUB
package or else stored outside of the EPUB but used as a key component e.g.
|
String[] |
getRights()
Get EPUB rights statements as string array
|
String[] |
getSubjects()
Get EPUB subject headings
|
String[] |
getTitles()
Get EPUB titles as string array
|
int |
getUsageCount() |
String |
getVersion()
Get EPUB version validated against - EPUBcheck will use the most recent minor
release version for the EPUB's major version e.g.
|
int |
getWarningCount() |
void |
info(String resource,
com.adobe.epubcheck.util.FeatureEnum feature,
String value) |
void |
initialize() |
void |
message(com.adobe.epubcheck.messages.Message message,
com.adobe.epubcheck.api.EPUBLocation location,
Object... args) |
protected String generationDate
protected String creationDate
protected String lastModifiedDate
protected String identifier
protected String publisher
protected String date
protected String formatName
protected String formatVersion
protected long pagesCount
protected long charsCount
protected String language
protected boolean hasEncryption
protected boolean hasSignatures
protected boolean hasAudio
protected boolean hasVideo
protected boolean hasFixedLayout
protected boolean hasScripts
protected List<com.adobe.epubcheck.reporting.CheckMessage> warns
protected List<com.adobe.epubcheck.reporting.CheckMessage> errors
protected List<com.adobe.epubcheck.reporting.CheckMessage> fatalErrors
protected List<com.adobe.epubcheck.reporting.CheckMessage> hints
protected static final String ISO_DATE_PATTERN
protected static final String FALLBACK_FORMAT
public JhoveRepInfoReport(String ePubName)
public void message(com.adobe.epubcheck.messages.Message message,
com.adobe.epubcheck.api.EPUBLocation location,
Object... args)
public Date getCreationDate()
public Date getLastModifiedDate()
public String getFormat()
public String getVersion()
public List<com.adobe.epubcheck.reporting.CheckMessage> getAllMessages()
public long getPageCount()
public long getCharacterCount()
public String getLanguage()
public String getIdentifier()
public String[] getTitles()
public String[] getCreators()
public String[] getContributors()
public String getDate()
public String getPublisher()
public String[] getSubjects()
public String[] getRights()
public Set<String> getRefFonts()
public String[] getReferences()
public String[] getResources()
public String[] getMediaTypes()
public int getErrorCount()
getErrorCount in interface com.adobe.epubcheck.api.ReportgetErrorCount in class com.adobe.epubcheck.api.MasterReportpublic int getWarningCount()
getWarningCount in interface com.adobe.epubcheck.api.ReportgetWarningCount in class com.adobe.epubcheck.api.MasterReportpublic int getFatalErrorCount()
getFatalErrorCount in interface com.adobe.epubcheck.api.ReportgetFatalErrorCount in class com.adobe.epubcheck.api.MasterReportpublic int getUsageCount()
getUsageCount in interface com.adobe.epubcheck.api.ReportgetUsageCount in class com.adobe.epubcheck.api.MasterReportpublic int generate()
public void initialize()
Copyright © 2008–2021 The Open Preservation Foundation. All rights reserved.