All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.epubcheck.ctc.EpubMetaDataV2Check Maven / Gradle / Ivy

Go to download

EPUBCheck is a tool to validate the conformance of EPUB publications against the EPUB specifications. EPUBCheck can be run as a standalone command-line tool or used as a Java library.

There is a newer version: 5.2.1
Show newest version
package com.adobe.epubcheck.ctc;

import org.w3c.dom.Document;

import com.adobe.epubcheck.api.Report;
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;

/**
 *  ===  WARNING  ==========================================
* This class is scheduled to be refactored and integrated
* in another package.
* Please keep changes minimal (bug fixes only) until then.
* ========================================================
*/ public class EpubMetaDataV2Check implements DocumentValidator { private final Document doc; private final String pathRootFile; @SuppressWarnings("unused") private final Report report; public EpubMetaDataV2Check(EpubPackage epack, Report report) { this.doc = epack.getPackDoc(); this.pathRootFile = epack.getPackageMainFile(); this.report = report; } @Override public boolean validate() { return isMetaDataValid(doc, pathRootFile); } private boolean isMetaDataValid(Document doc, String pathRootFile) { return true; // no custom checks } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy