org.netarchivesuite.heritrix3wrapper.xmlutils.XmlValidationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heritrix3-wrapper Show documentation
Show all versions of heritrix3-wrapper Show documentation
Wrapper library for unpacking and communicating with Heritrix 3.
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;
}
}