1 22 23 24 package org.xquark.xquery.parser; 25 26 import org.xquark.xquery.typing.TypeException; 27 28 29 public class ValueText extends Value implements Cloneable { 30 private static final String RCSRevision = "$Revision: 1.7 $"; 31 private static final String RCSName = "$Name: $"; 32 33 34 38 public void accept(ParserVisitor visitor) throws XQueryException { 39 visitor.visit(this); 40 41 } 42 43 47 public ValueText( String value, XQueryModule parentModule) throws TypeException, XQueryException { 48 super(value); 49 setParentModule(parentModule); 50 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 51 accept(parentModule.getStaticContext().getTypeVisitor()); 52 } 53 54 58 public String getTextValue() { return value; } 59 public Object getObjectValue() { return getTextValue(); } 60 61 } 62 63 64 65 | Popular Tags |