/// <summary> /// Constructor /// </summary> /// <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="schematronValidationConfig">Settings to the schematron validation</param> public RaspDocumentTypeConfig( string friendlyName, string rootName, string rootNamespace, string schemaPath, string stylesheetPath, string serviceContractTModel, string xsltTransformStylesheetPath, DocumentEndpointInformation endpointType, XpathDiscriminatorConfigCollection identifierDiscriminators, SchematronValidationConfig schematronValidationConfig ) : this(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; }
/// <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="schematronValidationConfig">Settings to the schematron validation</param> public RaspDocumentTypeConfig( string friendlyName, string rootName, string rootNamespace, string schemaPath, string stylesheetPath, string serviceContractTModel, string xsltTransformStylesheetPath, List <PrefixedNamespace> namespaces, DocumentEndpointInformation endpointType, XpathDiscriminatorConfigCollection identifierDiscriminators, SchematronValidationConfig schematronValidationConfig ) : this(friendlyName, rootName, rootNamespace, schemaPath, stylesheetPath, serviceContractTModel, xsltTransformStylesheetPath, endpointType, identifierDiscriminators, schematronValidationConfig) { if (namespaces == null) { throw new NullArgumentException("namespaces"); } _namespaces = namespaces; }