abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r442040 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/util/ core/src/main/java/org/apache/abdera/xpath/ examples/src/main/java/org/apache/abdera/examples/xsltxpath/ parser/src/main/java/org/apache/abdera/parser/sta...
Date Mon, 11 Sep 2006 00:02:29 GMT
Author: jmsnell
Date: Sun Sep 10 17:02:28 2006
New Revision: 442040

URL: http://svn.apache.org/viewvc?view=rev&rev=442040
Log:
Rename isTrue to booleanValueOf to be consistent with the valueOf and numericValueOf methods

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/xpath/XPath.java
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/xsltxpath/XPathExample.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMXPath.java
    incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/DSigThirdPartyVerifyTest.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java?view=diff&rev=442040&r1=442039&r2=442040
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Sun Sep 10 17:02:28 2006
@@ -68,8 +68,8 @@
     return valueOf(path, base, getDefaultNamespaces());
   }
 
-  public boolean isTrue(String path, Base base) throws XPathException {
-    return isTrue(path, base, getDefaultNamespaces());
+  public boolean booleanValueOf(String path, Base base) throws XPathException {
+    return booleanValueOf(path, base, getDefaultNamespaces());
   }
 
   public Number numericValueOf(String path, Base base) throws XPathException {

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/xpath/XPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/xpath/XPath.java?view=diff&rev=442040&r1=442039&r2=442040
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/xpath/XPath.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/xpath/XPath.java Sun
Sep 10 17:02:28 2006
@@ -45,7 +45,7 @@
     String path, 
     Base base) throws XPathException;
   
-  boolean isTrue(
+  boolean booleanValueOf(
     String path, 
     Base base) throws XPathException; 
   
@@ -74,7 +74,7 @@
     Base base, 
     Map<String,String> namespaces) throws XPathException;
   
-  boolean isTrue(
+  boolean booleanValueOf(
     String path, 
     Base base, 
     Map<String,String> namespaces) throws XPathException; 

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/xsltxpath/XPathExample.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/xsltxpath/XPathExample.java?view=diff&rev=442040&r1=442039&r2=442040
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/xsltxpath/XPathExample.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/xsltxpath/XPathExample.java
Sun Sep 10 17:02:28 2006
@@ -39,7 +39,7 @@
     
     System.out.println(xpath.evaluate("count(/a:feed)", feed));         // 1.0
     System.out.println(xpath.numericValueOf("count(/a:feed)", feed));   // 1.0
-    System.out.println(xpath.isTrue("/a:feed/a:entry", feed));          // true (the feed
has an entry)
+    System.out.println(xpath.booleanValueOf("/a:feed/a:entry", feed));          // true (the
feed has an entry)
     System.out.println(xpath.valueOf("/a:feed/a:entry/a:title", feed)); // Atom-Powered Robots
Run Amok
     System.out.println(xpath.selectNodes("/a:feed/a:entry", feed));     // every entry
     System.out.println(xpath.selectSingleNode("/a:feed", feed));

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMXPath.java?view=diff&rev=442040&r1=442039&r2=442040
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMXPath.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMXPath.java
Sun Sep 10 17:02:28 2006
@@ -100,7 +100,7 @@
     }
   }
   
-  public boolean isTrue(
+  public boolean booleanValueOf(
     String path, 
     Base base, 
     Map<String,String> namespaces) 

Modified: incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/DSigThirdPartyVerifyTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/DSigThirdPartyVerifyTest.java?view=diff&rev=442040&r1=442039&r2=442040
==============================================================================
--- incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/DSigThirdPartyVerifyTest.java
(original)
+++ incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/DSigThirdPartyVerifyTest.java
Sun Sep 10 17:02:28 2006
@@ -110,7 +110,7 @@
     
     XPath xpath = abdera.getXPath();
     assertTrue(
-      xpath.isTrue(
+      xpath.booleanValueOf(
         "/Result/SignatureVerifies[text()='true']", 
         result));
 



Mime
View raw message