|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.utilities.xml.DefaultEntityResolver
public class DefaultEntityResolver
This Class is the ancestor of framework EntityResolver(s), which resolve schema references in XML documents and return an InputSource for the resolved entity.
Descendants of this class override the resolveEntity() method to resolve the systemID to a concrete location. The Parser will call resolveEntity() before opening any external entity. Usage: For parsing with DOM, use the setEntityResolver() method of the DocumentBuilder to set implementations of this Class as the EntityResolver. For Parsing with SAX, use the setEntityResolver() method of any of the framework's implementations of DefaultHandler, including SAXDefaultHandler, SAXMultipleElementHandler, and SAXXPathElementHandler to set implementations of this Class as the EntityResolver.
| Field Summary | |
|---|---|
protected boolean |
debugFlag
The debugFlag for this Object. |
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
namespaceURI
The namespace associated with the xmlText that is being parsed. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
DefaultEntityResolver()
Creates an instance of DefaultEntityResolver. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main method for testing and sandboxing. |
void |
reset()
Reset this resolver for another use. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicID,
java.lang.String systemID)
Called by a parser to resolve a reference to an external entity. |
void |
setDebugFlag(boolean debugFlag)
Set the debugFlag for this object. |
void |
setNamesapceURI(java.lang.String namespaceURI)
Set the namespaceURI associated with the xmlText that is being parsed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected java.lang.String namespaceURI
protected java.lang.String thisClassName
protected boolean debugFlag
| Constructor Detail |
|---|
public DefaultEntityResolver()
| Method Detail |
|---|
public org.xml.sax.InputSource resolveEntity(java.lang.String publicID,
java.lang.String systemID)
throws org.xml.sax.SAXException
resolveEntity in interface org.xml.sax.EntityResolverpublicID - The public identifier of the external entity being referenced.systemID - The system identifier, a URI reference of the external resource being referenced.
org.xml.sax.SAXExceptionpublic void setNamesapceURI(java.lang.String namespaceURI)
namespaceURI - The namespaceURI associated with the xmlText that
is being parsed.public void reset()
public void setDebugFlag(boolean debugFlag)
debugFlag - If true, debug messages are logged.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||