com.liferay.portal.kernel.xml
Interface Document

All Superinterfaces:
Branch, Node

public interface Document
extends Branch

View Source

Author:
Brian Wing Shun Chan

Method Summary
 Document addComment(java.lang.String comment)
           
 Document addDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 java.lang.String formattedString()
           
 java.lang.String formattedString(java.lang.String indent)
           
 java.lang.String formattedString(java.lang.String indent, boolean expandEmptyElements)
           
 Element getRootElement()
           
 java.lang.String getXMLEncoding()
           
 void setRootElement(Element rootElement)
           
 void setXMLEncoding(java.lang.String encoding)
           
 
Methods inherited from interface com.liferay.portal.kernel.xml.Branch
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions
 
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
 

Method Detail

addComment

Document addComment(java.lang.String comment)

addDocType

Document addDocType(java.lang.String name,
                    java.lang.String publicId,
                    java.lang.String systemId)

formattedString

java.lang.String formattedString()
                                 throws java.io.IOException
Throws:
java.io.IOException

formattedString

java.lang.String formattedString(java.lang.String indent)
                                 throws java.io.IOException
Throws:
java.io.IOException

formattedString

java.lang.String formattedString(java.lang.String indent,
                                 boolean expandEmptyElements)
                                 throws java.io.IOException
Throws:
java.io.IOException

getRootElement

Element getRootElement()

getXMLEncoding

java.lang.String getXMLEncoding()

setRootElement

void setRootElement(Element rootElement)

setXMLEncoding

void setXMLEncoding(java.lang.String encoding)