public class SerializableElement extends Object implements Serializable
Serializable representation for a DOM element and its descendants.
Constructor and Description |
---|
SerializableElement() |
SerializableElement(Element element) |
SerializableElement(String tagName) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getAttribute(String name) |
Map<String,String> |
getAttributeMap() |
Collection<? extends SerializableElement> |
getChildElements() |
String |
getTagName() |
String |
getTextContent() |
boolean |
hasAttribute(String name) |
boolean |
hasChildElements() |
String |
removeAttribute(String name) |
void |
setAttribute(String name,
String value) |
void |
setTagName(String tagName) |
void |
setTextContent(String textContent) |
public SerializableElement()
public SerializableElement(String tagName)
public SerializableElement(Element element)
public String getTagName()
public void setTagName(String tagName)
public boolean hasAttribute(String name)
public String getTextContent()
public void setTextContent(String textContent)
public boolean hasChildElements()
public Collection<? extends SerializableElement> getChildElements()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.