1 22 23 24 package org.xquark.xquery.parser.primitivefunctions.fnfunctions; 25 26 import java.util.ArrayList ; 27 28 import org.xquark.xquery.parser.*; 29 import org.xquark.xquery.typing.TypeException; 30 31 40 public class FunctionNAMESPACE_URI extends PrimitiveFunctionCall { 41 42 private static final String RCSRevision = "$Revision: 1.6 $"; 43 private static final String RCSName = "$Name: $"; 44 45 49 public void accept(ParserVisitor visitor) throws XQueryException { 50 visitor.visit(this); 51 } 52 53 57 public FunctionNAMESPACE_URI(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException { 58 super(new QName("namespace-uri",null),args); 59 setParentModule(parentModule); 60 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 61 accept(parentModule.getStaticContext().getTypeVisitor()); 62 } 63 64 public void setArguments(ArrayList arguments) throws XQueryException { 66 if (arguments == null || arguments.size() != 1) throw new XQueryException("Only partial specification, function namespace-uri should have one argument"); 67 super.setArguments(arguments); 68 } 69 70 } 71 72 73 | Popular Tags |