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

org.netarchivesuite.heritrix3wrapper.xmlutils.XmlValidationResult Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package org.netarchivesuite.heritrix3wrapper.xmlutils;

import java.util.LinkedList;
import java.util.List;

import org.w3c.dom.Document;

/**
 * A class containing various information produced by the XML validator.
 */
public class XmlValidationResult {

    /** Parsed XML document. */
    public Document document = null;

    /** XML document systemId, sometimes referred to as the DTD. */
    public String systemId = null;

    /** xmlns:xsi namespace(s). */
    public List xsiNamespaces = new LinkedList();

    /** Schemas referred to in the XML document. */
    public List schemas = new LinkedList();

    /** Does the document refer to a DTD. */
    public boolean bDtdUsed = false;

    /** Does the document refer to any XSD. */
    public boolean bXsdUsed = false;

    /** Is the document wellformed. */
    public boolean bWellformed = false;

    /** Was the document successfully validated against DTD/XSD. */
    public boolean bValid = false;

    /**
     * Reset fields.
     */
    public void reset() {
        document = null;
        systemId = null;
        xsiNamespaces.clear();
        schemas.clear();
        bDtdUsed = false;
        bXsdUsed = false;
        bWellformed = false;
        bValid = false;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy