org.attoparser.markup.dom.impl
Class Element
Object
org.attoparser.markup.dom.impl.AbstractNode
org.attoparser.markup.dom.impl.AbstractNestableNode
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
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 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 |
Element
public Element(String name)
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.