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

Pages: 1 2 [3]
31
Hi All,

I've decided not to wait for a Schema Composer update to support the functionalities that I've mentioned in this post:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1427195476

Therefore, I've decided to write an add-in and customise the outputs of the Schema Composer. It's been a bit tricky as I couldn't find any documentation that could help me with the Schema Composer reference object model.

After looking at the sample code and some debugging exercise, I've managed to get almost everything I wanted. The only part missing is to retrieve the Schema profile namespace set in the Schema Composer.

I've managed to implement an workaround by retrieving the target namespace from the respective XSD Schema Package, but it would be good to use what is defined in Composer's schema profile.

Does anybody know how to do it? Or any documentation that could help?

Thanks
Rod

32
Hi Jim,

I think I've figured out how to do it... and it is actually pretty simple...

In order to extend the XSD primitive data types, you need to use the XSDDataType packages that is available in the following link:

http://www.sparxsystems.com/downloads/profiles/XSDDataTypes.xml

Use the EA's XMI import functionality to import the package. Then just use the 'string' primitive type as your generalisation.

Please let me know if it works for you.

Regards,
Rod


33
Hi All,

Me again with the Schema Composer customisation issues...

Continuing the journey from my previous post (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1433779277), I'm now trying to include some validations regarding the XSD style that we are generating. I'm struggling to find a way to tell Schema Composer that the XSD generation failed. Even if my add-in code throws an exception, the Schema Composer presents the exception on screen and another message after saying that the schema was successfully generated. I also tried to return 'false' in the EA_GenerateFromSchema method, with no effect.

Can anybody tell me what I'm missing?

Regards,
Rod




Pages: 1 2 [3]