Liferay 6.2-ce-ga5

com.liferay.portal.xml
Class NodeImpl

java.lang.Object
  extended by com.liferay.portal.xml.NodeImpl
All Implemented Interfaces:
Node, Serializable
Direct Known Subclasses:
AttributeImpl, BranchImpl, CDATAImpl, CommentImpl, EntityImpl, NamespaceImpl, ProcessingInstructionImpl, TextImpl

public class NodeImpl
extends Object
implements Node

See Also:
Serialized Form

Constructor Summary
NodeImpl(org.dom4j.Node node)
           
 
Method Summary
<T,V extends Visitor<T>>
T
accept(V visitor)
           
 String asXML()
           
 Node asXPathResult(Element parent)
           
 String compactString()
           
 Node detach()
           
 boolean equals(Object obj)
           
 String formattedString()
           
 String formattedString(String indent)
           
 String formattedString(String indent, boolean expandEmptyElements)
           
 String formattedString(String indent, boolean expandEmptyElements, boolean trimText)
           
 Document getDocument()
           
 String getName()
           
 Element getParent()
           
 String getPath()
           
 String getPath(Element context)
           
 String getStringValue()
           
 String getText()
           
 String getUniquePath()
           
 String getUniquePath(Element context)
           
 org.dom4j.Node getWrappedNode()
           
 boolean hasContent()
           
 int hashCode()
           
 boolean isReadOnly()
           
 boolean matches(String xPathExpression)
           
 Number numberValueOf(String xPathExpression)
           
 List<Node> selectNodes(String xPathExpression)
           
 List<Node> selectNodes(String xPathExpression, String comparisonXPathExpression)
           
 List<Node> selectNodes(String xPathExpression, String comparisonXPathExpression, boolean removeDuplicates)
           
 Object selectObject(String xPathExpression)
           
 Node selectSingleNode(String xPathExpression)
           
 void setName(String name)
           
 void setText(String text)
           
 boolean supportsParent()
           
 String toString()
           
 String valueOf(String xPathExpression)
           
 void write(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeImpl

public NodeImpl(org.dom4j.Node node)
Method Detail

accept

public <T,V extends Visitor<T>> T accept(V visitor)
Specified by:
accept in interface Node

asXML

public String asXML()
Specified by:
asXML in interface Node

asXPathResult

public Node asXPathResult(Element parent)
Specified by:
asXPathResult in interface Node

compactString

public String compactString()
                     throws IOException
Specified by:
compactString in interface Node
Throws:
IOException

detach

public Node detach()
Specified by:
detach in interface Node

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

formattedString

public String formattedString()
                       throws IOException
Specified by:
formattedString in interface Node
Throws:
IOException

formattedString

public String formattedString(String indent)
                       throws IOException
Specified by:
formattedString in interface Node
Throws:
IOException

formattedString

public String formattedString(String indent,
                              boolean expandEmptyElements)
                       throws IOException
Specified by:
formattedString in interface Node
Throws:
IOException

formattedString

public String formattedString(String indent,
                              boolean expandEmptyElements,
                              boolean trimText)
                       throws IOException
Specified by:
formattedString in interface Node
Throws:
IOException

getDocument

public Document getDocument()
Specified by:
getDocument in interface Node

getName

public String getName()
Specified by:
getName in interface Node

getParent

public Element getParent()
Specified by:
getParent in interface Node

getPath

public String getPath()
Specified by:
getPath in interface Node

getPath

public String getPath(Element context)
Specified by:
getPath in interface Node

getStringValue

public String getStringValue()
Specified by:
getStringValue in interface Node

getText

public String getText()
Specified by:
getText in interface Node

getUniquePath

public String getUniquePath()
Specified by:
getUniquePath in interface Node

getUniquePath

public String getUniquePath(Element context)
Specified by:
getUniquePath in interface Node

getWrappedNode

public org.dom4j.Node getWrappedNode()

hasContent

public boolean hasContent()
Specified by:
hasContent in interface Node

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface Node

matches

public boolean matches(String xPathExpression)
Specified by:
matches in interface Node

numberValueOf

public Number numberValueOf(String xPathExpression)
Specified by:
numberValueOf in interface Node

selectNodes

public List<Node> selectNodes(String xPathExpression)
Specified by:
selectNodes in interface Node

selectNodes

public List<Node> selectNodes(String xPathExpression,
                              String comparisonXPathExpression)
Specified by:
selectNodes in interface Node

selectNodes

public List<Node> selectNodes(String xPathExpression,
                              String comparisonXPathExpression,
                              boolean removeDuplicates)
Specified by:
selectNodes in interface Node

selectObject

public Object selectObject(String xPathExpression)
Specified by:
selectObject in interface Node

selectSingleNode

public Node selectSingleNode(String xPathExpression)
Specified by:
selectSingleNode in interface Node

setName

public void setName(String name)
Specified by:
setName in interface Node

setText

public void setText(String text)
Specified by:
setText in interface Node

supportsParent

public boolean supportsParent()
Specified by:
supportsParent in interface Node

toString

public String toString()
Overrides:
toString in class Object

valueOf

public String valueOf(String xPathExpression)
Specified by:
valueOf in interface Node

write

public void write(Writer writer)
           throws IOException
Specified by:
write in interface Node
Throws:
IOException

Liferay 6.2-ce-ga5