org.enhydra.xml.xhtml.dom.xerces
Class XHTMLElementImpl
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.ElementImpl
|
+--org.enhydra.apache.xerces.dom.ElementNSImpl
|
+--org.enhydra.xml.xhtml.dom.xerces.XHTMLElementImpl
- All Implemented Interfaces:
- java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html.HTMLElement, org.w3c.dom.Node, org.w3c.dom.NodeList, java.io.Serializable
- Direct Known Subclasses:
- XHTMLAbbrElementImpl, XHTMLAcronymElementImpl, XHTMLAddressElementImpl, XHTMLAnchorElementImpl, XHTMLAppletElementImpl, XHTMLAreaElementImpl, XHTMLBaseElementImpl, XHTMLBaseFontElementImpl, XHTMLBdoElementImpl, XHTMLBElementImpl, XHTMLBigElementImpl, XHTMLBodyElementImpl, XHTMLBRElementImpl, XHTMLButtonElementImpl, XHTMLCenterElementImpl, XHTMLCiteElementImpl, XHTMLCodeElementImpl, XHTMLDdElementImpl, XHTMLDfnElementImpl, XHTMLDirectoryElementImpl, XHTMLDivElementImpl, XHTMLDListElementImpl, XHTMLDtElementImpl, XHTMLEmElementImpl, XHTMLFieldSetElementImpl, XHTMLFontElementImpl, XHTMLFormElementImpl, XHTMLFrameElementImpl, XHTMLFrameSetElementImpl, XHTMLHeadElementImpl, XHTMLHeadingElementImpl, XHTMLHRElementImpl, XHTMLHtmlElementImpl, XHTMLIElementImpl, XHTMLIFrameElementImpl, XHTMLImageElementImpl, XHTMLInputElementImpl, XHTMLIsIndexElementImpl, XHTMLKbdElementImpl, XHTMLLabelElementImpl, XHTMLLegendElementImpl, XHTMLLIElementImpl, XHTMLLinkElementImpl, XHTMLMapElementImpl, XHTMLMenuElementImpl, XHTMLMetaElementImpl, XHTMLModElementImpl, XHTMLNoframesElementImpl, XHTMLNoscriptElementImpl, XHTMLObjectElementImpl, XHTMLOListElementImpl, XHTMLOptGroupElementImpl, XHTMLOptionElementImpl, XHTMLParagraphElementImpl, XHTMLParamElementImpl, XHTMLPreElementImpl, XHTMLQuoteElementImpl, XHTMLSampElementImpl, XHTMLScriptElementImpl, XHTMLSelectElementImpl, XHTMLSElementImpl, XHTMLSmallElementImpl, XHTMLSpanElementImpl, XHTMLStrikeElementImpl, XHTMLStrongElementImpl, XHTMLStyleElementImpl, XHTMLSubElementImpl, XHTMLSupElementImpl, XHTMLTableCaptionElementImpl, XHTMLTableCellElementImpl, XHTMLTableColElementImpl, XHTMLTableElementImpl, XHTMLTableRowElementImpl, XHTMLTableSectionElementImpl, XHTMLTextAreaElementImpl, XHTMLTitleElementImpl, XHTMLTtElementImpl, XHTMLUElementImpl, XHTMLUListElementImpl, XHTMLVarElementImpl
- public class XHTMLElementImpl
- extends org.enhydra.apache.xerces.dom.ElementNSImpl
- implements org.w3c.dom.html.HTMLElement
Implements an HTML-specific element, an Element
that
will only appear inside HTML documents. This element extends 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.
- See Also:
HTMLElement
,
Serialized Form
Fields inherited from class org.enhydra.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name |
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_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary |
(package private) |
XHTMLElementImpl(XHTMLDocumentBase owner,
java.lang.String namespaceURI,
java.lang.String tagName)
Constructor required owner document and element tag name. |
Method Summary |
(package private) java.lang.String |
capitalize(java.lang.String value)
Convenience method used to capitalize a one-off attribute value before it
is returned. |
java.lang.String |
getAttribute(java.lang.String attrName)
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String attrName)
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
protected boolean |
getBooleanAttribute(java.lang.String attr)
|
protected boolean |
getBooleanAttribute(java.lang.String attr,
boolean defaultValue)
|
(package private) java.lang.String |
getCapitalized(java.lang.String name)
Convenience method used to capitalize a one-off attribute value before it
is returned. |
java.lang.String |
getClassName()
|
java.lang.String |
getDir()
|
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.HTMLFormElement |
getForm()
Convenience method returns the form in which this form element is contained. |
java.lang.String |
getId()
|
protected int |
getIntAttribute(java.lang.String attr)
|
protected int |
getIntAttribute(java.lang.String attr,
int defaultValue)
|
java.lang.String |
getLang()
|
java.lang.String |
getTitle()
|
protected void |
setAttribute(java.lang.String attr,
boolean value)
|
protected void |
setAttribute(java.lang.String attr,
int value)
|
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.enhydra.apache.xerces.dom.ElementNSImpl |
getLocalName, getNamespaceURI, getPrefix, setPrefix |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
cloneNode, getAttributes, getDefaultAttributes, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, item, removeChild, replaceChild, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getNodeValue, getReadOnly, getUserData, isSupported, removeEventListener, setNodeValue, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Element |
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 |
XHTMLElementImpl
XHTMLElementImpl(XHTMLDocumentBase owner,
java.lang.String namespaceURI,
java.lang.String tagName)
- Constructor required owner document and element tag name. Will be called
by the constructor of specific element types but with a known tag name.
Assures that the owner document is an HTML element.
- Parameters:
owner
- The owner HTML documenttagName
- The element's tag name
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
getAttributeNode
public org.w3c.dom.Attr getAttributeNode(java.lang.String attrName)
- Specified by:
getAttributeNode
in interface org.w3c.dom.Element
- Overrides:
getAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
getAttributeNodeNS
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
- Specified by:
getAttributeNodeNS
in interface org.w3c.dom.Element
- Overrides:
getAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
getAttribute
public java.lang.String getAttribute(java.lang.String attrName)
- Specified by:
getAttribute
in interface org.w3c.dom.Element
- Overrides:
getAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
getAttributeNS
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
- Specified by:
getAttributeNS
in interface org.w3c.dom.Element
- Overrides:
getAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
getElementsByTagName
public final org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
- Specified by:
getElementsByTagName
in interface org.w3c.dom.Element
- Overrides:
getElementsByTagName
in class org.enhydra.apache.xerces.dom.ElementImpl
getElementsByTagNameNS
public final org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
- Specified by:
getElementsByTagNameNS
in interface org.w3c.dom.Element
- Overrides:
getElementsByTagNameNS
in class org.enhydra.apache.xerces.dom.ElementImpl
capitalize
java.lang.String capitalize(java.lang.String value)
- Convenience method used to capitalize a one-off attribute value before it
is returned. For example, the align values "LEFT" and "left" will both
return as "Left".
- Parameters:
value
- The value of the attribute
- Returns:
- The capitalized value
getCapitalized
java.lang.String getCapitalized(java.lang.String name)
- Convenience method used to capitalize a one-off attribute value before it
is returned. For example, the align values "LEFT" and "left" will both
return as "Left".
- Parameters:
name
- The name of the attribute
- Returns:
- The capitalized value
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.
getBooleanAttribute
protected final boolean getBooleanAttribute(java.lang.String attr,
boolean defaultValue)
getBooleanAttribute
protected final boolean getBooleanAttribute(java.lang.String attr)
setAttribute
protected final void setAttribute(java.lang.String attr,
boolean value)
getIntAttribute
protected final int getIntAttribute(java.lang.String attr,
int defaultValue)
getIntAttribute
protected final int getIntAttribute(java.lang.String attr)
setAttribute
protected final void setAttribute(java.lang.String attr,
int value)
Copyright © 1999-2002 Mark Diekhans, enhydra.org. All Rights reserved.