01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.algebra;
07:
08: /**
09: * The STR function, as defined in <a
10: * href="http://www.w3.org/TR/rdf-sparql-query/#func-str">SPARQL Query Language
11: * for RDF</a>; returns the label of literals or the string representation of
12: * URIs.
13: *
14: * @author Arjohn Kampman
15: */
16: public class Str extends UnaryValueOperator {
17:
18: /*--------------*
19: * Constructors *
20: *--------------*/
21:
22: public Str() {
23: }
24:
25: public Str(ValueExpr arg) {
26: super (arg);
27: }
28:
29: /*---------*
30: * Methods *
31: *---------*/
32:
33: public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
34: throws X {
35: visitor.meet(this );
36: }
37:
38: @Override
39: public Str clone() {
40: return (Str) super.clone();
41: }
42: }
|