kstaken 2002/07/20 13:26:32
Modified: java/src/org/apache/xindice/client/xmldb/xmlrpc
CollectionImpl.java
java/src/org/apache/xindice/core FaultCodes.java
Log:
Fixing XPath queries.
Revision Changes Path
1.7 +3 -4
xml-xindice/java/src/org/apache/xindice/client/xmldb/xmlrpc/CollectionImpl.java
Index: CollectionImpl.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/client/xmldb/xmlrpc/CollectionImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- CollectionImpl.java 19 Jul 2002 03:28:37 -0000 1.6
+++ CollectionImpl.java 20 Jul 2002 20:26:32 -0000 1.7
@@ -485,10 +485,9 @@
Node n = nodes.item(i);
String documentId = ((Element) n).getAttributeNS(
- QUERY_NS, "key");
-
+ QUERY_NS, "key");
XMLResourceImpl resource = new XMLResourceImpl(documentId,
- TextWriter.toString(n), this);
+ documentId, this, TextWriter.toString(n));
rs.addResource(resource);
}
1.4 +1 -56
xml-xindice/java/src/org/apache/xindice/core/FaultCodes.java
Index: FaultCodes.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/FaultCodes.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FaultCodes.java 12 Jul 2002 03:06:17 -0000 1.3
+++ FaultCodes.java 20 Jul 2002 20:26:32 -0000 1.4
@@ -485,61 +485,6 @@
}
/**
- * createAPIException creates an APIException instance based
- * on the specified parameters.
- *
- * @param code The Fault Code
- * @return An APIException instance
- */
- /*public static APIException createAPIException(int code) {
- return new APIException(code, getMessage(code), "");
- }*/
-
- /**
- * createAPIException creates an APIException instance based
- * on the specified parameters.
- *
- * @param code The Fault Code
- * @param message A specific message to associate
- * @return An APIException instance
- */
- /*public static APIException createAPIException(int code, String message)
{
- return new APIException(code, getMessage(code), message);
- }*/
-
- /**
- * createAPIException creates an APIException instance based
- * on the specified Exception. If the Exception is a DBException,
- * it will extract any important information from it (like fault
- * codes and messages)
- *
- * @param e The Exception to use
- * @return An APIException instance
- */
- /*public static APIException createAPIException(Exception e) {
- if ( e instanceof APIException )
- return (APIException)e;
- else {
- // provide as much information as possible about the exception
- String m = e.toString();
- if ( m == null ) {
- // should never happen
- m = "Exception.toString() returned null in
FaultCodes.APIException(Exception)";
- }
- e.printStackTrace();
-
- if ( e instanceof RuntimeException )
- return new APIException(JAVA_RUNTIME_ERROR,
getMessage(JAVA_RUNTIME_ERROR), m);
- else if ( e instanceof DBException ) {
- DBException d = (DBException)e;
- return new APIException(d.faultCode, getMessage(d.faultCode), m);
- }
- else
- return new APIException(GEN_UNKNOWN, getMessage(GEN_UNKNOWN), m);
- }
- }*/
-
- /**
* createXMLDBException creates an XMLDBException instance based
* on the specified Exception. If the Exception is a DBException,
* it will extract any important information from it (like fault