public QueryString() { this._FunctionName = new QName(RequestModule.Namespace, "query-string"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '), }; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '*'); }
public SetContentType() { this._FunctionName = new QName(ResponseModule.Namespace, "set-content-type"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '), }; this.resultType = new XdmSequenceType(XdmAnyItemType.Instance, '?'); }
public AbsolutePath() { this._FunctionName = new QName(UtilModule.Namespace, "absolute-path"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' ') }; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '); }
public AppSettings() { this._FunctionName = new QName(UtilModule.Namespace, "app-settings"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' ') }; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '*'); }
public Send(SaxonItemFactory itemFactory) { this.itemFactory = itemFactory; this._FunctionName = new QName(XPathSmtpClient.Namespace, "send"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmNodeKind.Element, ' ') }; this.resultType = new XdmSequenceType(XdmNodeKind.Element, ' '); }
public Set() { this._FunctionName = new QName(SessionModule.Namespace, "set"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '), new XdmSequenceType(XdmAnyItemType.Instance, ' '), }; this.resultType = new XdmSequenceType(XdmAnyItemType.Instance, '?'); }
public ReferrerUrlComponents() { this._FunctionName = new QName(RequestModule.Namespace, "referrer-url-components"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '), new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' ') }; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '?'); }
public SendRequest(SaxonItemFactory itemFactory) { this.itemFactory = itemFactory; this._FunctionName = new QName(XPathHttpClient.Namespace, "send-request"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmNodeKind.Element, '?'), new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '?'), new XdmSequenceType(XdmAnyItemType.Instance, '*') }; this.resultType = new XdmSequenceType(XdmAnyItemType.Instance, '+'); }
public override JSequenceType getResultType(JSequenceType[] argumentTypes) { XdmSequenceType[] dt = new XdmSequenceType[argumentTypes.Length]; for (int i = 0; i < dt.Length; i++) { dt[i] = XdmSequenceType.FromSequenceType(argumentTypes[i]); } XdmSequenceType rt = definition.ResultType(dt); return(rt.ToSequenceType()); }
public ValidateWithSchematron(SaxonItemFactory itemFactory) { this.itemFactory = itemFactory; this._FunctionName = new QName(ValidationModule.Namespace, "validate-with-schematron"); this._ArgumentTypes = new[] { new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '), new XdmSequenceType(XdmAnyNodeType.Instance, ' '), new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '?'), new XdmSequenceType(XdmAnyNodeType.Instance, '*'), }; this.resultType = new XdmSequenceType(XdmNodeKind.Document, ' '); }
public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes) { return ArgumentTypes[0]; }
public HttpMethod() { this._FunctionName = new QName(RequestModule.Namespace, "http-method"); this._ArgumentTypes = new XdmSequenceType[0]; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '); }
public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes) { return new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_DOUBLE), ' '); }
public IsLocal() { this._FunctionName = new QName(RequestModule.Namespace, "is-local"); this._ArgumentTypes = new XdmSequenceType[0]; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_BOOLEAN), ' '); }
public UrlAppRelativeFilePath() { this._FunctionName = new QName(RequestModule.Namespace, "url-app-relative-file-path"); this._ArgumentTypes = new XdmSequenceType[0]; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), ' '); }
public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes) { return new XdmSequenceType(XdmAnyNodeType.Instance, '*'); }
/// <summary> /// Method returning the declared type of the return value from the function. The type of the return /// value may be known more precisely if the types of the arguments are known (for example, some functions /// return a value that is the same type as the first argument. The method is therefore called supplying the /// static types of the actual arguments present in the call. /// </summary> /// <remarks> /// This method must be implemented in every subclass. /// </remarks> /// <param name="ArgumentTypes"> /// The static types of the arguments present in the function call /// </param> /// <returns> /// An <c>XdmSequenceType</c> representing the declared return type of the extension function /// </returns> public abstract XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes);
public override JSequenceType getResultType(JSequenceType[] argumentTypes) { XdmSequenceType[] dt = new XdmSequenceType[argumentTypes.Length]; for (int i = 0; i < dt.Length; i++) { dt[i] = XdmSequenceType.FromSequenceType(argumentTypes[i]); } XdmSequenceType rt = definition.ResultType(dt); return rt.ToSequenceType(); }
public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes) { return this.resultType; }
public ReferrerUrl() { this._FunctionName = new QName(RequestModule.Namespace, "referrer-url"); this._ArgumentTypes = new XdmSequenceType[0]; this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '?'); }