Project

Profile

Help

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

he / tags / 9.6.0.7 / hen / csource / cmd / Validate.cs @ aa733b18

1
using System;
2
using System.Text;
3
using com.saxonica;
4

    
5
namespace Saxon.Cmd
6
{
7

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

    
12
    public class DotNetValidate : com.saxonica.Validate
13
    {
14

    
15
        /// <summary>
16
        /// Private constructor, ensuring the class can only be used via its "main" method.
17
        /// </summary>
18

    
19
        private DotNetValidate()
20
        {
21
        }
22

    
23
        /// <summary>
24
        /// Create the configuration. This method is intended to be overridden in a subclass
25
        /// </summary>
26

    
27
        protected override void setConfiguration()
28
        {
29
            base.setConfiguration();
30
            //config.setPlatform(DotNetPlatform.getInstance());
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
            if (args.Length > 0 && args[0] == "-???")
41
            {
42
                // Obtain the assembly qualified name of the schema-aware configuration class.
43
                // This is needed for the build: it must be copied into a string constant in
44
                // net.sf.saxon.dotnet.DotNetPlatform.java
45
                Console.WriteLine(typeof(com.saxonica.config.EnterpriseConfiguration).AssemblyQualifiedName);
46
            }
47
            new DotNetValidate().doValidate(args);
48
        }
49
    }
50

    
51
}
(4-4/4)