All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.netobjects.nfx.dom.Document

java.lang.Object
   |
   +----com.netobjects.nfx.dom.Document

public class Document
extends Object
Stores a hierarchical structure of tags which represent a dynamic SGML document.

Version:
1.0
Author:
Scott Cinnamond

Variable Index

 o dmBuf
 o dmCharArray
 o dmContent
 o dmName
 o dmSize
 o dmTagIndex
 o dmUserId
 o dmUserName

Constructor Index

 o Document(String)
Constructor

Method Index

 o addContent(Content)
Add the given content object.
 o getContentToString()
Iterate through content objects, concatinating them into a buffer.
 o getContentToStringBuffer(StringBuffer)
Iterate through content objects, concatinating them into a buffer.
 o getName()
 o getTag(String)
Return the tag within the tag index hashed to the given id.
 o getTagIndex()
 o getUserId()
 o getUserName()
 o setUserId(String)
 o setUserName(String)
 o toCharArray()
Returns the document as an array of characters for use in remote methods.
 o toString()
Convert the entire document to string content.
 o toStringBuffer(StringBuffer)
Convert the entire document to string content.

Variables

 o dmContent
 private Vector dmContent
 o dmTagIndex
 private Hashtable dmTagIndex
 o dmName
 private String dmName
 o dmUserId
 private String dmUserId
 o dmUserName
 private String dmUserName
 o dmSize
 private int dmSize
 o dmBuf
 private StringBuffer dmBuf
 o dmCharArray
 private char dmCharArray[]

Constructors

 o Document
 public Document(String name)
Constructor

Methods

 o getName
 public String getName()
 o getTagIndex
 public Hashtable getTagIndex()
 o getUserId
 public String getUserId()
 o getUserName
 public String getUserName()
 o setUserId
 public void setUserId(String id)
 o setUserName
 public void setUserName(String name)
 o getTag
 public Tag getTag(String id)
Return the tag within the tag index hashed to the given id.

Parameters:
id - the unique identifier for the desired tag.
 o addContent
 public void addContent(Content content)
Add the given content object.

 o getContentToString
 public String getContentToString()
Iterate through content objects, concatinating them into a buffer.

Returns:
the string content.
 o toString
 public String toString()
Convert the entire document to string content.

Returns:
the string content.
Overrides:
toString in class Object
 o getContentToStringBuffer
 public void getContentToStringBuffer(StringBuffer buf)
Iterate through content objects, concatinating them into a buffer.

Parameters:
buf - the string buffer.
 o toStringBuffer
 public void toStringBuffer(StringBuffer buf)
Convert the entire document to string content.

Parameters:
buf - the string buffer.
 o toCharArray
 public char[] toCharArray()
Returns the document as an array of characters for use in remote methods. For the String class, there is a limit of about 64K which may be serialized, but no such limit exists for char arrays.

Returns:
the document content.

All Packages  Class Hierarchy  This Package  Previous  Next  Index