|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.validation.EntityResolver
public class EntityResolver
Specific grammar resolver for eXist. Currently supports XSD and DTD. XML Schemas and DTD grammars are stored in collections of the database: /db/system/grammar/xsd /db/system/grammar/dtd The XSD's are resolved automatically using xQuery. For DTD's (hey this is ancient stuff, these are no xml documents) separate data management is required. The details are stored in /db/system/grammar/dtd/catalog/xml Extra bonus: an xQuery generating a catalogus with DTD's and XSD's /db/system/grammar/xq/catalog.xq
NOTES
=====
- Keep list called grammar id's. For first grammar the base URI must be set.
other grammars must be found relative, unless full path is used.
- If not schema but folder is supplied, use this folder as startpoint search
grammar set
-| Constructor Summary | |
|---|---|
EntityResolver(DatabaseResources resources)
Initialize EntityResolver. |
|
| Method Summary | |
|---|---|
XMLInputSource |
resolveEntity(XMLResourceIdentifier xrid)
Resolve GRAMMAR specified with this GRAMMAR id |
void |
setStartGrammarPath(String path)
WHat can be supplied: - path to collection (/db/foo/bar/) In this case all grammars must be searched. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityResolver(DatabaseResources resources)
resources - | Method Detail |
|---|
public void setStartGrammarPath(String path)
path - Path tp
public XMLInputSource resolveEntity(XMLResourceIdentifier xrid)
throws XNIException,
IOException
resolveEntity in interface XMLEntityResolverxrid - Grammar Identifier.
XNIException - Xerces exception, can be anything
IOException - Can be anything
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||