1 22 23 28 package org.xquark.xquery.parser; 29 30 import org.xquark.xquery.typing.TypeException; 31 32 public class ComputedNamespace extends XQueryUnaryOperatorExpression implements Cloneable { 33 private static final String RCSRevision = "$Revision: 1.5 $"; 34 private static final String RCSName = "$Name: $"; 35 36 String ncname = null; 37 41 public void accept(ParserVisitor visitor) throws XQueryException { 42 visitor.visit(this); 43 } 44 45 49 public ComputedNamespace(String ncname, XQueryExpression value, XQueryModule parentModule) throws TypeException, XQueryException { 50 super(value); 51 setNcname(ncname); 52 setParentModule(parentModule); 53 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 54 accept(parentModule.getStaticContext().getTypeVisitor()); 55 } 56 57 61 public XQueryExpression getComment() { 62 return expression; 63 } 64 65 public void setNcname(String ncname) { 66 this.ncname = ncname; 67 } 68 69 public String getNcname() { 70 return ncname; 71 } 72 73 } 74 | Popular Tags |