File tree Expand file tree Collapse file tree
main/java/org/apache/commons/jxpath
test/java/org/apache/commons/jxpath/ri/model/jdom Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ under the License.
160160 <optional >true</optional >
161161 </dependency >
162162 <dependency >
163- <groupId >jdom</groupId >
164- <artifactId >jdom </artifactId >
165- <version >1.0 </version >
163+ <groupId >org. jdom</groupId >
164+ <artifactId >jdom2 </artifactId >
165+ <version >2.0.6.1 </version >
166166 <optional >true</optional >
167167 </dependency >
168168 <dependency >
@@ -205,6 +205,10 @@ under the License.
205205 <groupId >commons-digester</groupId >
206206 <artifactId >commons-digester</artifactId >
207207 </exclusion >
208+ <exclusion >
209+ <groupId >jdom</groupId >
210+ <artifactId >jdom</artifactId >
211+ </exclusion >
208212 </exclusions >
209213 </dependency >
210214 </dependencies >
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public class JXPathContextReferenceImpl extends JXPathContext {
9595 // JDOM factory is only registered if JDOM is on the classpath
9696 Object jdomFactory = allocateConditionally (
9797 "org.apache.commons.jxpath.ri.model.jdom.JDOMPointerFactory" ,
98- "org.jdom .Document" );
98+ "org.jdom2 .Document" );
9999 if (jdomFactory != null ) {
100100 nodeFactories .add (jdomFactory );
101101 }
Original file line number Diff line number Diff line change 2323import org .apache .commons .jxpath .ri .QName ;
2424import org .apache .commons .jxpath .ri .model .NodeIterator ;
2525import org .apache .commons .jxpath .ri .model .NodePointer ;
26- import org .jdom .Attribute ;
27- import org .jdom .Element ;
28- import org .jdom .Namespace ;
26+ import org .jdom2 .Attribute ;
27+ import org .jdom2 .Element ;
28+ import org .jdom2 .Namespace ;
2929
3030/**
3131 * An iterator of attributes of a DOM Node.
Original file line number Diff line number Diff line change 1919import org .apache .commons .jxpath .ri .QName ;
2020import org .apache .commons .jxpath .ri .model .NodePointer ;
2121import org .apache .commons .jxpath .util .TypeUtils ;
22- import org .jdom .Attribute ;
22+ import org .jdom2 .Attribute ;
2323
2424/**
2525 * A Pointer that points to a DOM node.
Original file line number Diff line number Diff line change 2323
2424import org .apache .commons .jxpath .ri .model .NodeIterator ;
2525import org .apache .commons .jxpath .ri .model .NodePointer ;
26- import org .jdom .Document ;
27- import org .jdom .Element ;
28- import org .jdom .Namespace ;
26+ import org .jdom2 .Document ;
27+ import org .jdom2 .Element ;
28+ import org .jdom2 .Namespace ;
2929
3030/**
3131 * An iterator of namespaces of a DOM Node.
Original file line number Diff line number Diff line change 2222import org .apache .commons .jxpath .ri .compiler .NodeTest ;
2323import org .apache .commons .jxpath .ri .model .NodeIterator ;
2424import org .apache .commons .jxpath .ri .model .NodePointer ;
25- import org .jdom .Document ;
26- import org .jdom .Element ;
25+ import org .jdom2 .Document ;
26+ import org .jdom2 .Element ;
2727
2828/**
2929 * An iterator of children of a JDOM Node.
Original file line number Diff line number Diff line change 3232import org .apache .commons .jxpath .ri .model .NodeIterator ;
3333import org .apache .commons .jxpath .ri .model .NodePointer ;
3434import org .apache .commons .jxpath .util .TypeUtils ;
35- import org .jdom .Attribute ;
36- import org .jdom .CDATA ;
37- import org .jdom .Comment ;
38- import org .jdom .Document ;
39- import org .jdom .Element ;
40- import org .jdom .Namespace ;
41- import org .jdom .ProcessingInstruction ;
42- import org .jdom .Text ;
35+ import org .jdom2 .Attribute ;
36+ import org .jdom2 .CDATA ;
37+ import org .jdom2 .Comment ;
38+ import org .jdom2 .Document ;
39+ import org .jdom2 .Element ;
40+ import org .jdom2 .Namespace ;
41+ import org .jdom2 .ProcessingInstruction ;
42+ import org .jdom2 .Text ;
4343
4444/**
4545 * A Pointer that points to a DOM node.
Original file line number Diff line number Diff line change 2121import org .apache .commons .jxpath .ri .QName ;
2222import org .apache .commons .jxpath .ri .model .NodePointer ;
2323import org .apache .commons .jxpath .ri .model .NodePointerFactory ;
24- import org .jdom .Document ;
25- import org .jdom .Element ;
24+ import org .jdom2 .Document ;
25+ import org .jdom2 .Element ;
2626
2727/**
2828 * Implements NodePointerFactory for DOM elements.
Original file line number Diff line number Diff line change 1919import java .io .InputStream ;
2020
2121import org .apache .commons .jxpath .JXPathException ;
22- import org .jdom .input .SAXBuilder ;
22+ import org .jdom2 .input .SAXBuilder ;
2323
2424/**
2525 * An implementation of the XMLParser interface that produces a JDOM Document.
Original file line number Diff line number Diff line change 2323import org .apache .commons .jxpath .ri .model .XMLModelTestCase ;
2424import org .apache .commons .jxpath .xml .DocumentContainer ;
2525
26- import org .jdom .Attribute ;
27- import org .jdom .CDATA ;
28- import org .jdom .Document ;
29- import org .jdom .Element ;
30- import org .jdom .Text ;
26+ import org .jdom2 .Attribute ;
27+ import org .jdom2 .CDATA ;
28+ import org .jdom2 .Document ;
29+ import org .jdom2 .Element ;
30+ import org .jdom2 .Text ;
3131
3232/**
3333 * Tests JXPath with JDOM
@@ -136,4 +136,4 @@ private void appendXMLSignature(
136136 pi );
137137 }
138138 }
139- }
139+ }
You can’t perform that action at this time.
0 commit comments