1 23 24 25 package org.xquark.xquery.parser; 26 27 import org.xquark.xquery.typing.TypeException; 28 29 30 public abstract class Value extends XQueryExpression implements Cloneable { 31 private static final String RCSRevision = "$Revision: 1.8 $"; 32 private static final String RCSName = "$Name: $"; 33 34 protected String value = null; 36 37 41 public void accept(ParserVisitor visitor) throws XQueryException { 42 visitor.visit(this); 43 } 44 45 49 public Value(String value) throws TypeException, XQueryException { 50 setValue(value); 51 } 52 53 57 public String getValue() { return value; } 58 abstract public Object getObjectValue(); 59 public void setValue(String value) throws XQueryException { 60 if (value == null) 62 throw new XQueryException("value of Value cannot be null"); 63 this.value = value; 65 } 66 67 } 68 69 70 71 | Popular Tags |