Project

Profile

Help

How to connect?
Download (2.01 KB) Statistics
| Branch: | Tag: | Revision:

he / latest9.4 / hen / csource / cmd / Query.cs @ c3c84ba2

1
using System;
2
using System.Reflection;
3
using net.sf.saxon;
4
using net.sf.saxon.dotnet;
5

    
6
namespace Saxon.Cmd
7
{
8

    
9

    
10
    ///<summary>
11
    ///This class provides the command line interface for the .NET executable
12
    ///</summary>
13

    
14
    public class DotNetQuery : Query
15
    {
16

    
17
        // This class has no static dependency on the Saxon-SA DLL. If schema-aware
18
        // processing is required, the DLL is loaded dynamically. This has changed
19
        // with IKVM 0.32.0.0, it is now done by calling Class.forName() using the
20
        // asssembly-qualified name of the class as the class name.
21

    
22
        //private static string saxonSaClassName =
23
        //    DotNetPlatform.getSaxonSaFullyQualifiedClassName();
24

    
25
        // This class is never instantiated except via its own Main() method
26

    
27
        private DotNetQuery()
28
        {
29
            // Ensure the extended character sets in charsets.jar are loaded
30
            GC.KeepAlive(typeof(sun.nio.cs.ext.ExtendedCharsets));
31
        }
32

    
33
        ///<summary>
34
        /// Entry point for use from the .NET command line
35
        /// <param name="args">command line arguments</param>
36
        /// </summary>
37

    
38
        public static void Main(String[] args)
39
        {
40
            new DotNetQuery().doQuery(args, "Query");
41
        }
42
    }
43

    
44
}
45

    
46
//
47
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
48
// you may not use this file except in compliance with the License. You may obtain a copy of the
49
// License at http://www.mozilla.org/MPL/
50
//
51
// Software distributed under the License is distributed on an "AS IS" basis,
52
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
53
// See the License for the specific language governing rights and limitations under the License.
54
//
55
// The Original Code is: all this file.
56
//
57
// The Initial Developer of the Original Code is Michael H. Kay.
58
//
59
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
60
//
61
// Contributor(s): none.
62
//
(3-3/5)