[Mulgara-svn] r816 - branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/value

pag at mulgara.org pag at mulgara.org
Wed Apr 23 03:36:53 UTC 2008


Author: pag
Date: 2008-04-22 20:36:51 -0700 (Tue, 22 Apr 2008)
New Revision: 816

Modified:
   branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/value/AbstractAccessorFn.java
Log:
Added a constructor with multiple operands

Modified: branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/value/AbstractAccessorFn.java
===================================================================
--- branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/value/AbstractAccessorFn.java	2008-04-22 17:32:21 UTC (rev 815)
+++ branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/value/AbstractAccessorFn.java	2008-04-23 03:36:51 UTC (rev 816)
@@ -21,7 +21,7 @@
  * Represents a function that accesses an RDF value.
  * This node acts as an RDFTerm and as a ValueLiteral, so that it can act as
  * either a Literal (Simple or Typed) or an IRI.
- * By default, this object will at as a literal.
+ * By default, this object will act as a literal.
  *
  * @created Mar 17, 2008
  * @author Paul Gearon
@@ -33,11 +33,24 @@
   /** The operand for the function */
   RDFTerm operand;
 
+  /**
+   * Single argument constructor.
+   * @param operand The single argument for this function.
+   */
   public AbstractAccessorFn(RDFTerm operand) {
     super(operand);
     this.operand = operand;
   }
 
+  /**
+   * Multiple argument constructor.
+   * @param operands All the arguments for this function, in order.
+   */
+  public AbstractAccessorFn(RDFTerm... operands) {
+    super(operands);
+    this.operand = operands[0];
+  }
+
   /** @see org.mulgara.query.filter.value.ValueLiteral#getType() */
   public IRI getType() throws QueryException {
     return SimpleLiteral.STRING_TYPE;




More information about the Mulgara-svn mailing list