mbeckerle commented on a change in pull request #240: Add 
dfdlx:choiceBranchKeyRanges
URL: https://github.com/apache/incubator-daffodil/pull/240#discussion_r295868652
 
 

 ##########
 File path: 
daffodil-lib/src/main/scala/org/apache/daffodil/cookers/Cookers.scala
 ##########
 @@ -84,3 +89,28 @@ object ChoiceBranchKeyCooker extends 
ListOfStringLiteralNonEmptyNoCharClassEntit
 object RepValueCooker extends 
ListOfStringLiteralNonEmptyNoCharClassEntitiesNoByteEntities()
 
 object UpperCaseTokenCooker extends UpperCaseToken
+
+object IntRangeCooker extends Converter[String, Seq[Range[BigInt]]] {
+  protected def convert(input: String, context: ThrowsSDE, forUnparse: 
Boolean): Seq[Range[BigInt]] = {
 
 Review comment:
   Cookers dealing with DFDL Entities should go in the central place to insure 
sharing. We could seal the base classes/traits to enforce that I suppose. 
   
   But we cant require all string "conditioning" which might be termed 
"cooking" to live in one place. 
   
   That's how I'd suggest we split it up.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to