Exemplo n.º 1
0
        /*
         * public DocumentTypeConfig(
         *  Guid id,
         *  string friendlyName,
         *  string rootName,
         *  string rootNamespace,
         *  string schemaPath,
         *  string stylesheetPath,
         *  string serviceContractTModel,
         *  string xsltTransformStylesheetPath,
         *  DocumentEndpointInformation endpointType,
         *  XpathDiscriminatorConfigCollection identifierDiscriminators,
         *  SchematronValidationConfig schematronValidationConfig,
         *  ProfileIdXPath profileIdXPath,
         *  DocumentIdXPath documentIdXPath
         *  )
         *  : this(id, rootName, rootNamespace, identifierDiscriminators)
         * {
         *  if (friendlyName == null) throw new NullArgumentException("friendlyName");
         *  if (schemaPath == null) throw new NullArgumentException("schemaPath");
         *  if (stylesheetPath == null) throw new NullArgumentException("stylesheetPath");
         *  if (serviceContractTModel == null) throw new NullArgumentException("serviceContractTModel");
         *  if (xsltTransformStylesheetPath == null) throw new NullArgumentException("xsltTransformStylesheetPath");
         *  if (endpointType == null) throw new NullArgumentException("endpointType");
         *  if (schematronValidationConfig == null) throw new NullArgumentException("schematronValidationConfig");
         *
         *  _friendlyName = friendlyName;
         *  _schemaPath = schemaPath;
         *  _stylesheetPath = stylesheetPath;
         *  _serviceContractTModel = serviceContractTModel;
         *  _xsltTransformStylesheetPath = xsltTransformStylesheetPath;
         *  _endpointType = endpointType;
         *  _schematronValidationConfig = schematronValidationConfig;
         *  _profileIdXPath = profileIdXPath;
         *  _documentIdXPath = documentIdXPath;
         * }
         */

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="friendlyName">
        /// Friendly name of the document type e.g. for use in the UI
        /// </param>
        /// <param name="rootName">The name of the document root element</param>
        /// <param name="rootNamespace">The namespace of the document root element</param>
        /// <param name="schemaPath">Path to the schema used for validating this document type</param>
        /// <param name="stylesheetPath">
        /// Path to the stylesheet used for displaying documents of this type
        /// </param>
        /// <param name="serviceContractTModel">The Service contract TModel, used for UDDI lookups</param>
        /// <param name="xsltTransformStylesheetPath">Pthe to the xslt stylesheet</param>
        /// <param name="namespaces">Namespaces used by the document.</param>
        /// <param name="endpointType">Definition of a RASP endpoint type</param>
        /// <param name="identifierDiscriminators">
        /// XPath discriminators used for aditionel identification of document type
        /// </param>
        /// <param name="schematronValidationConfigCollection">Settings to the schematron validation</param>
        /// <param name="profileIdXPath">Xpath expression</param>
        public DocumentTypeConfig(
            Guid id,
            string friendlyName,
            string rootName,
            string rootNamespace,
            string schemaPath,
            string stylesheetPath,
            string serviceContractTModel,
            string xsltTransformStylesheetPath,
            List <PrefixedNamespace> namespaces,
            DocumentEndpointInformation endpointType,
            XpathDiscriminatorConfigCollection identifierDiscriminators,
            List <SchematronValidationConfig> schematronValidationConfigCollection,
            ProfileIdXPath profileIdXPath,
            DocumentIdXPath documentIdXPath
            )
            : this(id, friendlyName, rootName, rootNamespace, schemaPath,
                   stylesheetPath, serviceContractTModel, xsltTransformStylesheetPath,
                   endpointType, identifierDiscriminators, schematronValidationConfigCollection, profileIdXPath, documentIdXPath)
        {
            if (namespaces == null)
            {
                throw new NullArgumentException("namespaces");
            }
            _namespaces = namespaces;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="id">The id</param>
        /// <param name="friendlyName">Friendly name of the document</param>
        /// <param name="rootName">The document element name</param>
        /// <param name="rootNamespace">The document element namespace</param>
        /// <param name="schemaPath">Path to the schema</param>
        /// <param name="stylesheetPath">Path to the presentation stylesheet</param>
        /// <param name="serviceContractTModel">The tModel ID of the service contract</param>
        /// <param name="xsltTransformStylesheetPath">The path to the transformation stylesheet</param>
        /// <param name="endpointType">The endpoint type</param>
        /// <param name="identifierDiscriminators">Identifier discriminators</param>
        /// <param name="schematronValidationConfigCollection">Settings to the schematron validation</param>
        /// <param name="profileIdXPath">XPath expression</param>
        public DocumentTypeConfig(
            Guid id,
            string friendlyName,
            string rootName,
            string rootNamespace,

            string schemaPath,
            string stylesheetPath,
            string serviceContractTModel,
            string xsltTransformStylesheetPath,
            DocumentEndpointInformation endpointType,
            XpathDiscriminatorConfigCollection identifierDiscriminators,
            List <SchematronValidationConfig> schematronValidationConfigCollection,
            ProfileIdXPath profileIdXPath,
            DocumentIdXPath documentIdXPath
            )
            : this(id, rootName, rootNamespace, identifierDiscriminators)
        {
            if (friendlyName == null)
            {
                throw new NullArgumentException("friendlyName");
            }
            if (schemaPath == null)
            {
                throw new NullArgumentException("schemaPath");
            }
            if (stylesheetPath == null)
            {
                throw new NullArgumentException("stylesheetPath");
            }
            if (serviceContractTModel == null)
            {
                throw new NullArgumentException("serviceContractTModel");
            }
            if (xsltTransformStylesheetPath == null)
            {
                throw new NullArgumentException("xsltTransformStylesheetPath");
            }
            if (endpointType == null)
            {
                throw new NullArgumentException("endpointType");
            }
            if (schematronValidationConfigCollection == null)
            {
                throw new NullArgumentException("schematronValidationConfigs");
            }

            _friendlyName                = friendlyName;
            _schemaPath                  = schemaPath;
            _stylesheetPath              = stylesheetPath;
            _serviceContractTModel       = serviceContractTModel;
            _xsltTransformStylesheetPath = xsltTransformStylesheetPath;
            _endpointType                = endpointType;
            this._schematronValidationConfigCollection = schematronValidationConfigCollection;
            _profileIdXPath  = profileIdXPath;
            _documentIdXPath = documentIdXPath;
        }