2004.04.29


com.jdc.xml
Class Document

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SerializableObject
              |
              +--com.jdc.xml.Document
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Document

public class Document
extends SerializableObject

Document represents an XML document.

Reference: A Quick Introduction to XML

Version:
1.0
Author:
Jay Damon
See Also:
Declaration, DocumentType, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Document()
          Constructs a new Document object.
 
Method Summary
 String create()
          Creates and returns an XML document.
 Declaration getDeclaration()
          Returns the XML document declaration.
 String getProlog()
          Returns the XML prolog.
 DocumentType getType()
          Returns the XML document type definition.
 Document setDeclaration(Declaration declaration)
          Set the XML document declaration.
 Document setType(DocumentType documentType)
          Set the XML document type definition.
 String toString()
          Returns an XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Document

public Document()
Constructs a new Document object.

Method Detail

create

public String create()
Creates and returns an XML document.

Returns:
An XML document String.

getDeclaration

public Declaration getDeclaration()
Returns the XML document declaration.

Returns:
The XML document declaration.

getProlog

public String getProlog()
Returns the XML prolog.

Returns:
The XML document prolog String.

getType

public DocumentType getType()
Returns the XML document type definition.

Returns:
The XML document type definition.

setDeclaration

public Document setDeclaration(Declaration declaration)
Set the XML document declaration.

Returns:
This XML document.

setType

public Document setType(DocumentType documentType)
Set the XML document type definition.

Returns:
This XML document.

toString

public String toString()
Returns an XML document.

Overrides:
toString in class Object
Returns:
An XML document String.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.