示例#1
0
        /// <param name="theContext">the set of validation rules to be applied to messages parsed or
        /// encoded by this parser (defaults to ValidationContextFactory.DefaultValidation)
        /// </param>
        public override void  setValidationContext(ValidationContext theContext)
        {
            base.setValidationContext(theContext);

            // These parsers are not yet initialized when this is called during the Parser constructor
            if (xmlParser != null)
            {
                pipeParser.setValidationContext(theContext);
                xmlParser.setValidationContext(theContext);
            }
        }
示例#2
0
 /// <param name="theContext">the set of validation rules to be applied to messages parsed or
 /// encoded by this parser (defaults to ValidationContextFactory.DefaultValidation)
 /// </param>
 public virtual void  setValidationContext(ValidationContext theContext)
 {
     myContext   = theContext;
     myValidator = new MessageValidator(theContext, true);
 }
示例#3
0
		/// <param name="theContext">the set of validation rules to be applied to messages parsed or 
		/// encoded by this parser (defaults to ValidationContextFactory.DefaultValidation)
		/// </param>
		public virtual void  setValidationContext(ValidationContext theContext)
		{
			myContext = theContext;
			myValidator = new MessageValidator(theContext, true);
		}