org.enhydra.zeus.source
Class DTDSource
java.lang.Object
|
+--org.enhydra.zeus.source.BaseSource
|
+--org.enhydra.zeus.source.DTDSource
- All Implemented Interfaces:
- Source
- Direct Known Subclasses:
- StreamDTDSource
- public abstract class DTDSource
- extends BaseSource
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.
- Author:
- Brett McLaughlin
Method Summary |
org.jdom.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 com.wutka.dtd.DTD |
getDTD()
This will return the DTDParser 's
DTD representation of the supplied
XML DTD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTDSource
public DTDSource()
getDocument
public org.jdom.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).
- Overrides:
getDocument
in class BaseSource
- Returns:
Document
- the JDOM representation
of the input source.- Throws:
IOException
- - when construction of
a Document
generates errors.
getDTD
public abstract com.wutka.dtd.DTD getDTD()
throws java.io.IOException
This will return the DTDParser
's
DTD
representation of the supplied
XML DTD.
- Returns:
DTD
- the DTDParser
representation of the input source.- Throws:
IOException
- - when construction of
a DTD
generates errors.
Copyright © 2001 Enhydra. All Rights Reserved.