mbeckerle commented on a change in pull request #223: Daffodil 1444 schema comp 
simple types
URL: https://github.com/apache/incubator-daffodil/pull/223#discussion_r289567820
 
 

 ##########
 File path: 
daffodil-core/src/main/scala/org/apache/daffodil/dsom/RestrictionUnion.scala
 ##########
 @@ -40,17 +40,17 @@ import org.apache.daffodil.processors.RepValueSet
 /**
  * A schema component for simple type restrictions
  */
-final class RestrictionFactory(val xmlArg: Node, val simpleTypeFactory: 
SimpleTypeDefFactory)
-  extends SchemaComponentFactory(xmlArg, simpleTypeFactory.schemaDocument)
+final class Restriction(xmlArg: Node, val simpleTypeDef: SimpleTypeDefBase)
+  extends SchemaComponentImpl(xmlArg, simpleTypeDef)
   with Facets
   with NestingLexicalMixin
   with TypeChecks {
 
   Assert.invariant(xmlArg.asInstanceOf[scala.xml.Elem].label == "restriction")
 
-  def restriction(simpleType: SimpleTypeDefBase) = {
-    new Restriction(simpleType, this)
-  }
+  //  def restriction(simpleType: SimpleTypeDefBase) = {
+  //    new Restriction(simpleTypeDef, this)
+  //  }
 
 Review comment:
   delete commented out code. 

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