Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tthlivitis

Pages: [1]
1
General Board / Accessing Attr Constraints from Transf. Templates
« on: June 23, 2005, 01:34:53 am »
Hi,

This is about accessing attribute constraints (Attribute Constraints Tab information) from within Model 2 Model Transformation Templates.

Context:
I have already modified the XSD M2M Transformation Template to include some specific needs and I need to further enhance it in order to automatically read attribute length and pattern constraints described in a standard Class (not XSD) source model and generate equivalent tagged values in the XSD target model.

The current turn-around  :-[ is to use some unused but accessible attribute fields to describe the constraints (like initial value for the pattern constraint, or attribute alias for the length constraints) which is extremely non-intuitive for class modelers!  :-[
Question

Am I missing some hidden hint about accessing attribute constraints from within Transformation Templates? Do you plan adding this possibility in the near future?

Thanks a lot.


2
Using a Transformation Template I can generate an Object{...} element in Intermediary Language which works fine: the class instance is created in the right package; but, for the moment, the instance is not linked to any corresponding class.

How can I define the instance classifier using the Intermediary Language, in a way to create an "objectName :ClassName" element in the EA package?

Thanks.


Pages: [1]