public class XMLEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
The Crimson parser wont do schema validation. NOTE: OLD AND CRUFTY
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATALOG_NAMESPACE_10 |
static java.lang.String |
CATGEN_NAMESPACE_05 |
static java.lang.String |
DQC_NAMESPACE_04 |
static org.jdom2.Namespace |
ncmlNS |
static java.lang.String |
NJ22_NAMESPACE |
static java.lang.String |
W3C_XML_NAMESPACE |
static java.lang.String |
XLINK_NAMESPACE |
static org.jdom2.Namespace |
xlinkNS |
static org.jdom2.Namespace |
xsiNS |
Constructor and Description |
---|
XMLEntityResolver(boolean validate) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDocumentBuilderFactoryVersion() |
java.lang.StringBuilder |
getErrorMessages() |
static java.lang.String |
getExternalSchemas() |
java.lang.StringBuilder |
getFatalMessages() |
org.jdom2.input.SAXBuilder |
getSAXBuilder() |
java.lang.StringBuilder |
getWarningMessages() |
static void |
initEntity(java.lang.String entityName,
java.lang.String resourceName,
java.lang.String urlName)
Add an entity for resolution.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
public static final java.lang.String W3C_XML_NAMESPACE
public static final java.lang.String CATALOG_NAMESPACE_10
public static final java.lang.String DQC_NAMESPACE_04
public static final java.lang.String CATGEN_NAMESPACE_05
public static final java.lang.String NJ22_NAMESPACE
public static final org.jdom2.Namespace ncmlNS
public static final java.lang.String XLINK_NAMESPACE
public static final org.jdom2.Namespace xlinkNS
public static final org.jdom2.Namespace xsiNS
public static java.lang.String getExternalSchemas()
public static void initEntity(java.lang.String entityName, java.lang.String resourceName, java.lang.String urlName)
entityName
- name of entity, eg the namespace StringresourceName
- resolve using this Resource, found on the class pathurlName
- resolve using this Resource, found on the class pathpublic static java.lang.String getDocumentBuilderFactoryVersion()
public org.jdom2.input.SAXBuilder getSAXBuilder()
public java.lang.StringBuilder getWarningMessages()
public java.lang.StringBuilder getErrorMessages()
public java.lang.StringBuilder getFatalMessages()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException