We have a customer asking for the ability to subclass LzDataElement so they can 
add 'transient' annotations to the data elements (as in, these annotations are 
not serialized, just used locally).

Right now, I think the only choice is to write a script class, which requires 
knowing the signature of LzDataElement.  E.g.,

<script when="immediate">
  /* dynamic */ class AnnotatedDataElement extends LzDataElement {
    function AnnotatedDataElement (name:String, attributes:Object? = null, 
children:Array? = null) {
      super(name, attributes, children);
    }
  }
</script>

(dynamic is only needed if they plan to dynamically add attributes, if they are 
willing to declare all their attributes, they can leave that off).

Anyone have any better ideas?

Reply via email to