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
-
dmBuf
-
-
dmCharArray
-
-
dmContent
-
-
dmName
-
-
dmSize
-
-
dmTagIndex
-
-
dmUserId
-
-
dmUserName
-
-
Document(String)
- Constructor
-
addContent(Content)
- Add the given content object.
-
getContentToString()
- Iterate through content objects, concatinating
them into a buffer.
-
getContentToStringBuffer(StringBuffer)
- Iterate through content objects, concatinating
them into a buffer.
-
getName()
-
-
getTag(String)
- Return the tag within the tag index hashed to the
given id.
-
getTagIndex()
-
-
getUserId()
-
-
getUserName()
-
-
setUserId(String)
-
-
setUserName(String)
-
-
toCharArray()
- Returns the document as an array of characters for
use in remote methods.
-
toString()
- Convert the entire document to string content.
-
toStringBuffer(StringBuffer)
- Convert the entire document to string content.
dmContent
private Vector dmContent
dmTagIndex
private Hashtable dmTagIndex
dmName
private String dmName
dmUserId
private String dmUserId
dmUserName
private String dmUserName
dmSize
private int dmSize
dmBuf
private StringBuffer dmBuf
dmCharArray
private char dmCharArray[]
Document
public Document(String name)
- Constructor
getName
public String getName()
getTagIndex
public Hashtable getTagIndex()
getUserId
public String getUserId()
getUserName
public String getUserName()
setUserId
public void setUserId(String id)
setUserName
public void setUserName(String name)
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.
addContent
public void addContent(Content content)
- Add the given content object.
getContentToString
public String getContentToString()
- Iterate through content objects, concatinating
them into a buffer.
- Returns:
- the string content.
toString
public String toString()
- Convert the entire document to string content.
- Returns:
- the string content.
- Overrides:
- toString in class Object
getContentToStringBuffer
public void getContentToStringBuffer(StringBuffer buf)
- Iterate through content objects, concatinating
them into a buffer.
- Parameters:
- buf - the string buffer.
toStringBuffer
public void toStringBuffer(StringBuffer buf)
- Convert the entire document to string content.
- Parameters:
- buf - the string buffer.
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