thredds.catalog
Class XMLEntityResolver
java.lang.Object
thredds.catalog.XMLEntityResolver
- All Implemented Interfaces:
- EntityResolver
public class XMLEntityResolver
- extends Object
- implements EntityResolver
Handles the interaction with JAXP, resolving dtd, schemas locally if possible.
Get a javax.xml.parsers.DocumentBuilder from here, allows you to validate or not.
The Crimson parser wont do schema validation.
- Author:
- John Caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
W3C_XML_NAMESPACE
public static final String W3C_XML_NAMESPACE
- See Also:
- Constant Field Values
CATALOG_NAMESPACE_06
public static final String CATALOG_NAMESPACE_06
- See Also:
- Constant Field Values
CATALOG_NAMESPACE_10
public static final String CATALOG_NAMESPACE_10
- See Also:
- Constant Field Values
DQC_NAMESPACE_02
public static final String DQC_NAMESPACE_02
- See Also:
- Constant Field Values
DQC_NAMESPACE_03
public static final String DQC_NAMESPACE_03
- See Also:
- Constant Field Values
DQC_NAMESPACE_04
public static final String DQC_NAMESPACE_04
- See Also:
- Constant Field Values
CATGEN_NAMESPACE_05
public static final String CATGEN_NAMESPACE_05
- See Also:
- Constant Field Values
NJ22_NAMESPACE
public static final String NJ22_NAMESPACE
- See Also:
- Constant Field Values
XLINK_NAMESPACE
public static final String XLINK_NAMESPACE
- See Also:
- Constant Field Values
xlinkNS
public static final org.jdom.Namespace xlinkNS
xsiNS
public static final org.jdom.Namespace xsiNS
XMLEntityResolver
public XMLEntityResolver(boolean validate)
getExternalSchemas
public static String getExternalSchemas()
initEntity
public static void initEntity(String entityName,
String resourceName,
String urlName)
- Add an entity for resolution. Specify a local resource, and/or a URL. Look
for the local Resource first.
- Parameters:
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 path
getDocumentBuilderFactoryVersion
public static String getDocumentBuilderFactoryVersion()
getSAXBuilder
public org.jdom.input.SAXBuilder getSAXBuilder()
getWarningMessages
public StringBuilder getWarningMessages()
getErrorMessages
public StringBuilder getErrorMessages()
getFatalMessages
public StringBuilder getFatalMessages()
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.