com.liferay.portal.xml
Class BranchImpl
java.lang.Object
com.liferay.portal.xml.NodeImpl
com.liferay.portal.xml.BranchImpl
- All Implemented Interfaces:
- Branch, Node, Serializable
- Direct Known Subclasses:
- DocumentImpl, ElementImpl
public class BranchImpl
- extends NodeImpl
- implements Branch
- See Also:
- Serialized Form
Constructor Summary |
BranchImpl(org.dom4j.Branch branch)
|
Methods inherited from class com.liferay.portal.xml.NodeImpl |
asXML, asXPathResult, detach, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, getWrappedNode, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write |
Methods inherited from interface com.liferay.portal.kernel.xml.Node |
asXML, asXPathResult, detach, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write |
BranchImpl
public BranchImpl(org.dom4j.Branch branch)
add
public void add(Comment comment)
- Specified by:
add
in interface Branch
add
public void add(Element element)
- Specified by:
add
in interface Branch
add
public void add(Node node)
- Specified by:
add
in interface Branch
add
public void add(ProcessingInstruction processingInstruction)
- Specified by:
add
in interface Branch
addElement
public Element addElement(QName qName)
- Specified by:
addElement
in interface Branch
addElement
public Element addElement(String name)
- Specified by:
addElement
in interface Branch
addElement
public Element addElement(String qualifiedName,
String namespaceURI)
- Specified by:
addElement
in interface Branch
appendContent
public void appendContent(Branch branch)
- Specified by:
appendContent
in interface Branch
clearContent
public void clearContent()
- Specified by:
clearContent
in interface Branch
content
public List<Node> content()
- Specified by:
content
in interface Branch
elementByID
public Element elementByID(String elementID)
- Specified by:
elementByID
in interface Branch
equals
public boolean equals(Object obj)
- Overrides:
equals
in class NodeImpl
getWrappedBranch
public org.dom4j.Branch getWrappedBranch()
hashCode
public int hashCode()
- Overrides:
hashCode
in class NodeImpl
indexOf
public int indexOf(Node node)
- Specified by:
indexOf
in interface Branch
node
public Node node(int index)
- Specified by:
node
in interface Branch
nodeCount
public int nodeCount()
- Specified by:
nodeCount
in interface Branch
nodeIterator
public Iterator<Node> nodeIterator()
- Specified by:
nodeIterator
in interface Branch
normalize
public void normalize()
- Specified by:
normalize
in interface Branch
processingInstruction
public ProcessingInstruction processingInstruction(String target)
- Specified by:
processingInstruction
in interface Branch
processingInstructions
public List<ProcessingInstruction> processingInstructions()
- Specified by:
processingInstructions
in interface Branch
processingInstructions
public List<ProcessingInstruction> processingInstructions(String target)
- Specified by:
processingInstructions
in interface Branch
remove
public boolean remove(Comment comment)
- Specified by:
remove
in interface Branch
remove
public boolean remove(Element element)
- Specified by:
remove
in interface Branch
remove
public boolean remove(Node node)
- Specified by:
remove
in interface Branch
remove
public boolean remove(ProcessingInstruction processingInstruction)
- Specified by:
remove
in interface Branch
removeProcessingInstruction
public boolean removeProcessingInstruction(String target)
- Specified by:
removeProcessingInstruction
in interface Branch
setContent
public void setContent(List<Node> content)
- Specified by:
setContent
in interface Branch
setProcessingInstructions
public void setProcessingInstructions(List<ProcessingInstruction> processingInstructions)
- Specified by:
setProcessingInstructions
in interface Branch
toString
public String toString()
- Overrides:
toString
in class NodeImpl