├── .gitignore ├── javadoc ├── resources │ ├── tab.gif │ ├── titlebar.gif │ ├── background.gif │ └── titlebar_end.gif ├── package-list ├── overview-frame.html ├── com │ └── elsevier │ │ └── spark_xml_utils │ │ ├── xpath │ │ ├── package-frame.html │ │ ├── package-tree.html │ │ ├── package-summary.html │ │ ├── package-use.html │ │ ├── class-use │ │ │ ├── XPathProcessor.html │ │ │ └── XPathException.html │ │ └── XPathException.html │ │ ├── xquery │ │ ├── package-frame.html │ │ ├── package-tree.html │ │ ├── package-summary.html │ │ ├── package-use.html │ │ ├── class-use │ │ │ ├── XQueryProcessor.html │ │ │ └── XQueryException.html │ │ └── XQueryException.html │ │ └── xslt │ │ ├── package-frame.html │ │ ├── class-use │ │ ├── S3URIResolver.html │ │ ├── XSLTProcessor.html │ │ └── XSLTException.html │ │ ├── package-tree.html │ │ ├── package-use.html │ │ └── package-summary.html ├── allclasses-noframe.html ├── allclasses-frame.html ├── index.html ├── deprecated-list.html ├── constant-values.html ├── overview-summary.html ├── index-files │ ├── index-7.html │ ├── index-5.html │ ├── index-3.html │ ├── index-1.html │ ├── index-6.html │ ├── index-2.html │ ├── index-4.html │ └── index-8.html ├── overview-tree.html └── help-doc.html ├── src └── main │ └── java │ └── com │ └── elsevier │ └── spark_xml_utils │ ├── common │ └── IgnoreDoctype.java │ ├── xslt │ ├── XSLTException.java │ └── S3URIResolver.java │ ├── xpath │ └── XPathException.java │ └── xquery │ └── XQueryException.java ├── NOTICE ├── README.md └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | .idea* 4 | target -------------------------------------------------------------------------------- /javadoc/resources/tab.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elsevierlabs-os/spark-xml-utils/HEAD/javadoc/resources/tab.gif -------------------------------------------------------------------------------- /javadoc/resources/titlebar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elsevierlabs-os/spark-xml-utils/HEAD/javadoc/resources/titlebar.gif -------------------------------------------------------------------------------- /javadoc/resources/background.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elsevierlabs-os/spark-xml-utils/HEAD/javadoc/resources/background.gif -------------------------------------------------------------------------------- /javadoc/package-list: -------------------------------------------------------------------------------- 1 | com.elsevier.spark_xml_utils.xpath 2 | com.elsevier.spark_xml_utils.xquery 3 | com.elsevier.spark_xml_utils.xslt 4 | -------------------------------------------------------------------------------- /javadoc/resources/titlebar_end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elsevierlabs-os/spark-xml-utils/HEAD/javadoc/resources/titlebar_end.gif -------------------------------------------------------------------------------- /src/main/java/com/elsevier/spark_xml_utils/common/IgnoreDoctype.java: -------------------------------------------------------------------------------- 1 | package com.elsevier.spark_xml_utils.common; 2 | 3 | import java.io.ByteArrayInputStream; 4 | 5 | import org.xml.sax.EntityResolver; 6 | import org.xml.sax.InputSource; 7 | import org.xml.sax.SAXException; 8 | 9 | public class IgnoreDoctype implements EntityResolver { 10 | 11 | public InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) 12 | throws SAXException, java.io.IOException 13 | { 14 | // Ignore everything 15 | return new InputSource(new ByteArrayInputStream("".getBytes())); 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/elsevier/spark_xml_utils/xslt/XSLTException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c)2015 Elsevier, Inc. 3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.elsevier.spark_xml_utils.xslt; 18 | 19 | /** 20 | * XSLT Exception 21 | * 22 | * @author Darin McBeath 23 | * 24 | */ 25 | public class XSLTException extends Exception { 26 | 27 | private static final long serialVersionUID = 2400267865440323215L; 28 | 29 | public XSLTException(String msg) { 30 | 31 | super(msg); 32 | 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/elsevier/spark_xml_utils/xpath/XPathException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c)2015 Elsevier, Inc. 3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.elsevier.spark_xml_utils.xpath; 18 | 19 | 20 | /** 21 | * XPath Exception 22 | * 23 | * @author Darin McBeath 24 | * 25 | */ 26 | public class XPathException extends Exception { 27 | 28 | private static final long serialVersionUID = -7388865425596520914L; 29 | 30 | public XPathException(String msg) { 31 | 32 | super(msg); 33 | 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/elsevier/spark_xml_utils/xquery/XQueryException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c)2015 Elsevier, Inc. 3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.elsevier.spark_xml_utils.xquery; 18 | 19 | /** 20 | * XQuery Exception 21 | * 22 | * @author Darin McBeath 23 | * 24 | */ 25 | public class XQueryException extends Exception { 26 | 27 | private static final long serialVersionUID = -1838016565780507800L; 28 | 29 | public XQueryException(String msg) { 30 | 31 | super(msg); 32 | 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /javadoc/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |21 | 22 | 23 | -------------------------------------------------------------------------------- /javadoc/com/elsevier/spark_xml_utils/xpath/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
| Package | 70 |Description | 71 |
|---|---|
| com.elsevier.spark_xml_utils.xpath | 75 |76 | |
| com.elsevier.spark_xml_utils.xquery | 79 |80 | |
| com.elsevier.spark_xml_utils.xslt | 83 |84 | |
| Class | 75 |Description | 76 |
|---|---|
| XPathProcessor | 80 |
81 | Class with methods to filter an XPath expression (return a TRUE/FALSE)
82 | against a string of arbitrary xml content and evaluate an XPath expression (return
83 | a serialized response) against a string of arbitrary xml content.
84 | |
85 |
| Exception | 94 |Description | 95 |
|---|---|
| XPathException | 99 |
100 | XPath Exception
101 | |
102 |
| Class | 75 |Description | 76 |
|---|---|
| XQueryProcessor | 80 |
81 | Class with methods to apply an XQuery expression against a string of
82 | arbitrary xml content.
83 | |
84 |
| Exception | 93 |Description | 94 |
|---|---|
| XQueryException | 98 |
99 | XQuery Exception
100 | |
101 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xslt | 80 |81 | |
| Class and Description | 92 |
|---|
| XSLTException
96 | XSLT Exception
97 | |
98 |
| XSLTProcessor
101 | Class that provides xml transforming capabilities (via xslt) for xml passed as a String.
102 | |
103 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xquery | 80 |81 | |
| Class and Description | 92 |
|---|
| XQueryException
96 | XQuery Exception
97 | |
98 |
| XQueryProcessor
101 | Class with methods to apply an XQuery expression against a string of
102 | arbitrary xml content.
103 | |
104 |
| Class | 75 |Description | 76 |
|---|---|
| S3URIResolver | 80 |
81 | URI Resolver that will be used by XLTProcessor when resolving xsl:import and
82 | xsl:include statements.
83 | |
84 |
| XSLTProcessor | 87 |
88 | Class that provides xml transforming capabilities (via xslt) for xml passed as a String.
89 | |
90 |
| Exception | 99 |Description | 100 |
|---|---|
| XSLTException | 104 |
105 | XSLT Exception
106 | |
107 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xpath | 80 |81 | |
| Class and Description | 92 |
|---|
| XPathException
96 | XPath Exception
97 | |
98 |
| XPathProcessor
101 | Class with methods to filter an XPath expression (return a TRUE/FALSE)
102 | against a string of arbitrary xml content and evaluate an XPath expression (return
103 | a serialized response) against a string of arbitrary xml content.
104 | |
105 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xslt | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
static XSLTProcessor |
100 | XSLTProcessor.getInstance(java.lang.String stylesheet)
101 | Get an instance of XSLTProcessor.
102 | |
103 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xslt | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
static XSLTProcessor |
100 | XSLTProcessor.getInstance(java.lang.String stylesheet)
101 | Get an instance of XSLTProcessor.
102 | |
103 |
java.lang.String |
106 | XSLTProcessor.transform(java.lang.String content)
107 | Transform the content.
108 | |
109 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xpath | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
static XPathProcessor |
100 | XPathProcessor.getInstance(java.lang.String xPathExpression)
101 | Get an instance of XPathProcessor.
102 | |
103 |
static XPathProcessor |
106 | XPathProcessor.getInstance(java.lang.String xPathExpression,
107 | java.util.HashMap<java.lang.String,java.lang.String> namespaceMappings)
108 | Get an instance of XPathProcessor.
109 | |
110 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xquery | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
static XQueryProcessor |
100 | XQueryProcessor.getInstance(java.lang.String xQueryExpression)
101 | Get an instance of XQueryProcessor.
102 | |
103 |
static XQueryProcessor |
106 | XQueryProcessor.getInstance(java.lang.String xQueryExpression,
107 | java.util.HashMap<java.lang.String,java.lang.String> namespaceMappings)
108 | Get an instance of XQueryProcessor.
109 | |
110 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xquery | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
java.lang.String |
100 | XQueryProcessor.evaluateString(java.lang.String content)
101 | Evaluate the content with the XQuery expression specified when creating the XQueryProcessor
102 | and return a serialized response.
103 | |
104 |
static XQueryProcessor |
107 | XQueryProcessor.getInstance(java.lang.String xQueryExpression)
108 | Get an instance of XQueryProcessor.
109 | |
110 |
static XQueryProcessor |
113 | XQueryProcessor.getInstance(java.lang.String xQueryExpression,
114 | java.util.HashMap<java.lang.String,java.lang.String> namespaceMappings)
115 | Get an instance of XQueryProcessor.
116 | |
117 |
| Package | 75 |Description | 76 |
|---|---|
| com.elsevier.spark_xml_utils.xpath | 80 |81 | |
| Modifier and Type | 95 |Method and Description | 96 |
|---|---|
java.lang.String |
100 | XPathProcessor.evaluateString(java.lang.String content)
101 | Evaluate the content with the XPath expression specified when creating the XPathProcessor
102 | and return a serialized response.
103 | |
104 |
boolean |
107 | XPathProcessor.filterString(java.lang.String content)
108 | Filter the content with the XPath expression specified when creating the XPathProcessor.
109 | |
110 |
static XPathProcessor |
113 | XPathProcessor.getInstance(java.lang.String xPathExpression)
114 | Get an instance of XPathProcessor.
115 | |
116 |
static XPathProcessor |
119 | XPathProcessor.getInstance(java.lang.String xPathExpression,
120 | java.util.HashMap<java.lang.String,java.lang.String> namespaceMappings)
121 | Get an instance of XPathProcessor.
122 | |
123 |
public class XPathException
114 | extends java.lang.Exception
115 | | Constructor and Description | 135 |
|---|
XPathException(java.lang.String msg) |
138 |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic XPathException(java.lang.String msg)183 |
public class XQueryException
114 | extends java.lang.Exception
115 | | Constructor and Description | 135 |
|---|
XQueryException(java.lang.String msg) |
138 |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic XQueryException(java.lang.String msg)183 |
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
74 |Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
78 |Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
90 |Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
110 |Each annotation type has its own separate page with the following sections:
114 |Each enum has its own separate page with the following sections:
125 |Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
135 |There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
147 |The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
151 |These links take you to the next or previous class, interface, package, or related page.
155 |These links show and hide the HTML frames. All pages are available with or without frames.
159 |The All Classes link shows all classes and interfaces except non-static nested types.
163 |Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
167 |The Constant Field Values page lists the static final fields and their values.
171 |