Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

org::jdom::adapters::AbstractDOMAdapter Class Reference

Inheritance diagram for org::jdom::adapters::AbstractDOMAdapter:

org::jdom::adapters::DOMAdapter org::jdom::adapters::CrimsonDOMAdapter org::jdom::adapters::JAXPDOMAdapter org::jdom::adapters::OracleV1DOMAdapter org::jdom::adapters::OracleV2DOMAdapter org::jdom::adapters::ProjectXDOMAdapter org::jdom::adapters::XercesDOMAdapter org::jdom::adapters::XML4JDOMAdapter List of all members.

Public Member Functions

Document getDocument (File filename, boolean validate) throws Exception
abstract Document getDocument (InputStream in, boolean validate) throws Exception
abstract Document createDocument () throws Exception
Document createDocument (DocType doctype) throws Exception

Protected Member Functions

void setInternalSubset (DocumentType dt, String s)

Detailed Description

AbstractDOMAdapter

This class defines wrapper behavior for obtaining a DOM Document object from a DOM parser.

Author:
Brett McLaughlin

Jason Hunter

Version:
Revision
1.13
,
Date
2002/02/14 09:16:38


Member Function Documentation

Document org::jdom::adapters::AbstractDOMAdapter::createDocument DocType  doctype  )  throws Exception [inline]
 

This creates an empty Document object based on a specific parser implementation with the given DOCTYPE. If the doctype parameter is null, the behavior is the same as calling createDocument().

Parameters:
doctype Initial DocType of the document.
Returns:
Document - created DOM Document.
Exceptions:
Exception when errors occur.

Implements org::jdom::adapters::DOMAdapter.

abstract Document org::jdom::adapters::AbstractDOMAdapter::createDocument  )  throws Exception [pure virtual]
 

This creates an empty Document object based on a specific parser implementation.

Returns:
Document - created DOM Document.
Exceptions:
Exception when errors occur.

Implements org::jdom::adapters::DOMAdapter.

Implemented in org::jdom::adapters::JAXPDOMAdapter, org::jdom::adapters::OracleV2DOMAdapter, org::jdom::adapters::CrimsonDOMAdapter, org::jdom::adapters::XercesDOMAdapter, org::jdom::adapters::OracleV1DOMAdapter, org::jdom::adapters::ProjectXDOMAdapter, and org::jdom::adapters::XML4JDOMAdapter.

abstract Document org::jdom::adapters::AbstractDOMAdapter::getDocument InputStream  in,
boolean  validate
throws Exception [pure virtual]
 

This creates a new Document from an existing InputStream by letting a DOM parser handle parsing using the supplied stream.

Parameters:
in InputStream to parse.
validate boolean to indicate if validation should occur.
Returns:
Document - instance ready for use.
Exceptions:
Exception when errors occur in parsing.

Implements org::jdom::adapters::DOMAdapter.

Implemented in org::jdom::adapters::JAXPDOMAdapter, org::jdom::adapters::OracleV2DOMAdapter, org::jdom::adapters::CrimsonDOMAdapter, org::jdom::adapters::XercesDOMAdapter, org::jdom::adapters::OracleV1DOMAdapter, org::jdom::adapters::ProjectXDOMAdapter, and org::jdom::adapters::XML4JDOMAdapter.

Document org::jdom::adapters::AbstractDOMAdapter::getDocument File  filename,
boolean  validate
throws Exception [inline]
 

This creates a new Document from an existing InputStream by letting a DOM parser handle parsing using the supplied stream.

Parameters:
filename file to parse.
validate boolean to indicate if validation should occur.
Returns:
Document - instance ready for use.
Exceptions:
Exception when errors occur in parsing.

Implements org::jdom::adapters::DOMAdapter.

void org::jdom::adapters::AbstractDOMAdapter::setInternalSubset DocumentType  dt,
String  s
[inline, protected]
 

This attempts to change the DocumentType to have the given internal DTD subset value. This is not a standard ability in DOM, so it's only available with some parsers. Subclasses can alter the mechanism by which the attempt is made to set the value.

Parameters:
dt DocumentType to be altered
s String to use as the internal DTD subset


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:06:30 2004 for JDOM by doxygen 1.3.7