[Mulgara-svn] r887 - trunk/src/jar/query/java/org/mulgara/query/filter/value
pag at mulgara.org
pag at mulgara.org
Thu May 1 17:58:19 UTC 2008
Author: pag
Date: 2008-05-01 10:58:19 -0700 (Thu, 01 May 2008)
New Revision: 887
Modified:
trunk/src/jar/query/java/org/mulgara/query/filter/value/IRI.java
Log:
Added an equals() method to test for IRI equality based on value and not reference
Modified: trunk/src/jar/query/java/org/mulgara/query/filter/value/IRI.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/filter/value/IRI.java 2008-05-01 17:57:17 UTC (rev 886)
+++ trunk/src/jar/query/java/org/mulgara/query/filter/value/IRI.java 2008-05-01 17:58:19 UTC (rev 887)
@@ -49,6 +49,15 @@
}
/** {@inheritDoc} */
+ public boolean equals(Object o) {
+ try {
+ return (o instanceof RDFTerm) ? equals((RDFTerm)o) : false;
+ } catch (QueryException qe) {
+ return false;
+ }
+ }
+
+ /** {@inheritDoc} */
public boolean equals(RDFTerm v) throws QueryException {
return v.isIRI() && value.equals(v.getValue());
}
More information about the Mulgara-svn
mailing list