Class SAXReaderImpl

Object
com.liferay.portal.xml.SAXReaderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.xml.SAXReader

public class SAXReaderImpl extends Object implements com.liferay.portal.kernel.xml.SAXReader
Author:
Brian Wing Shun Chan
  • Constructor Details

    • SAXReaderImpl

      public SAXReaderImpl()
  • Method Details

    • toNewAttributes

      public static List<com.liferay.portal.kernel.xml.Attribute> toNewAttributes(List<org.dom4j.Attribute> oldAttributes)
    • toNewElements

      public static List<com.liferay.portal.kernel.xml.Element> toNewElements(List<org.dom4j.Element> oldElements)
    • toNewNamespaces

      public static List<com.liferay.portal.kernel.xml.Namespace> toNewNamespaces(List<org.dom4j.Namespace> oldNamespaces)
    • toNewNodes

      public static List<com.liferay.portal.kernel.xml.Node> toNewNodes(List<org.dom4j.Node> oldNodes)
    • toNewProcessingInstructions

      public static List<com.liferay.portal.kernel.xml.ProcessingInstruction> toNewProcessingInstructions(List<org.dom4j.ProcessingInstruction> oldProcessingInstructions)
    • toOldAttributes

      public static List<org.dom4j.Attribute> toOldAttributes(List<com.liferay.portal.kernel.xml.Attribute> newAttributes)
    • toOldNodes

      public static List<org.dom4j.Node> toOldNodes(List<com.liferay.portal.kernel.xml.Node> newNodes)
    • toOldProcessingInstructions

      public static List<org.dom4j.ProcessingInstruction> toOldProcessingInstructions(List<com.liferay.portal.kernel.xml.ProcessingInstruction> newProcessingInstructions)
    • createAttribute

      public com.liferay.portal.kernel.xml.Attribute createAttribute(com.liferay.portal.kernel.xml.Element element, com.liferay.portal.kernel.xml.QName qName, String value)
      Specified by:
      createAttribute in interface com.liferay.portal.kernel.xml.SAXReader
    • createAttribute

      public com.liferay.portal.kernel.xml.Attribute createAttribute(com.liferay.portal.kernel.xml.Element element, String name, String value)
      Specified by:
      createAttribute in interface com.liferay.portal.kernel.xml.SAXReader
    • createDocument

      public com.liferay.portal.kernel.xml.Document createDocument()
      Specified by:
      createDocument in interface com.liferay.portal.kernel.xml.SAXReader
    • createDocument

      public com.liferay.portal.kernel.xml.Document createDocument(com.liferay.portal.kernel.xml.Element rootElement)
      Specified by:
      createDocument in interface com.liferay.portal.kernel.xml.SAXReader
    • createDocument

      public com.liferay.portal.kernel.xml.Document createDocument(String encoding)
      Specified by:
      createDocument in interface com.liferay.portal.kernel.xml.SAXReader
    • createElement

      public com.liferay.portal.kernel.xml.Element createElement(com.liferay.portal.kernel.xml.QName qName)
      Specified by:
      createElement in interface com.liferay.portal.kernel.xml.SAXReader
    • createElement

      public com.liferay.portal.kernel.xml.Element createElement(String name)
      Specified by:
      createElement in interface com.liferay.portal.kernel.xml.SAXReader
    • createEntity

      public com.liferay.portal.kernel.xml.Entity createEntity(String name, String text)
      Specified by:
      createEntity in interface com.liferay.portal.kernel.xml.SAXReader
    • createNamespace

      public com.liferay.portal.kernel.xml.Namespace createNamespace(String uri)
      Specified by:
      createNamespace in interface com.liferay.portal.kernel.xml.SAXReader
    • createNamespace

      public com.liferay.portal.kernel.xml.Namespace createNamespace(String prefix, String uri)
      Specified by:
      createNamespace in interface com.liferay.portal.kernel.xml.SAXReader
    • createProcessingInstruction

      public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, Map<String,String> data)
      Specified by:
      createProcessingInstruction in interface com.liferay.portal.kernel.xml.SAXReader
    • createProcessingInstruction

      public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, String data)
      Specified by:
      createProcessingInstruction in interface com.liferay.portal.kernel.xml.SAXReader
    • createQName

      public com.liferay.portal.kernel.xml.QName createQName(String localName)
      Specified by:
      createQName in interface com.liferay.portal.kernel.xml.SAXReader
    • createQName

      public com.liferay.portal.kernel.xml.QName createQName(String localName, com.liferay.portal.kernel.xml.Namespace namespace)
      Specified by:
      createQName in interface com.liferay.portal.kernel.xml.SAXReader
    • createText

      public com.liferay.portal.kernel.xml.Text createText(String text)
      Specified by:
      createText in interface com.liferay.portal.kernel.xml.SAXReader
    • createXPath

      public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression)
      Specified by:
      createXPath in interface com.liferay.portal.kernel.xml.SAXReader
    • createXPath

      public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, Map<String,String> namespaceContextMap)
      Specified by:
      createXPath in interface com.liferay.portal.kernel.xml.SAXReader
    • createXPath

      public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, String prefix, String namespace)
      Specified by:
      createXPath in interface com.liferay.portal.kernel.xml.SAXReader
    • read

      public com.liferay.portal.kernel.xml.Document read(File file) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(File file, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(InputStream inputStream) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(InputStream inputStream, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(Reader reader) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(Reader reader, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(String xml) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(String xml, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(String xml, com.liferay.portal.kernel.xml.XMLSchema xmlSchema) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(URL url) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • read

      public com.liferay.portal.kernel.xml.Document read(URL url, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException
      Specified by:
      read in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
    • readURL

      public com.liferay.portal.kernel.xml.Document readURL(String url) throws com.liferay.portal.kernel.xml.DocumentException, MalformedURLException
      Specified by:
      readURL in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
      MalformedURLException
    • readURL

      public com.liferay.portal.kernel.xml.Document readURL(String url, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException, MalformedURLException
      Specified by:
      readURL in interface com.liferay.portal.kernel.xml.SAXReader
      Throws:
      com.liferay.portal.kernel.xml.DocumentException
      MalformedURLException
    • selectNodes

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

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathFilterExpression, com.liferay.portal.kernel.xml.Node node)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.SAXReader
    • setSecure

      public void setSecure(boolean secure)
    • setSecureXMLFactoryProvider

      public void setSecureXMLFactoryProvider(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider)
    • sort

      public void sort(List<com.liferay.portal.kernel.xml.Node> nodes, String xPathExpression)
      Specified by:
      sort in interface com.liferay.portal.kernel.xml.SAXReader
    • sort

      public void sort(List<com.liferay.portal.kernel.xml.Node> nodes, String xPathExpression, boolean distinct)
      Specified by:
      sort in interface com.liferay.portal.kernel.xml.SAXReader
    • getSAXReader

      protected org.dom4j.io.SAXReader getSAXReader(boolean validate)
    • getSAXReader

      protected org.dom4j.io.SAXReader getSAXReader(com.liferay.portal.kernel.xml.XMLSchema xmlSchema)