org.attoparser.markup.dom.impl
Class Element

Object
  extended by org.attoparser.markup.dom.impl.AbstractNode
      extended by org.attoparser.markup.dom.impl.AbstractNestableNode
          extended by org.attoparser.markup.dom.impl.Element
All Implemented Interfaces:
Serializable, IAttributeContainerNode, IElement, INamedNode, INestableNode, INode

public class Element
extends AbstractNestableNode
implements IElement, Serializable

Default implementation of the IElement interface.

Since:
1.1
Author:
Daniel Fernández
See Also:
Serialized Form

Constructor Summary
Element(String name)
           
 
Method Summary
 void addAttribute(String attributeName, String attributeValue)
           
 void addAttributes(Map<String,String> newAttributes)
           
 void clearAttributes()
           
 Element cloneNode(INestableNode parent)
           
 boolean elementNameMatches(String name)
           
 Map<String,String> getAttributeMap()
           
 String getAttributeValue(String attributeName)
           
 String getElementName()
           
 boolean hasAttribute(String attributeName)
           
 boolean hasAttributes()
           
 int numAttributes()
           
 void removeAttribute(String attributeName)
           
 void setElementName(String name)
           
 
Methods inherited from class org.attoparser.markup.dom.impl.AbstractNestableNode
addChild, clearChildren, getChildren, getChildrenOfType, getFirstChild, getFirstChildOfType, hasChildren, insertChild, insertChildAfter, insertChildBefore, numChildren, removeChild
 
Methods inherited from class org.attoparser.markup.dom.impl.AbstractNode
getCol, getLine, getParent, hasCol, hasLine, hasParent, setCol, setLine, setParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.attoparser.markup.dom.INestableNode
addChild, clearChildren, getChildren, getChildrenOfType, getFirstChild, getFirstChildOfType, hasChildren, insertChild, insertChildAfter, insertChildBefore, numChildren, removeChild
 
Methods inherited from interface org.attoparser.markup.dom.INode
getCol, getLine, getParent, hasCol, hasLine, hasParent, setCol, setLine, setParent
 

Constructor Detail

Element

public Element(String name)
Method Detail

getElementName

public String getElementName()
Specified by:
getElementName in interface INamedNode

setElementName

public void setElementName(String name)
Specified by:
setElementName in interface INamedNode

elementNameMatches

public boolean elementNameMatches(String name)
Specified by:
elementNameMatches in interface INamedNode

numAttributes

public int numAttributes()
Specified by:
numAttributes in interface IAttributeContainerNode

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface IAttributeContainerNode

hasAttribute

public boolean hasAttribute(String attributeName)
Specified by:
hasAttribute in interface IAttributeContainerNode

getAttributeValue

public String getAttributeValue(String attributeName)
Specified by:
getAttributeValue in interface IAttributeContainerNode

getAttributeMap

public Map<String,String> getAttributeMap()
Specified by:
getAttributeMap in interface IAttributeContainerNode

addAttribute

public void addAttribute(String attributeName,
                         String attributeValue)
Specified by:
addAttribute in interface IAttributeContainerNode

addAttributes

public void addAttributes(Map<String,String> newAttributes)
Specified by:
addAttributes in interface IAttributeContainerNode

removeAttribute

public void removeAttribute(String attributeName)
Specified by:
removeAttribute in interface IAttributeContainerNode

clearAttributes

public void clearAttributes()
Specified by:
clearAttributes in interface IAttributeContainerNode

cloneNode

public Element cloneNode(INestableNode parent)
Specified by:
cloneNode in interface INode


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.