Skip to content

Commit

Permalink
Added warning about reimplementation to classes in package ctc. (#812)
Browse files Browse the repository at this point in the history
* Added deprecation notice to package.

* Added warnings to all classes about refactoring.

* Changed formatting for javadoc
  • Loading branch information
kalaspuffar authored and tofi86 committed Feb 28, 2018
1 parent befd9fc commit 7eafa7b
Show file tree
Hide file tree
Showing 48 changed files with 337 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/CheckManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.util.EPUBVersion;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class CheckManager
{
private final EpubPackage epack;
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/adobe/epubcheck/ctc/ContentValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;


/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public interface ContentValidator
{
public enum ValidationType
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EntitySearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
import com.adobe.epubcheck.ocf.EncryptionFilter;
import com.adobe.epubcheck.util.EPUBVersion;

/**
* === WARNING ==========================================
* This class is scheduled to be refactored and integrated
* in another package.
* Please keep changes minimal (bug fixes only) until then.
* ========================================================
*/
class EntitySearch extends TextSearch
{
static final Pattern entityPattern = Pattern.compile("&([A-Za-z0-9]+)([;|\\s])");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class Epub3StructureCheck implements DocumentValidator
{
private final Report report;
Expand All @@ -22,7 +29,6 @@ public Epub3StructureCheck(EpubPackage epack, Report report)
this.epack = epack;
}


@Override
public boolean validate()
{
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubCSSCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;
import com.adobe.epubcheck.util.TextSearchDictionaryEntry;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubCSSCheck implements DocumentValidator
{
final ZipFile zip;
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/adobe/epubcheck/ctc/EpubCfiCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;


/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubCfiCheck implements DocumentValidator
{
private final Report report;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubCheckContentFactory implements ContentValidator
{
static private final EpubCheckContentFactory instance = new EpubCheckContentFactory();
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/adobe/epubcheck/ctc/EpubExtLinksCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;
import com.adobe.epubcheck.util.TextSearchDictionaryEntry;


/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubExtLinksCheck implements DocumentValidator
{
private final Report report;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubHTML5StructureCheck implements DocumentValidator
{
static final int hasHtml = 1;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubLangCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubLangCheck implements DocumentValidator
{
private final ZipFile zip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubMetaDataV2Check implements DocumentValidator
{
private final Document doc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
import com.adobe.epubcheck.ctc.epubpackage.EpubPackage;
import com.adobe.epubcheck.opf.DocumentValidator;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubMetaDataV3Check implements DocumentValidator
{

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubNCXCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
import com.adobe.epubcheck.util.FeatureEnum;
import com.adobe.epubcheck.util.PathUtil;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubNCXCheck implements DocumentValidator
{
private final XmlDocParser docParser;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubNavCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
import com.adobe.epubcheck.util.HandlerUtil;
import com.adobe.epubcheck.util.PathUtil;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubNavCheck implements DocumentValidator
{

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubRenditionCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubRenditionCheck implements DocumentValidator
{
private final Document doc;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubSVGCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
import com.adobe.epubcheck.opf.DocumentValidator;
import com.adobe.epubcheck.util.SearchDictionary;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubSVGCheck implements DocumentValidator
{
private static final String svgNS = "http://www.w3.org/2000/svg";
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubScriptCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubScriptCheck implements DocumentValidator
{
private final ZipFile zip;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubSpanCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubSpanCheck implements DocumentValidator
{
private final ZipFile zip;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubSpineCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubSpineCheck implements DocumentValidator
{
private static final int MAX_SPINE_ITEM_THRESHOLD = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;


/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubStyleSheetsCheck implements DocumentValidator
{
private final Report report;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
import com.adobe.epubcheck.util.SearchDictionary;
import com.adobe.epubcheck.util.SearchDictionary.DictionaryType;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubTextContentCheck implements DocumentValidator
{
private final Report report;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/EpubTocCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
import com.adobe.epubcheck.opf.DocumentValidator;
import com.adobe.epubcheck.util.EPUBVersion;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class EpubTocCheck implements DocumentValidator
{
private final String pathRootFile;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/FileLinkSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
import java.util.regex.Pattern;
import java.util.zip.ZipFile;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class FileLinkSearch extends TextSearch {
private static final Pattern fileLinkPattern = Pattern.compile("href=[\"']file://");

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/PackageReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
import com.adobe.epubcheck.util.EPUBVersion;
import com.adobe.epubcheck.util.EpubConstants;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
class PackageReader
{
private static final String containerEntry = "META-INF/container.xml";
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/TextSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
abstract class TextSearch {
private final Hashtable<String, EncryptionFilter> enc;
final ZipFile zip;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/XmlDocParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
import com.adobe.epubcheck.util.EpubConstants;
import com.adobe.epubcheck.util.NamespaceHelper;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
class XmlDocParser
{
private final ZipFile zip;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/ctc/css/CSSSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
import javax.xml.stream.Location;
import java.util.HashMap;

/**
* === WARNING ==========================================<br/>
* This class is scheduled to be refactored and integrated<br/>
* in another package.<br/>
* Please keep changes minimal (bug fixes only) until then.<br/>
* ========================================================<br/>
*/
public class CSSSelector
{
private final String name;
Expand Down
Loading

0 comments on commit 7eafa7b

Please sign in to comment.