| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.enhydra.zeus.source.BaseSource | +--org.enhydra.zeus.source.DTDSource
Source
provides an interface for all input
means. It details the required contract that other
portions of the Zeus XML data binding framework must
use for processing of an arbitrary input.
DTDSource
extends the default Source
implementation
in BaseSource
, but provides functionality
specific to obtaining DTD information. Since all other XML constraint
methodologies involve constraints that are themselves well-formed
XML, handling DTDs is a special case, and therefore needs a special
class (this one!).
It should be noted that this class will always return
null
on the method getDocument()
.
Instead, it adds a method, getDTD()
, for
returning a Java representation of an XML DTD.
Method Summary | |
Document | getDocument() This will always return null
since there is no way to represent an XML DTD
as a JDOM Document (or any XML
document representation). |
abstract DTD | getDTD() This will return the DTDParser 's
DTD representation of the supplied
XML DTD. |
Methods inherited from class org.enhydra.zeus.source.BaseSource |
getSystemID, setSystemID |
Method Detail |
public Document getDocument()
throws java.io.IOException
This will always return null
since there is no way to represent an XML DTD
as a JDOM Document
(or any XML
document representation).
Document
- the JDOM representation
of the input source.IOException
- - when construction of
a Document
generates errors.public abstract DTD getDTD()
throws java.io.IOException
This will return the DTDParser
's
DTD
representation of the supplied
XML DTD.
DTD
- the DTDParser
representation of the input source.IOException
- - when construction of
a DTD
generates errors.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |