com.liferay.portal.kernel.xml
Interface Node
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- Attribute, Branch, CDATA, Comment, Document, Element, Entity, Namespace, ProcessingInstruction, Text
public interface Node
- extends Serializable
accept
<T,V extends Visitor<T>> T accept(V visitor)
asXML
String asXML()
asXPathResult
Node asXPathResult(Element parent)
compactString
String compactString()
throws IOException
- Throws:
IOException
detach
Node detach()
formattedString
String formattedString()
throws IOException
- Throws:
IOException
formattedString
String formattedString(String indent)
throws IOException
- Throws:
IOException
formattedString
String formattedString(String indent,
boolean expandEmptyElements)
throws IOException
- Throws:
IOException
formattedString
String formattedString(String indent,
boolean expandEmptyElements,
boolean trimText)
throws IOException
- Throws:
IOException
getDocument
Document getDocument()
getName
String getName()
getParent
Element getParent()
getPath
String getPath()
getPath
String getPath(Element context)
getStringValue
String getStringValue()
getText
String getText()
getUniquePath
String getUniquePath()
getUniquePath
String getUniquePath(Element context)
hasContent
boolean hasContent()
isReadOnly
boolean isReadOnly()
matches
boolean matches(String xPathExpression)
numberValueOf
Number numberValueOf(String xPathExpression)
selectNodes
List<Node> selectNodes(String xPathExpression)
selectNodes
List<Node> selectNodes(String xPathExpression,
String comparisonXPathExpression)
selectNodes
List<Node> selectNodes(String xPathExpression,
String comparisonXPathExpression,
boolean removeDuplicates)
selectObject
Object selectObject(String xPathExpression)
selectSingleNode
Node selectSingleNode(String xPathExpression)
setName
void setName(String name)
setText
void setText(String text)
supportsParent
boolean supportsParent()
valueOf
String valueOf(String xPathExpression)
write
void write(Writer writer)
throws IOException
- Throws:
IOException