|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.creator.compiler.XmlCompilerResolver
Implement our own resolver to handle XML activities. For the most part, this is used to provide DTDs.
The default constructor assumes you do not want to log. If you use the other constructor, supply a valid CreatorLog and a log entry will be made for every resolve.
After construction, you need to register URIs to resolve. If the resolver encounters any URIs that are not registered, it will throw a SAXNotSupportedException exception. In this version, we assume that are resources are Strings. This should be easy to extend in the future.
EPG - Initial - 11Apr03
Method Summary | |
void |
register(java.lang.String uri,
java.lang.String text)
Register a resource as an entity. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String name,
java.lang.String uri)
overrides the resolver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void register(java.lang.String uri, java.lang.String text)
uri
- A string containing the textual entity to trap and resolve.text
- A string containing actual resource.public org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
name
- not implimented.uri
- Passed to this from the parser. We will trap
the uri.
org.xml.sax.SAXException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |