stevedlawrence commented on a change in pull request #207: Added support for
enumerations and TypeValueCalc
URL: https://github.com/apache/incubator-daffodil/pull/207#discussion_r278238026
##########
File path:
daffodil-core/src/main/scala/org/apache/daffodil/dsom/QuasiElementDecl.scala
##########
@@ -40,9 +40,25 @@ sealed class LocalElementDecl(
* DetachedElementDecl is used as a place where properties related to the
* prefix simpel type can be accessed.
*/
-final class DetachedElementDecl(
+sealed abstract class QuasiElementDeclBase(
val detachedReference: ElementBase,
xml: Node,
parent: SchemaComponent)
extends LocalElementDecl(xml, parent, -1){
}
+
+final class PrefixLengthQuasiElementDecl(
+ detachedReference: ElementBase,
+ xml: Node,
+ parent: SchemaComponent)
+ extends QuasiElementDeclBase(detachedReference, xml, parent){
+}
+
+final class RepTypeQuasiElementDecl(
+ detachedReference: ElementBase,
+ xml: Node,
+ parent: SchemaComponent)
+ extends QuasiElementDeclBase(detachedReference, xml, parent){
+
+ override lazy val isQuasiElement = true
Review comment:
This is confusing to me. Why does RepTypeQuasiElementDecl set isQuasiElement
to true but not PrefixLength? They both seem like Quasi elements to me. Is
there a difference in how these two quasi element behave? Maybe a different
variable name is needed?
----------------------------------------------------------------
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