|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.lib.JEntityResolver
public class JEntityResolver
This class defines the entity resolver used to resolve DTDs/Schemas during the xml parsing
Constructor Summary | |
---|---|
JEntityResolver()
Constructor without JDigester instance (used in WsGen only) |
Method Summary | |
---|---|
void |
addDtds(DTDs dtds)
Add the mapping between a public Id and the local path of the DTD |
void |
addSchemas(Schemas schemas)
Add the given Schemas to the schemas available for this resolver |
InputSource |
resolveEntity(String publicId,
String systemId)
The Parser will call this method before opening any external entity except the top-level document entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JEntityResolver()
Method Detail |
---|
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
publicId
- The public identifier of the external entity being referenced,
or null if none was supplied.systemId
- The system identifier of the external entity being referenced.
SAXException
- Any SAX exception, possibly wrapping another exception.
IOException
- A Java-specific IO exception, possibly the result of creating
a new InputStream or Reader for the InputSource.public void addDtds(DTDs dtds)
dtds
- Object containing the mapping PublicId --> Local URLpublic void addSchemas(Schemas schemas)
schemas
- Definition of the schemas to add to this resolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |