|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.dom.NodeImpl | +--weblogic.apache.xerces.dom.ChildNode | +--weblogic.apache.xerces.dom.ParentNode | +--weblogic.apache.xerces.dom.CoreDocumentImpl | +--weblogic.apache.xerces.dom.DocumentImpl | +--weblogic.apache.html.dom.HTMLDocumentImpl
Implements an HTML document. Provides access to the top level element in the document, its body and title.
Several methods create new nodes of all basic types (comment, text, element,
etc.). These methods create new nodes but do not place them in the document
tree. The nodes may be placed in the document tree using Node.appendChild(org.w3c.dom.Node)
or Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
, or
they may be placed in some other document tree.
Note: <FRAMESET> documents are not supported at the moment, neither
are direct document writing (open()
, write(java.lang.String)
) and HTTP attribute
methods (getURL()
, getCookie()
).
HTMLDocument
, Serialized FormFields inherited from class weblogic.apache.xerces.dom.DocumentImpl |
eventListeners,
iterators,
mutationEvents,
ranges |
Fields inherited from class weblogic.apache.xerces.dom.CoreDocumentImpl |
actualEncoding,
allowGrammarAccess,
CDATA,
changes,
COMMENTS,
DEFAULTS,
docElement,
docType,
domNormalizer,
DTNORMALIZATION,
encoding,
ENTITIES,
errorChecking,
fConfiguration,
fDocumentURI,
features,
fEntityResolver,
fErrorHandlerWrapper,
fGrammar,
fSymbolTable,
identifiers,
NAMESPACES,
SPLITCDATA,
standalone,
userData,
VALIDATION,
version |
Fields inherited from class weblogic.apache.xerces.dom.ParentNode |
firstChild,
fNodeListCache,
ownerDocument |
Fields inherited from class weblogic.apache.xerces.dom.ChildNode |
nextSibling,
previousSibling |
Fields inherited from class weblogic.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE,
FIRSTCHILD,
flags,
HASSTRING,
IDATTRIBUTE,
IGNORABLEWS,
OWNED,
ownerNode,
READONLY,
SPECIFIED,
SYNCCHILDREN,
SYNCDATA,
TREE_POSITION_ANCESTOR,
TREE_POSITION_DESCENDANT,
TREE_POSITION_DISCONNECTED,
TREE_POSITION_EQUIVALENT,
TREE_POSITION_FOLLOWING,
TREE_POSITION_PRECEDING,
TREE_POSITION_SAME_NODE,
UNNORMALIZED |
Constructor Summary | |
HTMLDocumentImpl()
|
Method Summary | |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
void |
close()
|
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
Creates an Attribute having this Document as its OwnerDoc. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String localpart)
Xerces-specific constructor. |
org.w3c.dom.html.HTMLCollection |
getAnchors()
|
org.w3c.dom.html.HTMLCollection |
getApplets()
|
org.w3c.dom.html.HTMLElement |
getBody()
|
java.lang.String |
getCookie()
|
org.w3c.dom.Element |
getDocumentElement()
|
java.lang.String |
getDomain()
|
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
|
org.w3c.dom.NodeList |
getElementsByName(java.lang.String elementName)
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.html.HTMLCollection |
getForms()
|
org.w3c.dom.html.HTMLElement |
getHead()
Obtains the <HEAD> element in the document, creating one if does not exist before. |
org.w3c.dom.html.HTMLCollection |
getImages()
|
org.w3c.dom.html.HTMLCollection |
getLinks()
|
java.lang.String |
getReferrer()
|
java.lang.String |
getTitle()
|
java.lang.String |
getURL()
|
void |
open()
|
void |
setBody(org.w3c.dom.html.HTMLElement newBody)
|
void |
setCookie(java.lang.String cookie)
|
void |
setTitle(java.lang.String newTitle)
|
void |
write(java.lang.String text)
|
void |
writeln(java.lang.String text)
|
Methods inherited from class weblogic.apache.xerces.dom.DocumentImpl |
addEventListener,
copyEventListeners,
createEvent,
createNodeIterator,
createNodeIterator,
createRange,
createTreeWalker,
createTreeWalker,
dispatchAggregateEvents,
dispatchAggregateEvents,
dispatchEvent,
dispatchEventToSubtree,
getEventListeners,
getImplementation,
removeEventListener,
saveEnclosingAttr,
setEventListeners |
Methods inherited from class weblogic.apache.xerces.dom.ParentNode |
getChildNodes,
getChildNodesUnoptimized,
getFirstChild,
getLastChild,
getLength,
hasChildNodes,
isEqualNode,
item,
normalize,
setReadOnly,
synchronizeChildren |
Methods inherited from class weblogic.apache.xerces.dom.ChildNode |
getNextSibling,
getParentNode,
getPreviousSibling |
Methods inherited from class weblogic.apache.xerces.dom.NodeImpl |
addEventListener,
appendChild,
compareTreePosition,
dispatchEvent,
getAttributes,
getInterface,
getLocalName,
getNamespaceURI,
getNodeValue,
getPrefix,
getReadOnly,
getUserData,
getUserData,
hasAttributes,
isDefaultNamespace,
isSameNode,
isSupported,
lookupNamespacePrefix,
lookupNamespaceURI,
needsSyncChildren,
removeEventListener,
setNodeValue,
setPrefix,
setUserData,
setUserData,
synchronizeData,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HTMLDocumentImpl()
Method Detail |
public org.w3c.dom.Element getDocumentElement()
public org.w3c.dom.html.HTMLElement getHead()
getDocumentElement()
. If the element does not exist, one
is created.
Called by getTitle()
, setTitle(java.lang.String)
, getBody()
and
setBody(org.w3c.dom.html.HTMLElement)
to assure the document has the <HEAD> element
correctly placed.
public java.lang.String getTitle()
public void setTitle(java.lang.String newTitle)
public org.w3c.dom.html.HTMLElement getBody()
public void setBody(org.w3c.dom.html.HTMLElement newBody)
public org.w3c.dom.Element getElementById(java.lang.String elementId)
public org.w3c.dom.NodeList getElementsByName(java.lang.String elementName)
public final org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
public final org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localpart) throws org.w3c.dom.DOMException
namespaceURI
- The namespace URI of the element to
create.qualifiedName
- The qualified name of the element type to
instantiate.localName
- The local name of the element to instantiate.public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
CoreDocumentImpl.createAttribute(java.lang.String)
and returns
and attribute whose name is lower case.
name
- The name of the attributepublic java.lang.String getReferrer()
public java.lang.String getDomain()
public java.lang.String getURL()
public java.lang.String getCookie()
public void setCookie(java.lang.String cookie)
public org.w3c.dom.html.HTMLCollection getImages()
public org.w3c.dom.html.HTMLCollection getApplets()
public org.w3c.dom.html.HTMLCollection getLinks()
public org.w3c.dom.html.HTMLCollection getForms()
public org.w3c.dom.html.HTMLCollection getAnchors()
public void open()
public void close()
public void write(java.lang.String text)
public void writeln(java.lang.String text)
public org.w3c.dom.Node cloneNode(boolean deep)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |