public class SAXReaderImpl
extends Object
implements com.liferay.portal.kernel.xml.SAXReader
| Constructor and Description |
|---|
SAXReaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.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 |
createDocument() |
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,
Map<String,String> data) |
com.liferay.portal.kernel.xml.ProcessingInstruction |
createProcessingInstruction(String target,
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,
Map<String,String> namespaceContextMap) |
com.liferay.portal.kernel.xml.XPath |
createXPath(String xPathExpression,
String prefix,
String namespace) |
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 |
read(File file) |
com.liferay.portal.kernel.xml.Document |
read(File file,
boolean validate) |
com.liferay.portal.kernel.xml.Document |
read(InputStream is) |
com.liferay.portal.kernel.xml.Document |
read(InputStream is,
boolean validate) |
com.liferay.portal.kernel.xml.Document |
read(Reader reader) |
com.liferay.portal.kernel.xml.Document |
read(Reader reader,
boolean validate) |
com.liferay.portal.kernel.xml.Document |
read(String xml) |
com.liferay.portal.kernel.xml.Document |
read(String xml,
boolean validate) |
com.liferay.portal.kernel.xml.Document |
read(String xml,
com.liferay.portal.kernel.xml.XMLSchema xmlSchema) |
com.liferay.portal.kernel.xml.Document |
read(URL url) |
com.liferay.portal.kernel.xml.Document |
read(URL url,
boolean validate) |
com.liferay.portal.kernel.xml.Document |
readURL(String url) |
com.liferay.portal.kernel.xml.Document |
readURL(String url,
boolean validate) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(String xPathFilterExpression,
List<com.liferay.portal.kernel.xml.Node> nodes) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(String xPathFilterExpression,
com.liferay.portal.kernel.xml.Node node) |
void |
setSecure(boolean secure) |
void |
setSecureXMLFactoryProvider(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider) |
void |
sort(List<com.liferay.portal.kernel.xml.Node> nodes,
String xPathExpression) |
void |
sort(List<com.liferay.portal.kernel.xml.Node> nodes,
String xPathExpression,
boolean distinct) |
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) |
public static List<com.liferay.portal.kernel.xml.Attribute> toNewAttributes(List<org.dom4j.Attribute> oldAttributes)
public static List<com.liferay.portal.kernel.xml.Element> toNewElements(List<org.dom4j.Element> oldElements)
public static List<com.liferay.portal.kernel.xml.Namespace> toNewNamespaces(List<org.dom4j.Namespace> oldNamespaces)
public static List<com.liferay.portal.kernel.xml.Node> toNewNodes(List<org.dom4j.Node> oldNodes)
public static List<com.liferay.portal.kernel.xml.ProcessingInstruction> toNewProcessingInstructions(List<org.dom4j.ProcessingInstruction> oldProcessingInstructions)
public static List<org.dom4j.Attribute> toOldAttributes(List<com.liferay.portal.kernel.xml.Attribute> newAttributes)
public static List<org.dom4j.Node> toOldNodes(List<com.liferay.portal.kernel.xml.Node> newNodes)
public static List<org.dom4j.ProcessingInstruction> toOldProcessingInstructions(List<com.liferay.portal.kernel.xml.ProcessingInstruction> newProcessingInstructions)
public com.liferay.portal.kernel.xml.Attribute createAttribute(com.liferay.portal.kernel.xml.Element element,
com.liferay.portal.kernel.xml.QName qName,
String value)
createAttribute in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Attribute createAttribute(com.liferay.portal.kernel.xml.Element element,
String name,
String value)
createAttribute in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Document createDocument()
createDocument in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Document createDocument(com.liferay.portal.kernel.xml.Element rootElement)
createDocument in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Document createDocument(String encoding)
createDocument in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Element createElement(com.liferay.portal.kernel.xml.QName qName)
createElement in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Element createElement(String name)
createElement in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Entity createEntity(String name,
String text)
createEntity in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Namespace createNamespace(String uri)
createNamespace in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Namespace createNamespace(String prefix,
String uri)
createNamespace in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target,
Map<String,String> data)
createProcessingInstruction in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.ProcessingInstruction createProcessingInstruction(String target,
String data)
createProcessingInstruction in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.QName createQName(String localName)
createQName in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.QName createQName(String localName,
com.liferay.portal.kernel.xml.Namespace namespace)
createQName in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Text createText(String text)
createText in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression)
createXPath in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression,
Map<String,String> namespaceContextMap)
createXPath in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.XPath createXPath(String xPathExpression,
String prefix,
String namespace)
createXPath in interface com.liferay.portal.kernel.xml.SAXReaderpublic com.liferay.portal.kernel.xml.Document read(File file)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(File file,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(InputStream is)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(InputStream is,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(Reader reader)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(Reader reader,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(String xml)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(String xml,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(String xml,
com.liferay.portal.kernel.xml.XMLSchema xmlSchema)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(URL url)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document read(URL url,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException
read in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionpublic com.liferay.portal.kernel.xml.Document readURL(String url)
throws com.liferay.portal.kernel.xml.DocumentException,
MalformedURLException
readURL in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionMalformedURLExceptionpublic com.liferay.portal.kernel.xml.Document readURL(String url,
boolean validate)
throws com.liferay.portal.kernel.xml.DocumentException,
MalformedURLException
readURL in interface com.liferay.portal.kernel.xml.SAXReadercom.liferay.portal.kernel.xml.DocumentExceptionMalformedURLExceptionpublic List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathFilterExpression,
List<com.liferay.portal.kernel.xml.Node> nodes)
selectNodes in interface com.liferay.portal.kernel.xml.SAXReaderpublic List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathFilterExpression,
com.liferay.portal.kernel.xml.Node node)
selectNodes in interface com.liferay.portal.kernel.xml.SAXReaderpublic void setSecure(boolean secure)
public void setSecureXMLFactoryProvider(com.liferay.portal.kernel.security.xml.SecureXMLFactoryProvider secureXMLFactoryProvider)
public void sort(List<com.liferay.portal.kernel.xml.Node> nodes,
String xPathExpression)
sort in interface com.liferay.portal.kernel.xml.SAXReaderpublic void sort(List<com.liferay.portal.kernel.xml.Node> nodes,
String xPathExpression,
boolean distinct)
sort in interface com.liferay.portal.kernel.xml.SAXReaderprotected org.dom4j.io.SAXReader getSAXReader(boolean validate)
protected org.dom4j.io.SAXReader getSAXReader(com.liferay.portal.kernel.xml.XMLSchema xmlSchema)