Liferay 6.0.5

com.liferay.portal.xml
Class BranchImpl

java.lang.Object
  extended by com.liferay.portal.xml.NodeImpl
      extended by 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)
           
 
Method Summary
 void add(Comment comment)
           
 void add(Element element)
           
 void add(Node node)
           
 void add(ProcessingInstruction processingInstruction)
           
 Element addElement(QName qName)
           
 Element addElement(String name)
           
 Element addElement(String qualifiedName, String namespaceURI)
           
 void appendContent(Branch branch)
           
 void clearContent()
           
 List<Node> content()
           
 Element elementByID(String elementID)
           
 boolean equals(Object obj)
           
 org.dom4j.Branch getWrappedBranch()
           
 int hashCode()
           
 int indexOf(Node node)
           
 Node node(int index)
           
 int nodeCount()
           
 Iterator<Node> nodeIterator()
           
 void normalize()
           
 ProcessingInstruction processingInstruction(String target)
           
 List<ProcessingInstruction> processingInstructions()
           
 List<ProcessingInstruction> processingInstructions(String target)
           
 boolean remove(Comment comment)
           
 boolean remove(Element element)
           
 boolean remove(Node node)
           
 boolean remove(ProcessingInstruction processingInstruction)
           
 boolean removeProcessingInstruction(String target)
           
 void setContent(List<Node> content)
           
 void setProcessingInstructions(List<ProcessingInstruction> processingInstructions)
           
 String toString()
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

BranchImpl

public BranchImpl(org.dom4j.Branch branch)
Method Detail

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

Liferay 6.0.5