All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aSaxon-B-9-0-0-8sources.cmd.Validate.cs Maven / Gradle / Ivy

using System;
using System.Text;
//using net.sf.saxon.dotnet;

namespace Saxon.Cmd {

    /// 
    /// This class provides the command line interface for the .NET executable
    /// 

    public class DotNetValidate : com.saxonica.Validate {

        /// 
        /// Private constructor, ensuring the class can only be used via its "main" method.
        /// 

        private DotNetValidate() {
        }

        /// 
        /// Create the configuration. This method is intended to be overridden in a subclass
        /// 

        protected override void setConfiguration() {
            base.setConfiguration();
            //config.setPlatform(DotNetPlatform.getInstance());
        }

        /// 
        /// Entry point for use from the .NET command line
        /// command line arguments
        /// 

        public static void Main(String[] args) {
            if (args.Length > 0 && args[0] == "-???") {
                // Obtain the assembly qualified name of the schema-aware configuration class.
                // This is needed for the build: it must be copied into a string constant in
                // net.sf.saxon.dotnet.DotNetPlatform.java
                Console.WriteLine(typeof(com.saxonica.validate.SchemaAwareConfiguration).AssemblyQualifiedName);
            }
            new DotNetValidate().doValidate(args, "Validate");
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy