org.enhydra.xml.xmlc.html
Class HTMLObjectImpl

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.XMLObjectImpl
        |
        +--org.enhydra.xml.xmlc.html.HTMLObjectImpl
All Implemented Interfaces:
Document, DocumentInfo, HTMLDocument, HTMLObject, Node, XMLObject

public abstract class HTMLObjectImpl
extends XMLObjectImpl
implements HTMLObject

Abstract class that forms the base of all compiled HTML Objects.


Fields inherited from interface org.enhydra.xml.xmlc.XMLObject
XMLC_GENERATED_CLASS_FIELD_NAME, XMLC_SOURCE_FILE_FIELD_NAME
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected HTMLObjectImpl()
          Constructor.
 
Method Summary
abstract  Node cloneNode(boolean deep)
          Clone the entire document.
 void close()
           
 HTMLCollection getAnchors()
           
 HTMLCollection getApplets()
           
 HTMLElement getBody()
           
 String getCookie()
           
 String getDomain()
           
 Element getElementById(String elementId)
           
 NodeList getElementsByName(String elementName)
           
 HTMLCollection getForms()
           
 HTMLCollection getImages()
           
 HTMLCollection getLinks()
           
 String getReferrer()
           
 String getTitle()
           
 String getURL()
           
 void open()
           
 void setBody(HTMLElement body)
           
 void setCookie(String cookie)
           
 void setTitle(String title)
           
 String toDocument()
          Convert the document to a string representation of the document, that is a string containing HTML.
 void write(String text)
           
 void writeln(String text)
           
 
Methods inherited from class org.enhydra.xml.xmlc.XMLObjectImpl
adoptNode, appendChild, cloneDeepCheck, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, doSetText, getAttributes, getBaseURI, getChildNodes, getDelegate, getDoctype, getDocument, getDocumentElement, getDocumentURI, getDomConfig, getDomFactory, getElementsByTagName, getElementsByTagNameNS, getEncoding, getFeature, getFirstChild, getImplementation, getInputEncoding, getLastChild, getLocalName, getMIMEType, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getStandalone, getStrictErrorChecking, getTextContent, getUserData, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttributes, hasChildNodes, importNode, initFields, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, isURLAttribute, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeChild, renameNode, replaceChild, setDelegate, setDocument, setDocumentURI, setEncoding, setNodeValue, setPrefix, setStandalone, setStrictErrorChecking, setTextContent, setUserData, setVersion, setXmlStandalone, setXmlVersion, syncAccessMethods, syncWithDocument
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.enhydra.xml.xmlc.XMLObject
adoptNode, buildDocument, getDelegate, getDocument, getEncoding, getMIMEType, getStandalone, getStrictErrorChecking, getVersion, setDelegate, setEncoding, setStandalone, setStrictErrorChecking, setVersion, syncAccessMethods
 
Methods inherited from interface org.w3c.dom.Document
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setXmlStandalone, setXmlVersion
 
Methods inherited from interface org.w3c.dom.Node
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.enhydra.xml.io.DocumentInfo
isURLAttribute
 

Constructor Detail

HTMLObjectImpl

protected HTMLObjectImpl()
Constructor. The setDocument() method must be called to associate a document with this object.
Method Detail

cloneNode

public abstract Node cloneNode(boolean deep)
Clone the entire document. Derived objects should override this to get the correct derived type. Cloning with deep being false is not allowed.
Specified by:
cloneNode in interface Node
Overrides:
cloneNode in class XMLObjectImpl
See Also:
Node.cloneNode(boolean)

toDocument

public String toDocument()
Description copied from interface: HTMLObject
Convert the document to a string representation of the document, that is a string containing HTML. The results are parsable into the same DOM hierarchy
Specified by:
toDocument in interface HTMLObject
Overrides:
toDocument in class XMLObjectImpl
See Also:
HTMLObject.toDocument()

getTitle

public String getTitle()
Specified by:
getTitle in interface HTMLDocument
See Also:
HTMLDocument.getTitle()

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface HTMLDocument
See Also:
HTMLDocument.setTitle(java.lang.String)

getReferrer

public String getReferrer()
Specified by:
getReferrer in interface HTMLDocument
See Also:
HTMLDocument.getReferrer()

getDomain

public String getDomain()
Specified by:
getDomain in interface HTMLDocument
See Also:
HTMLDocument.getDomain()

getURL

public String getURL()
Specified by:
getURL in interface HTMLDocument
See Also:
HTMLDocument

getBody

public HTMLElement getBody()
Specified by:
getBody in interface HTMLDocument
See Also:
HTMLDocument

setBody

public void setBody(HTMLElement body)
Specified by:
setBody in interface HTMLDocument
See Also:
HTMLDocument.setBody(org.w3c.dom.html.HTMLElement)

getImages

public HTMLCollection getImages()
Specified by:
getImages in interface HTMLDocument
See Also:
HTMLDocument.getImages()

getApplets

public HTMLCollection getApplets()
Specified by:
getApplets in interface HTMLDocument
See Also:
HTMLDocument

getLinks

public HTMLCollection getLinks()
Specified by:
getLinks in interface HTMLDocument
See Also:
HTMLDocument

getForms

public HTMLCollection getForms()
Specified by:
getForms in interface HTMLDocument
See Also:
HTMLDocument.getForms()

getAnchors

public HTMLCollection getAnchors()
Specified by:
getAnchors in interface HTMLDocument
See Also:
HTMLDocument.getAnchors()

getCookie

public String getCookie()
Specified by:
getCookie in interface HTMLDocument
See Also:
HTMLDocument.getCookie()

setCookie

public void setCookie(String cookie)
Specified by:
setCookie in interface HTMLDocument
See Also:
HTMLDocument.setCookie(java.lang.String)

open

public void open()
Specified by:
open in interface HTMLDocument
See Also:
HTMLDocument.open()

close

public void close()
Specified by:
close in interface HTMLDocument
See Also:
HTMLDocument.close()

write

public void write(String text)
Specified by:
write in interface HTMLDocument
See Also:
HTMLDocument.write(java.lang.String)

writeln

public void writeln(String text)
Specified by:
writeln in interface HTMLDocument
See Also:
HTMLDocument.writeln(java.lang.String)

getElementById

public Element getElementById(String elementId)
Specified by:
getElementById in interface Document
Overrides:
getElementById in class XMLObjectImpl
See Also:
HTMLDocument.getElementById(java.lang.String)

getElementsByName

public NodeList getElementsByName(String elementName)
Specified by:
getElementsByName in interface HTMLDocument
See Also:
HTMLDocument.getElementsByName(java.lang.String)


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.