Package com.liferay.portal.xml
Class SAXReaderImpl
Object
com.liferay.portal.xml.SAXReaderImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.xml.SAXReader
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.xml.Attribute
createAttribute
(com.liferay.portal.kernel.xml.Element element, com.liferay.portal.kernel.xml.QName qName, String value) com.liferay.portal.kernel.xml.Attribute
createAttribute
(com.liferay.portal.kernel.xml.Element element, String name, String value) com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
createDocument
(com.liferay.portal.kernel.xml.Element rootElement) com.liferay.portal.kernel.xml.Document
createDocument
(String encoding) com.liferay.portal.kernel.xml.Element
createElement
(com.liferay.portal.kernel.xml.QName qName) com.liferay.portal.kernel.xml.Element
createElement
(String name) com.liferay.portal.kernel.xml.Entity
createEntity
(String name, String text) com.liferay.portal.kernel.xml.Namespace
createNamespace
(String uri) com.liferay.portal.kernel.xml.Namespace
createNamespace
(String prefix, String uri) com.liferay.portal.kernel.xml.ProcessingInstruction
createProcessingInstruction
(String target, String data) com.liferay.portal.kernel.xml.ProcessingInstruction
createProcessingInstruction
(String target, Map<String, String> data) com.liferay.portal.kernel.xml.QName
createQName
(String localName) com.liferay.portal.kernel.xml.QName
createQName
(String localName, com.liferay.portal.kernel.xml.Namespace namespace) com.liferay.portal.kernel.xml.Text
createText
(String text) com.liferay.portal.kernel.xml.XPath
createXPath
(String xPathExpression) com.liferay.portal.kernel.xml.XPath
createXPath
(String xPathExpression, String prefix, String namespace) com.liferay.portal.kernel.xml.XPath
createXPath
(String xPathExpression, Map<String, String> namespaceContextMap) protected org.dom4j.io.SAXReader
getSAXReader
(boolean validate) protected org.dom4j.io.SAXReader
getSAXReader
(com.liferay.portal.kernel.xml.XMLSchema xmlSchema) com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
read
(InputStream inputStream) com.liferay.portal.kernel.xml.Document
read
(InputStream inputStream, boolean validate) com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
com.liferay.portal.kernel.xml.Document
List<com.liferay.portal.kernel.xml.Node>
selectNodes
(String xPathFilterExpression, com.liferay.portal.kernel.xml.Node node) List<com.liferay.portal.kernel.xml.Node>
selectNodes
(String xPathFilterExpression, List<com.liferay.portal.kernel.xml.Node> nodes) void
setSecure
(boolean secure) void
setSecureXMLFactoryProvider
(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider) void
void
static List<com.liferay.portal.kernel.xml.Attribute>
toNewAttributes
(List<org.dom4j.Attribute> oldAttributes) static List<com.liferay.portal.kernel.xml.Element>
toNewElements
(List<org.dom4j.Element> oldElements) static List<com.liferay.portal.kernel.xml.Namespace>
toNewNamespaces
(List<org.dom4j.Namespace> oldNamespaces) static List<com.liferay.portal.kernel.xml.Node>
toNewNodes
(List<org.dom4j.Node> oldNodes) static List<com.liferay.portal.kernel.xml.ProcessingInstruction>
toNewProcessingInstructions
(List<org.dom4j.ProcessingInstruction> oldProcessingInstructions) static List<org.dom4j.Attribute>
toOldAttributes
(List<com.liferay.portal.kernel.xml.Attribute> newAttributes) static List<org.dom4j.Node>
toOldNodes
(List<com.liferay.portal.kernel.xml.Node> newNodes) static List<org.dom4j.ProcessingInstruction>
toOldProcessingInstructions
(List<com.liferay.portal.kernel.xml.ProcessingInstruction> newProcessingInstructions)
-
Constructor Details
-
SAXReaderImpl
public SAXReaderImpl()
-
-
Method Details
-
toNewAttributes
-
toNewElements
-
toNewNamespaces
-
toNewNodes
-
toNewProcessingInstructions
-
toOldAttributes
-
toOldNodes
-
toOldProcessingInstructions
-
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 interfacecom.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 interfacecom.liferay.portal.kernel.xml.SAXReader
-
createDocument
public com.liferay.portal.kernel.xml.Document createDocument()- Specified by:
createDocument
in interfacecom.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 interfacecom.liferay.portal.kernel.xml.SAXReader
-
createDocument
- Specified by:
createDocument
in interfacecom.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 interfacecom.liferay.portal.kernel.xml.SAXReader
-
createElement
- Specified by:
createElement
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createEntity
- Specified by:
createEntity
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createNamespace
- Specified by:
createNamespace
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createNamespace
- Specified by:
createNamespace
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createProcessingInstruction
public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, Map<String, String> data) - Specified by:
createProcessingInstruction
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createProcessingInstruction
public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, String data) - Specified by:
createProcessingInstruction
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createQName
- Specified by:
createQName
in interfacecom.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 interfacecom.liferay.portal.kernel.xml.SAXReader
-
createText
- Specified by:
createText
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
- Specified by:
createXPath
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, Map<String, String> namespaceContextMap) - Specified by:
createXPath
in interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, String prefix, String namespace) - Specified by:
createXPath
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.xml.SAXReader
-
setSecure
public void setSecure(boolean secure) -
setSecureXMLFactoryProvider
public void setSecureXMLFactoryProvider(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider) -
sort
- Specified by:
sort
in interfacecom.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 interfacecom.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)
-