Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
		}