01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.parser.serql.ast;
07:
08: public class ASTURI extends ASTValue {
09:
10: private String value;
11:
12: public ASTURI(int id) {
13: super (id);
14: }
15:
16: public ASTURI(SyntaxTreeBuilder p, int id) {
17: super (p, id);
18: }
19:
20: public ASTURI(int id, String uri) {
21: this (id);
22: setValue(uri);
23: }
24:
25: @Override
26: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
27: Object data) throws VisitorException {
28: return visitor.visit(this , data);
29: }
30:
31: public String getValue() {
32: return value;
33: }
34:
35: public void setValue(String value) {
36: this .value = value;
37: }
38:
39: @Override
40: public String toString() {
41: return super .toString() + " (" + value + ")";
42: }
43: }
|