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.AttributecreateAttribute(com.liferay.portal.kernel.xml.Element element, com.liferay.portal.kernel.xml.QName qName, String value) com.liferay.portal.kernel.xml.AttributecreateAttribute(com.liferay.portal.kernel.xml.Element element, String name, String value) com.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.DocumentcreateDocument(com.liferay.portal.kernel.xml.Element rootElement) com.liferay.portal.kernel.xml.DocumentcreateDocument(String encoding) com.liferay.portal.kernel.xml.ElementcreateElement(com.liferay.portal.kernel.xml.QName qName) com.liferay.portal.kernel.xml.ElementcreateElement(String name) com.liferay.portal.kernel.xml.EntitycreateEntity(String name, String text) com.liferay.portal.kernel.xml.NamespacecreateNamespace(String uri) com.liferay.portal.kernel.xml.NamespacecreateNamespace(String prefix, String uri) com.liferay.portal.kernel.xml.ProcessingInstructioncreateProcessingInstruction(String target, String data) com.liferay.portal.kernel.xml.ProcessingInstructioncreateProcessingInstruction(String target, Map<String, String> data) com.liferay.portal.kernel.xml.QNamecreateQName(String localName) com.liferay.portal.kernel.xml.QNamecreateQName(String localName, com.liferay.portal.kernel.xml.Namespace namespace) com.liferay.portal.kernel.xml.TextcreateText(String text) com.liferay.portal.kernel.xml.XPathcreateXPath(String xPathExpression) com.liferay.portal.kernel.xml.XPathcreateXPath(String xPathExpression, String prefix, String namespace) com.liferay.portal.kernel.xml.XPathcreateXPath(String xPathExpression, Map<String, String> namespaceContextMap) protected org.dom4j.io.SAXReadergetSAXReader(boolean validate) protected org.dom4j.io.SAXReadergetSAXReader(com.liferay.portal.kernel.xml.XMLSchema xmlSchema) com.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentread(InputStream inputStream) com.liferay.portal.kernel.xml.Documentread(InputStream inputStream, boolean validate) com.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.Documentcom.liferay.portal.kernel.xml.DocumentList<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) voidsetSecure(boolean secure) voidsetSecureXMLFactoryProvider(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider) voidvoidstatic 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:
createAttributein 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:
createAttributein interfacecom.liferay.portal.kernel.xml.SAXReader
-
createDocument
public com.liferay.portal.kernel.xml.Document createDocument()- Specified by:
createDocumentin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createDocument
public com.liferay.portal.kernel.xml.Document createDocument(com.liferay.portal.kernel.xml.Element rootElement) - Specified by:
createDocumentin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createDocument
- Specified by:
createDocumentin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createElement
public com.liferay.portal.kernel.xml.Element createElement(com.liferay.portal.kernel.xml.QName qName) - Specified by:
createElementin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createElement
- Specified by:
createElementin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createEntity
- Specified by:
createEntityin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createNamespace
- Specified by:
createNamespacein interfacecom.liferay.portal.kernel.xml.SAXReader
-
createNamespace
- Specified by:
createNamespacein interfacecom.liferay.portal.kernel.xml.SAXReader
-
createProcessingInstruction
public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, Map<String, String> data) - Specified by:
createProcessingInstructionin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createProcessingInstruction
public com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target, String data) - Specified by:
createProcessingInstructionin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createQName
- Specified by:
createQNamein 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:
createQNamein interfacecom.liferay.portal.kernel.xml.SAXReader
-
createText
- Specified by:
createTextin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
- Specified by:
createXPathin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, Map<String, String> namespaceContextMap) - Specified by:
createXPathin interfacecom.liferay.portal.kernel.xml.SAXReader
-
createXPath
public com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression, String prefix, String namespace) - Specified by:
createXPathin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readin 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:
readURLin interfacecom.liferay.portal.kernel.xml.SAXReader- Throws:
com.liferay.portal.kernel.xml.DocumentExceptionMalformedURLException
-
readURL
public com.liferay.portal.kernel.xml.Document readURL(String url, boolean validate) throws com.liferay.portal.kernel.xml.DocumentException, MalformedURLException - Specified by:
readURLin interfacecom.liferay.portal.kernel.xml.SAXReader- Throws:
com.liferay.portal.kernel.xml.DocumentExceptionMalformedURLException
-
selectNodes
public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathFilterExpression, List<com.liferay.portal.kernel.xml.Node> nodes) - Specified by:
selectNodesin 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:
selectNodesin 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:
sortin interfacecom.liferay.portal.kernel.xml.SAXReader
-
sort
public void sort(List<com.liferay.portal.kernel.xml.Node> nodes, String xPathExpression, boolean distinct) - Specified by:
sortin 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)
-