org.enhydra.xml.xhtml.dom.xerces
Class XHTMLDocumentBase
java.lang.Object
|
+--org.enhydra.apache.xerces.dom.NodeImpl
|
+--org.enhydra.apache.xerces.dom.ChildNode
|
+--org.enhydra.apache.xerces.dom.ParentNode
|
+--org.enhydra.apache.xerces.dom.CoreDocumentImpl
|
+--org.enhydra.apache.xerces.dom.DocumentImpl
|
+--org.enhydra.xml.xhtml.dom.xerces.XHTMLDocumentBase
- All Implemented Interfaces:
- Cloneable, Document, DocumentEvent, org.enhydra.xml.io.DocumentInfo, DocumentRange, DocumentTraversal, EventTarget, HTMLDocument, Node, NodeList, Serializable
- Direct Known Subclasses:
- XHTMLDocumentImpl
- public class XHTMLDocumentBase
- extends org.enhydra.apache.xerces.dom.DocumentImpl
- implements HTMLDocument, org.enhydra.xml.io.DocumentInfo
Base class used to implements documents defined in terms of XHTML. This
includes the full XHTML and XHTML modular documents. This defined all of
the HTMLDocument methods plus a framework for creating elements, but no
element definitions themselves.
- See Also:
HTMLDocument
, Serialized Form
Inner classes inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
org.enhydra.apache.xerces.dom.DocumentImpl.EnclosingAttr, org.enhydra.apache.xerces.dom.DocumentImpl.LEntry |
Fields inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
eventListeners, iterators, mutationEvents, ranges, savedEnclosingAttr, serialVersionUID, userData |
Fields inherited from class org.enhydra.apache.xerces.dom.CoreDocumentImpl |
allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, identifiers, kidOK, standalone, version |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
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 |
Methods inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
addEventListener, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, deletedText, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, getEventListeners, getMutationEvents, getUserData, insertedNode, insertedText, insertingNode, modifiedAttrValue, modifiedCharacterData, modifyingCharacterData, removedAttrNode, removedNode, removeEventListener, removeNodeIterator, removeRange, removingNode, replacedNode, replacedText, replacingNode, saveEnclosingAttr, setAttrNode, setEventListeners, setMutationEvents, setUserData, splitData |
Methods inherited from class org.enhydra.apache.xerces.dom.CoreDocumentImpl |
, adoptNode, changed, changes, clone, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElementDefinition, createEntity, createEntityReference, createNotation, createProcessingInstruction, createTextNode, getDoctype, getDocumentURI, getDomConfig, getEncoding, getErrorChecking, getIdentifier, getIdentifiers, getInputEncoding, getNodeName, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isKidOK, isXMLName, normalizeDocument, putIdentifier, removeChild, removeIdentifier, renameNode, replaceChild, setDocumentURI, setEncoding, setErrorChecking, setStandalone, setStrictErrorChecking, setVersion, setXmlStandalone, setXmlVersion |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, normalize, ownerDocument, setOwnerDocument, setReadOnly, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, compareDocumentPosition, dispatchEvent, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setPrefix, setTextContent, setUserData, setUserData, synchronizeData, toString |
Methods inherited from interface org.w3c.dom.Document |
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentURI, getDomConfig, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, 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 |
XHTMLDocumentBase
public XHTMLDocumentBase(HashMap elementTypes)
- Constructor without document type.
- Parameters:
elementTypes
- Map of element names to element classes.
XHTMLDocumentBase
public XHTMLDocumentBase(DocumentType doctype,
HashMap elementTypes)
- Constructor with document type.
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElement
in interface Document
- Overrides:
getDocumentElement
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.getDocumentElement()
getHead
public HTMLElement getHead()
- Obtains the <HEAD> element in the document, creating one if does
not exist before. The <HEAD> element is the first element in the
<HTML> in the document. The <HTML> element is obtained by
calling
getDocumentElement()
. If the element does not exist, one
is created.
- Returns:
- The <HEAD> element
getTitle
public String getTitle()
- Specified by:
getTitle
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getTitle()
setTitle
public void setTitle(String newTitle)
- Specified by:
setTitle
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.setTitle(java.lang.String)
getBody
public HTMLElement getBody()
- Specified by:
getBody
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getBody()
setBody
public void setBody(HTMLElement newBody)
- Specified by:
setBody
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.setBody(org.w3c.dom.html.HTMLElement)
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementById
in interface HTMLDocument
- Overrides:
getElementById
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.getElementById(java.lang.String)
getElementsByName
public NodeList getElementsByName(String elementName)
- Specified by:
getElementsByName
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getElementsByName(java.lang.String)
getElementsByTagName
public final NodeList getElementsByTagName(String tagName)
- Specified by:
getElementsByTagName
in interface Document
- Overrides:
getElementsByTagName
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.getElementsByTagName(java.lang.String)
getElementsByTagNameNS
public final NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- Specified by:
getElementsByTagNameNS
in interface Document
- Overrides:
getElementsByTagNameNS
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.getElementsByTagNameNS(java.lang.String, java.lang.String)
createElementNS
public Element createElementNS(String namespaceURI,
String qualifiedName)
- Specified by:
createElementNS
in interface Document
- Overrides:
createElementNS
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.createElementNS(java.lang.String, java.lang.String)
createElement
public Element createElement(String tagName)
throws DOMException
- Specified by:
createElement
in interface Document
- Overrides:
createElement
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
- See Also:
HTMLDocumentImpl.createElement(java.lang.String)
getReferrer
public String getReferrer()
- Specified by:
getReferrer
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getReferrer()
getDomain
public String getDomain()
- Specified by:
getDomain
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getDomain()
getURL
public String getURL()
- Specified by:
getURL
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getURL()
getCookie
public String getCookie()
- Specified by:
getCookie
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getCookie()
setCookie
public void setCookie(String cookie)
- Specified by:
setCookie
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.setCookie(java.lang.String)
getImages
public HTMLCollection getImages()
- Specified by:
getImages
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getImages()
getApplets
public HTMLCollection getApplets()
- Specified by:
getApplets
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getApplets()
getLinks
public HTMLCollection getLinks()
- Specified by:
getLinks
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getLinks()
getForms
public HTMLCollection getForms()
- Specified by:
getForms
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getForms()
getAnchors
public HTMLCollection getAnchors()
- Specified by:
getAnchors
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.getAnchors()
open
public void open()
- Specified by:
open
in interface HTMLDocument
- See Also:
org.enhydra.apache.html.dom.HTMLDocumentImpl#optn
close
public void close()
- Specified by:
close
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.close()
write
public void write(String text)
- Specified by:
write
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.write(java.lang.String)
writeln
public void writeln(String text)
- Specified by:
writeln
in interface HTMLDocument
- See Also:
HTMLDocumentImpl.writeln(java.lang.String)
cloneNode
public Node cloneNode(boolean deep)
- Specified by:
cloneNode
in interface Node
- Overrides:
cloneNode
in class org.enhydra.apache.xerces.dom.DocumentImpl
- See Also:
HTMLDocumentImpl.cloneNode(boolean)
getImplementation
public DOMImplementation getImplementation()
- overload in order to return the correct dom implementation for XHTML
- Specified by:
getImplementation
in interface Document
- Overrides:
getImplementation
in class org.enhydra.apache.xerces.dom.DocumentImpl
- See Also:
DocumentImpl.getImplementation()
isURLAttribute
public boolean isURLAttribute(Element element,
String attrName)
- Specified by:
isURLAttribute
in interface org.enhydra.xml.io.DocumentInfo
Copyright © 1999-2002 Mark Diekhans, enhydra.org. All Rights reserved.