Liferay 6.0.5

com.liferay.portal.kernel.xml
Class SAXReaderUtil

java.lang.Object
  extended by com.liferay.portal.kernel.xml.SAXReaderUtil

public class SAXReaderUtil
extends Object


Constructor Summary
SAXReaderUtil()
           
 
Method Summary
static Attribute createAttribute(Element element, QName qName, String value)
           
static Attribute createAttribute(Element element, String name, String value)
           
static Document createDocument()
           
static Document createDocument(Element rootElement)
           
static Document createDocument(String encoding)
           
static Element createElement(QName qName)
           
static Element createElement(String name)
           
static Entity createEntity(String name, String text)
           
static Namespace createNamespace(String uri)
           
static Namespace createNamespace(String prefix, String uri)
           
static ProcessingInstruction createProcessingInstruction(String target, Map<String,String> data)
           
static ProcessingInstruction createProcessingInstruction(String target, String data)
           
static QName createQName(String localName)
           
static QName createQName(String localName, Namespace namespace)
           
static Text createText(String text)
           
static XPath createXPath(String xpathExpression)
           
static SAXReader getSAXReader()
           
static Document read(File file)
           
static Document read(File file, boolean validate)
           
static Document read(InputStream is)
           
static Document read(InputStream is, boolean validate)
           
static Document read(Reader reader)
           
static Document read(Reader reader, boolean validate)
           
static Document read(String xml)
           
static Document read(String xml, boolean validate)
           
static Document read(URL url)
           
static Document read(URL url, boolean validate)
           
static Document readURL(String url)
           
static Document readURL(String url, boolean validate)
           
static List<Node> selectNodes(String xpathFilterExpression, List<Node> nodes)
           
static List<Node> selectNodes(String xpathFilterExpression, Node node)
           
 void setSAXReader(SAXReader saxReader)
           
static void sort(List<Node> nodes, String xpathExpression)
           
static void sort(List<Node> nodes, String xpathExpression, boolean distinct)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXReaderUtil

public SAXReaderUtil()
Method Detail

createAttribute

public static Attribute createAttribute(Element element,
                                        QName qName,
                                        String value)

createAttribute

public static Attribute createAttribute(Element element,
                                        String name,
                                        String value)

createDocument

public static Document createDocument()

createDocument

public static Document createDocument(Element rootElement)

createDocument

public static Document createDocument(String encoding)

createElement

public static Element createElement(QName qName)

createElement

public static Element createElement(String name)

createEntity

public static Entity createEntity(String name,
                                  String text)

createNamespace

public static Namespace createNamespace(String uri)

createNamespace

public static Namespace createNamespace(String prefix,
                                        String uri)

createProcessingInstruction

public static ProcessingInstruction createProcessingInstruction(String target,
                                                                Map<String,String> data)

createProcessingInstruction

public static ProcessingInstruction createProcessingInstruction(String target,
                                                                String data)

createQName

public static QName createQName(String localName)

createQName

public static QName createQName(String localName,
                                Namespace namespace)

createText

public static Text createText(String text)

createXPath

public static XPath createXPath(String xpathExpression)

getSAXReader

public static SAXReader getSAXReader()

read

public static Document read(File file)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(File file,
                            boolean validate)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(InputStream is)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(InputStream is,
                            boolean validate)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(Reader reader)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(Reader reader,
                            boolean validate)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(String xml)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(String xml,
                            boolean validate)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(URL url)
                     throws DocumentException
Throws:
DocumentException

read

public static Document read(URL url,
                            boolean validate)
                     throws DocumentException
Throws:
DocumentException

readURL

public static Document readURL(String url)
                        throws DocumentException,
                               MalformedURLException
Throws:
DocumentException
MalformedURLException

readURL

public static Document readURL(String url,
                               boolean validate)
                        throws DocumentException,
                               MalformedURLException
Throws:
DocumentException
MalformedURLException

selectNodes

public static List<Node> selectNodes(String xpathFilterExpression,
                                     List<Node> nodes)

selectNodes

public static List<Node> selectNodes(String xpathFilterExpression,
                                     Node node)

sort

public static void sort(List<Node> nodes,
                        String xpathExpression)

sort

public static void sort(List<Node> nodes,
                        String xpathExpression,
                        boolean distinct)

setSAXReader

public void setSAXReader(SAXReader saxReader)

Liferay 6.0.5