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