jodd.lagarto.dom
Class Element

java.lang.Object
  extended by jodd.lagarto.dom.Node
      extended by jodd.lagarto.dom.Element
All Implemented Interfaces:
java.lang.Cloneable

public class Element
extends Node

Tag node.


Nested Class Summary
 
Nested classes/interfaces inherited from class jodd.lagarto.dom.Node
Node.NodeType
 
Field Summary
protected  boolean selfClosed
           
protected  boolean voidElement
           
 
Fields inherited from class jodd.lagarto.dom.Node
attributes, caseSensitive, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeType, nodeValue, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex
 
Constructor Summary
Element(Tag tag, boolean voidElement, boolean selfClosed, boolean caseSensitive)
           
 
Method Summary
 Element clone()
           
 boolean isSelfClosed()
          Returns true if element can self-close itself when empty.
 boolean isVoidElement()
          Returns true if element is void.
 void toHtml(java.lang.Appendable appendable)
          Generates HTML by appending it to the provided Appendable.
 
Methods inherited from class jodd.lagarto.dom.Node
appendChild, appendChild, cloneTo, detachFromParent, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getDeepLevel, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeType, getNodeValue, getParentNode, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, getTextContent, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertBefore, insertChild, isAttributeIncluding, reindexChildren, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

voidElement

protected final boolean voidElement

selfClosed

protected final boolean selfClosed
Constructor Detail

Element

public Element(Tag tag,
               boolean voidElement,
               boolean selfClosed,
               boolean caseSensitive)
Method Detail

clone

public Element clone()
Specified by:
clone in class Node

isVoidElement

public boolean isVoidElement()
Returns true if element is void.


isSelfClosed

public boolean isSelfClosed()
Returns true if element can self-close itself when empty.


toHtml

public void toHtml(java.lang.Appendable appendable)
            throws java.io.IOException
Description copied from class: Node
Generates HTML by appending it to the provided Appendable.

Overrides:
toHtml in class Node
Throws:
java.io.IOException


Copyright © 2003-2012 Jodd Team