Class NodeImpl

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

public class NodeImpl extends Object implements com.liferay.portal.kernel.xml.Node
Author:
Brian Wing Shun Chan
See Also:
  • Constructor Details

    • NodeImpl

      public NodeImpl(org.dom4j.Node node)
  • Method Details

    • accept

      public <T, V extends com.liferay.portal.kernel.xml.Visitor<T>> T accept(V visitor)
      Specified by:
      accept in interface com.liferay.portal.kernel.xml.Node
    • asXML

      public String asXML()
      Specified by:
      asXML in interface com.liferay.portal.kernel.xml.Node
    • asXPathResult

      public com.liferay.portal.kernel.xml.Node asXPathResult(com.liferay.portal.kernel.xml.Element parent)
      Specified by:
      asXPathResult in interface com.liferay.portal.kernel.xml.Node
    • compactString

      public String compactString() throws IOException
      Specified by:
      compactString in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException
    • detach

      public com.liferay.portal.kernel.xml.Node detach()
      Specified by:
      detach in interface com.liferay.portal.kernel.xml.Node
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • formattedString

      public String formattedString() throws IOException
      Specified by:
      formattedString in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException
    • formattedString

      public String formattedString(String indent) throws IOException
      Specified by:
      formattedString in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException
    • formattedString

      public String formattedString(String indent, boolean expandEmptyElements) throws IOException
      Specified by:
      formattedString in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException
    • formattedString

      public String formattedString(String indent, boolean expandEmptyElements, boolean trimText) throws IOException
      Specified by:
      formattedString in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException
    • getDocument

      public com.liferay.portal.kernel.xml.Document getDocument()
      Specified by:
      getDocument in interface com.liferay.portal.kernel.xml.Node
    • getName

      public String getName()
      Specified by:
      getName in interface com.liferay.portal.kernel.xml.Node
    • getParent

      public com.liferay.portal.kernel.xml.Element getParent()
      Specified by:
      getParent in interface com.liferay.portal.kernel.xml.Node
    • getPath

      public String getPath()
      Specified by:
      getPath in interface com.liferay.portal.kernel.xml.Node
    • getPath

      public String getPath(com.liferay.portal.kernel.xml.Element context)
      Specified by:
      getPath in interface com.liferay.portal.kernel.xml.Node
    • getStringValue

      public String getStringValue()
      Specified by:
      getStringValue in interface com.liferay.portal.kernel.xml.Node
    • getText

      public String getText()
      Specified by:
      getText in interface com.liferay.portal.kernel.xml.Node
    • getUniquePath

      public String getUniquePath()
      Specified by:
      getUniquePath in interface com.liferay.portal.kernel.xml.Node
    • getUniquePath

      public String getUniquePath(com.liferay.portal.kernel.xml.Element context)
      Specified by:
      getUniquePath in interface com.liferay.portal.kernel.xml.Node
    • getWrappedNode

      public org.dom4j.Node getWrappedNode()
    • hasContent

      public boolean hasContent()
      Specified by:
      hasContent in interface com.liferay.portal.kernel.xml.Node
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface com.liferay.portal.kernel.xml.Node
    • matches

      public boolean matches(String xPathExpression)
      Specified by:
      matches in interface com.liferay.portal.kernel.xml.Node
    • numberValueOf

      public Number numberValueOf(String xPathExpression)
      Specified by:
      numberValueOf in interface com.liferay.portal.kernel.xml.Node
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.Node
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression, String comparisonXPathExpression)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.Node
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression, String comparisonXPathExpression, boolean removeDuplicates)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.Node
    • selectObject

      public Object selectObject(String xPathExpression)
      Specified by:
      selectObject in interface com.liferay.portal.kernel.xml.Node
    • selectSingleNode

      public com.liferay.portal.kernel.xml.Node selectSingleNode(String xPathExpression)
      Specified by:
      selectSingleNode in interface com.liferay.portal.kernel.xml.Node
    • setName

      public void setName(String name)
      Specified by:
      setName in interface com.liferay.portal.kernel.xml.Node
    • setText

      public void setText(String text)
      Specified by:
      setText in interface com.liferay.portal.kernel.xml.Node
    • supportsParent

      public boolean supportsParent()
      Specified by:
      supportsParent in interface com.liferay.portal.kernel.xml.Node
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • valueOf

      public String valueOf(String xPathExpression)
      Specified by:
      valueOf in interface com.liferay.portal.kernel.xml.Node
    • write

      public void write(Writer writer) throws IOException
      Specified by:
      write in interface com.liferay.portal.kernel.xml.Node
      Throws:
      IOException