public NvdlValidateInterp(NvdlDispatcher dispatcher, SimpleMode createdMode, SimpleValidate validate, NvdlInterpretation parent) : base(dispatcher, createdMode, validate, parent) { this.reader = new NvdlFilteredXmlReader(dispatcher.Reader, this); this.validate = validate; validator = validate.CreateValidator(this.reader); dispatcher.Validator.OnMessage(validate.Messages); }
private NvdlInterpretation CreateInterp(NvdlDispatcher d, SimpleMode m, SimpleAction a, NvdlInterpretation p) { SimpleValidate v = a as SimpleValidate; if (v != null) { return(new NvdlValidateInterp(d, m, v, p)); } return(new NvdlResultInterp(d, m, (SimpleResultAction)a, p)); }
private NvdlInterpretation CreateInterp(NvdlDispatcher d, SimpleMode m, SimpleAction a, NvdlInterpretation p) { NvdlDebug.Writer.WriteLine("***** new interp from action {0} from mode {1}", a.Location, m.Location); SimpleValidate v = a as SimpleValidate; if (v != null) { return(new NvdlValidateInterp(d, m, v, p)); } return(new NvdlResultInterp(d, m, (SimpleResultAction)a, p)); }
public NvdlValidateInterp (NvdlDispatcher dispatcher, SimpleMode createdMode, SimpleValidate validate, NvdlInterpretation parent) : base (dispatcher, createdMode, validate, parent) { NvdlDebug.Writer.WriteLine ("++++++ new validate " + validate.Location); this.reader = new NvdlFilteredXmlReader (dispatcher.Reader, this); this.validate = validate; validator = validate.CreateValidator (this.reader); dispatcher.Validator.OnMessage (validate.Messages); }