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

Pages: [1]
1
UML Profile for XSD Schema enhancement requests:

- Provide support for complexType attributes, particularly the "abstract" attribute (the full set would be nice...)
Ref: http://www.w3schools.com/schema/el_complextype.asp .
- Support XSD "key", "keyref", "unique".
- Remember schema generation filename per package (schemaLocation attr is a candidate).
- Is there a way to update the tags in sub-classes when the tags in a superclass are updated?
---

General requests:
- Layer the Diagram tabs (instead of scrolling left, right); and/or popup list with open diagrams from which one could select.
---
- Include the "Notes" in the generated documentation (diagram-level Notes window).
---
- "Previous" and "Next" buttons on toolbar - augment to return to last/next edit locations/diagrams.
---

Thanks, and keep up the good work!

2
General Board / XML Schema generation differences found on upgrade
« on: August 03, 2006, 02:44:58 pm »
I have recently updated my EA version to 6.1 (from 4.51).  I found the following differences in generating an XML schema:

1. <xs:annotation> tags are inserted for all the Notes on model elements

2. complexType definitions used to refer to an attributeGroup for its associated attributes; now the attributes are in-line

3. it appears the attributes are alphabetically ordered (instead of the order they appear in the model)

4. attributes that have no "use" tagged value (in the model) are generated with "use='required'" values; shouldn't these default to "use='optional'"?

5. elements with no internal structure (no contained elements), only attributes, are generated with an empty <sequence/> tag

Are there any settings one can use to change this (and is (4) a bug?)

Thanks.

3
General Board / Re: problems importing XSDProfile.xml
« on: December 09, 2004, 12:00:55 pm »
sigh - here it is:
http://www.sparxsystems.com.au/uml_profiles.htm .
Sorry for the distraction.
Al

4
General Board / problems importing XSDProfile.xml
« on: December 09, 2004, 11:48:55 am »
I get the following error when trying to import the XSDProfile.xml file:

Error: Root package not found at: XMI.content/UML:Model/UML:Namespace.ownedElement/UML:Package

I successfully imported the XSDDatatypes.xml file per the instructions on the website at http://www.sparxsystems.com.au/xml_schema_generation.htm ; however, there are no instructions in importing the XSDProfile.xml file.

Any assistance would be appreciated.
Thanks,
Al

5
General Board / Re: updating subclasses with superclass changes
« on: September 23, 2004, 05:26:33 am »
Ah yes, thank you very much.
Silly me, I was looking only at the popup menu (I suppose I should spend more time with the toolbar menus now!).

I did notice the new overridden operation does not show up on the diagram in the subclass until one clicks the mouse in that subclass.  Perhaps a low-priority bug to be logged here?
Thanks again.
Al

6
General Board / updating subclasses with superclass changes
« on: September 22, 2004, 10:20:28 am »
How does one go about introducing superclass features in a subclass once the "generalize" relationship is established?  For example, a class A has methods 'a' and 'b'; Class B is a subclass of A.  Initially a popup comes up when the generalization relationship is drawn from B to A, asking which methods 'B' should override.  All is well and good.  Now add a new method 'c' to 'A'.

Is there a way to update class 'B' so it now overrides method 'c' as well?

Thanks,
Al

7
General Board / Re: show/hide attributes and methods on class diag
« on: August 27, 2004, 02:00:42 pm »
(oops - sorry - it's right click/Element Features/Specify Feature Visibility)

So now my next question - once one has turned off attributes and/or operations, is there a way to make the class auto-size itself to a smaller size?

8
General Board / show/hide attributes and methods on class diagrams
« on: August 27, 2004, 12:50:40 pm »
Can anyone tell me how to selectively hide the attributes and/or methods for classes on a class diagram?  I'd like to hide them for "well-known" classes, but show them for new ones.
Thanks,
Al

9
Automation Interface, Add-Ins and Tools / XSD generation problems II
« on: February 03, 2005, 12:57:19 pm »
Ok, I thought I had this down, but am seeing some weird behavior with multiple packages and XSD...

I have 3 pkgs, A, B, C; A is the "base" package, and defines "base" types.  B and C are "extension" packages, and define new types in terms of extensions to those defined in A.

All three packages are configured to have the same namespace.

When I generate the schema for pkg A, it generates two <xs:include> elements, one for pkg B, the other for pkg C!
???

The generation of B and C are ok - they generate an <xs:include> element referring to pkg A, as expected.

There are no references *from* pkg A  *to* pkg B or C.  Why would there be an <xs:include> element generated in the output schema file?

10
Is there a way to define XML Schema "key" and "keyref" elements in EA?
I'd like to define a non-ID-type attribute on a particular element as an XSD "key", but I can't fine a way to do that.
Thanks.

11
Automation Interface, Add-Ins and Tools / Ordering elements in XSD
« on: February 03, 2005, 02:06:48 pm »
How do I specify the order of elements in a generated XML Schema?

I have 3 classes, A, B, C.  A has an association to B and C.  In the generated schema, I want  the <complexType> declaration for A to define a <sequence> with <element> references first to B, then to C.

The docs say something about a "position" tag on the <<XSDelement>> Profile element, as applied to the UML Attribute or AssociationEnd.  However, if I drop the XSDelement Profile element onto B or C, I don't see the "position" tag; if I add the tag manually, it doesn't seem to take effect.

The only way I can guarantee the ordering of the elements within the sequence is to remove the associations from B to A and C to A (Links tab, Delete relation button), then re-draw the associations in the order I want to see the elements; in this case, first from A to B, then from A to C.  This can get cumbersome, however.

Any pointers would be appreciated.

12
Automation Interface, Add-Ins and Tools / Re: XSD Generation Problems
« on: January 26, 2005, 11:44:59 am »
You're getting the <xs:import/> element generated because your package (stereotyped with <<XSDSchema>>) references classes outside of its own.  Put all your classes inside one package and this will go away.

Of course, there are cases where you would like to reference classes outside a given package.  I have experimented with this, and nowhere do I find a way to specify the value of the "schemaLocation" attribute on the <import> element.

Have you or anyone else figured out a way to specify the <import>ed schemaLocation during schema generation?
Al

Pages: [1]