1 package org.wamblee.xmlrouter.config;
3 import javax.xml.transform.dom.DOMSource;
5 public interface DocumentType {
8 * Symbolic name for the document type.
14 * Checks if a document is of the given type.
15 * @param aSource Document
16 * @return True iff the document is of the given type.
18 boolean isInstance(DOMSource aSource);
21 * Validates the document. Implementations that do not validate should simply
23 * @param aSource Document.
24 * @return True iff the document is valid.
26 boolean validate(DOMSource aSource);