org.ozoneDB.xml.dom.html
Class HTMLElementImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.dom.NodeImpl
          extended byorg.ozoneDB.xml.dom.ElementImpl
              extended byorg.ozoneDB.xml.dom.html.HTMLElementImpl
All Implemented Interfaces:
org.w3c.dom.Element, ElementProxy, java.io.Externalizable, org.w3c.dom.html.HTMLElement, org.w3c.dom.NamedNodeMap, NamedNodeMapProxy, org.w3c.dom.Node, NodeProxy, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable
Direct Known Subclasses:
HTMLAnchorElementImpl, HTMLAppletElementImpl, HTMLAreaElementImpl, HTMLBaseElementImpl, HTMLBaseFontElementImpl, HTMLBlockquoteElementImpl, HTMLBodyElementImpl, HTMLBRElementImpl, HTMLButtonElementImpl, HTMLDirectoryElementImpl, HTMLDivElementImpl, HTMLDListElementImpl, HTMLFieldSetElementImpl, HTMLFontElementImpl, HTMLFormElementImpl, HTMLFrameElementImpl, HTMLFrameSetElementImpl, HTMLHeadElementImpl, HTMLHeadingElementImpl, HTMLHRElementImpl, HTMLHtmlElementImpl, HTMLIFrameElementImpl, HTMLImageElementImpl, HTMLInputElementImpl, HTMLIsIndexElementImpl, HTMLLabelElementImpl, HTMLLegendElementImpl, HTMLLIElementImpl, HTMLLinkElementImpl, HTMLMapElementImpl, HTMLMenuElementImpl, HTMLMetaElementImpl, HTMLModElementImpl, HTMLObjectElementImpl, HTMLOListElementImpl, HTMLOptGroupElementImpl, HTMLOptionElementImpl, HTMLParagraphElementImpl, HTMLParamElementImpl, HTMLPreElementImpl, HTMLQuoteElementImpl, HTMLScriptElementImpl, HTMLSelectElementImpl, HTMLStyleElementImpl, HTMLTableCaptionElementImpl, HTMLTableCellElementImpl, HTMLTableColElementImpl, HTMLTableElementImpl, HTMLTableRowElementImpl, HTMLTableSectionElementImpl, HTMLTextAreaElementImpl, HTMLTitleElementImpl, HTMLUListElementImpl

public class HTMLElementImpl
extends ElementImpl
implements org.w3c.dom.html.HTMLElement

Implements an HTML-specific element, an Element that will only appear inside HTML documents. This element extends org.openxml.dom.ElementImpl by adding methods for directly manipulating HTML-specific attributes. All HTML elements gain access to the id, title, lang, dir and class attributes. Other elements add their own specific attributes.

Note that some support is provided by NodeImpl directly: translating all tag names to upper case and all attribute names to lower case.

Version:
$Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
Author:
Assaf Arkin
See Also:
HTMLElement, ElementImpl, Serialized Form

Field Summary
 
Fields inherited from class org.ozoneDB.xml.dom.NodeImpl
ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
protected  org.w3c.dom.Node castNewChild(org.w3c.dom.Node newChild)
          Checks whether newChild can be added to this node as a child, and if so, performs a necessary cast.
 java.lang.String getClassName()
           
 java.lang.String getDir()
           
 org.w3c.dom.html.HTMLFormElement getForm()
          Convenience method returns the form in which this form element is contained.
 java.lang.String getId()
           
 java.lang.String getLang()
           
 java.lang.String getTitle()
           
 void setClassName(java.lang.String className)
           
 void setDir(java.lang.String dir)
           
 void setId(java.lang.String id)
           
 void setLang(java.lang.String lang)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.ozoneDB.xml.dom.ElementImpl
appendAttr, clone, cloneInto, cloneNode, elements, equals, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLength, getNamedAttr, getNamedItem, getNamedItemNS, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, init, item, normalize, onDelete, readExternal, removeAttr, removeAttribute, removeAttributeNode, removeAttributeNS, removeNamedItem, removeNamedItemNS, setAttrCount, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setFirstAttr, setLastAttr, setNamedItem, setNamedItemNS, setNodeValue, supportsChildern, toString, writeExternal
 
Methods inherited from class org.ozoneDB.xml.dom.NodeImpl
appendChild, castOldChild, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, init, insertBefore, isReadOnly, isSupported, notifyIterators, removeChild, replaceChild, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setReadOnly, supports
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onPassivate, requireWriteLocking, self, setContainer, toXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy
getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly
 

Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface org.w3c.dom.html.HTMLElement

setId

public void setId(java.lang.String id)
Specified by:
setId in interface org.w3c.dom.html.HTMLElement

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface org.w3c.dom.html.HTMLElement

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface org.w3c.dom.html.HTMLElement

getLang

public java.lang.String getLang()
Specified by:
getLang in interface org.w3c.dom.html.HTMLElement

setLang

public void setLang(java.lang.String lang)
Specified by:
setLang in interface org.w3c.dom.html.HTMLElement

getDir

public java.lang.String getDir()
Specified by:
getDir in interface org.w3c.dom.html.HTMLElement

setDir

public void setDir(java.lang.String dir)
Specified by:
setDir in interface org.w3c.dom.html.HTMLElement

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface org.w3c.dom.html.HTMLElement

setClassName

public void setClassName(java.lang.String className)
Specified by:
setClassName in interface org.w3c.dom.html.HTMLElement

getForm

public org.w3c.dom.html.HTMLFormElement getForm()
Convenience method returns the form in which this form element is contained. This method is exposed for form elements through the DOM API, but other elements have no access to it through the API.


castNewChild

protected org.w3c.dom.Node castNewChild(org.w3c.dom.Node newChild)
                                 throws org.w3c.dom.DOMException
Description copied from class: NodeImpl
Checks whether newChild can be added to this node as a child, and if so, performs a necessary cast. newChild cannot be null and must belong to this DOM. It is impossible to transfer nodes between different DOM implementations.

The following rules govern the allowed newChild types:

Any deviation will throw an exception.

Overrides:
castNewChild in class NodeImpl
Parameters:
newChild - New child node
Returns:
newChild cast to type NodeImpl
Throws:
org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR newChild is null, does not belong to this DOM, or its node type is not supported for this parent


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.