jw3 commented on a change in pull request #431:
URL: https://github.com/apache/incubator-daffodil/pull/431#discussion_r510201764



##########
File path: 
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/DataProcessor.scala
##########
@@ -243,6 +249,8 @@ class DataProcessor private (
 
   def withValidationMode(mode:ValidationMode.Type): DataProcessor = 
copy(validationMode = mode)
 
+  def withValidator(validator: Validator): DataProcessor = copy(validationMode 
= ValidationMode.Custom(validator))

Review comment:
       Convenience method and also illustrates that Validators are now passed 
without any other Config or SPI related data.
   
   @stevedlawrence 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to