Exemplo n.º 1
0
      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), '*');
      }
Exemplo n.º 2
0
      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, '?');
      }
Exemplo n.º 3
0
      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), ' ');
      }
Exemplo n.º 4
0
      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), '*');
      }
Exemplo n.º 5
0
      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, ' ');
      }
Exemplo n.º 6
0
      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, '?');
      }
Exemplo n.º 7
0
      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), '?');
      }
Exemplo n.º 8
0
      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, '+');
      }
Exemplo n.º 9
0
        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());
        }
Exemplo n.º 10
0
      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, ' ');
      }
Exemplo n.º 11
0
 public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes)
 {
     return ArgumentTypes[0];
 }
Exemplo n.º 12
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), ' ');
      }
Exemplo n.º 13
0
 public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes)
 {
     return new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_DOUBLE), ' ');
 }
Exemplo n.º 14
0
      public IsLocal() {

         this._FunctionName = new QName(RequestModule.Namespace, "is-local");
         this._ArgumentTypes = new XdmSequenceType[0];
         this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_BOOLEAN), ' ');
      }
Exemplo n.º 15
0
      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, '*');
 }
Exemplo n.º 17
0
 /// <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);
Exemplo n.º 18
0
        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();
        }
Exemplo n.º 19
0
 public override XdmSequenceType ResultType(XdmSequenceType[] ArgumentTypes) {
    return this.resultType;
 }
Exemplo n.º 20
0
      public ReferrerUrl() {

         this._FunctionName = new QName(RequestModule.Namespace, "referrer-url");
         this._ArgumentTypes = new XdmSequenceType[0];
         this.resultType = new XdmSequenceType(XdmAtomicType.BuiltInAtomicType(QName.XS_STRING), '?');
      }