public NvdlValidatorGenerator GetGenerator(NvdlValidate validate, string inheritSchemaType) { this.resolver = this.XmlResolverInternal; string schemaType = validate.SchemaType; if (schemaType == null) { schemaType = inheritSchemaType; } if (schemaType == null) { schemaType = "application/xml"; } foreach (NvdlValidationProvider p in providers) { NvdlValidatorGenerator g = p.CreateGenerator(validate, schemaType, this); if (g != null) { return(g); } } throw new NvdlCompileException(String.Format("Either schema type '{0}' or the target schema document is not supported in this configuration. Add custom provider that supports this schema type.", schemaType), validate); }
public SimpleValidate( NvdlValidate validate, NvdlCompileContext ctx) : base(validate) { // 6.4.7 generator = ctx.Config.GetGenerator(validate, ctx.Rules.SchemaType); }
public NvdlInstanceValidationException(string message, Exception inner, NvdlValidatorGenerator generator, string nvdlLocation) : base(FormatMessageWithDefinition(message, nvdlLocation), inner) { }
public NvdlInstanceValidationException(string message, NvdlValidatorGenerator generator, string nvdlLocation) : this(message, null, generator, nvdlLocation) { }
public NvdlInstanceValidationException (string message, Exception inner, NvdlValidatorGenerator generator, string nvdlLocation) : base (FormatMessageWithDefinition (message, nvdlLocation), inner) { }
public NvdlInstanceValidationException (string message, NvdlValidatorGenerator generator, string nvdlLocation) : this (message, null, generator, nvdlLocation) { }
public SimpleValidate ( NvdlValidate validate, NvdlCompileContext ctx) : base (validate) { // 6.4.7 generator = ctx.Config.GetGenerator (validate, ctx.Rules.SchemaType); }