| Modifier and Type | Field and Description |
|---|---|
static NodeFilter<Element> |
ELEMENT_FILTER |
| Constructor and Description |
|---|
Element(Parent parent,
String name) |
Element(Parent parent,
String name,
Namespace ns) |
Element(String name) |
Element(String name,
Namespace ns) |
Element(Token token) |
clearNodes, getNode, getNodes, getNodes, hasNodes, nodeCount, nodeIndexOf, removeNode, removeNode, toString, toXMLpublic static final NodeFilter<Element> ELEMENT_FILTER
public Token getStartToken()
public int getStartOffset()
public int getEndOffset()
public String getBeginName()
public String getEndName()
public Element setEndName(String endName)
public String getPostSpace()
public String getName()
public Parent getParent()
Childpublic Element setParent(Parent parent)
ChildCAUTION: If the child is already attached to a parent, this
call will not detach the old relation! You
must call child.getParent().removeNode (child),
first!
public Element addNode(Node node)
addNode in interface ParentaddNode in class NodeWithChildrenpublic Element addNode(int index, Node node)
addNode in interface ParentaddNode in class NodeWithChildrenpublic Element addNodes(Collection<? extends Node> nodes)
addNodes in interface ParentaddNodes in class NodeWithChildrenpublic Element addNodes(int index, Collection<? extends Node> nodes)
addNodes in interface ParentaddNodes in class NodeWithChildrenpublic Element addNodes(Node... nodes)
addNodes in interface ParentaddNodes in class NodeWithChildrenpublic Element addNodes(int index, Node... nodes)
addNodes in interface ParentaddNodes in class NodeWithChildrenpublic Element setCompactEmpty(boolean compactEmpty)
public boolean isCompactEmpty()
public Element toXML(XMLWriter writer) throws IOException
NodetoXML in interface NodetoXML in class NodeWithChildrenIOExceptionpublic XMLTokenizer.Type getType()
Nodepublic Element getChild(int index)
public boolean hasChildren()
public Element clearChildNodes()
public Element clearChildren()
public String getText()
TextNodepublic String getTrimmedText()
public String getNormalizedText()
public Element setText(String text)
TextNodepublic Element clearText()
public Element getParentElement()
public String getNodePath()
ChildgetNodePath in interface Childpublic String getChildPath()
public int childIndexOf(Element element)
public Document getDocument()
public Element getChild(String path)
Parentpublic Element createClone()
NodecreateClone in interface Nodepublic Element copy(Node orig)
Nodeorig into thiscopy in interface Nodecopy in class NodeWithChildrenpublic Element copy()
Nodecopy in interface Nodecopy in class NodeWithChildrenpublic void setNamespace(Namespace namespace)
public Namespace getNamespace()
Copyright © 2008–2015. All rights reserved.