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

Pages: [1]
1
Suggestions and Requests / Capture Notes in XMLSchema documents
« on: June 03, 2003, 02:26:54 pm »
Hi

It would be helpful if the notes fields for classes/attributes could be (optionally of course) copied into <annotation/><documentation/>  tags in the appropriate places in the generated schema.

Thanks
Steve

2
Suggestions and Requests / Additional XMLSchema tags
« on: June 02, 2003, 08:34:52 am »
It would be very helpful if you could add support for minInclusive and maxInclusive (and/or) minExclusive and maxExclusive facets.

These are useful when a regex is awkward for expressing the constraint. i.e. a rotational value between 0 and 359 degrees would be a restriction based on xsd:nonNegativeInteger with minInclusive of 0 and maxInclusive of 359.

Thanks
Steve

3
General Board / Re: Unknown class decoration
« on: June 22, 2003, 04:45:55 am »
Fred
Thanks for your help.
So many options/features...
Steve

4
General Board / Unknown class decoration
« on: June 21, 2003, 06:28:21 am »
Hi
Somehow I've created a class and it's graphical representation has an inverted red triangle above it. I couldn't find what this means in the help.

What does it indicate? How do I remove it?
Thanks
Steve

5
General Board / UML Patterns
« on: June 21, 2003, 06:23:57 am »
Hi
I was actually reading the online help about Pattern support...hard to imagine :^) The example shows the GoF AbstractFactory pattern. Are these patterns available for download for EA? Any of the POSA/Schmidt patterns available?

Thanks
Steve

6
General Board / Re: XSD Generation
« on: June 20, 2003, 07:56:52 am »
Hi
The way I did it was:

Go to Project Explorer
Right mouse on the View containing the data model in which you want to import the xml.
Select "Import/Export"
Select "Import package from XML file..."
Then browse to the XSDDataTypes package.

There is just a simple typo in the help..."Import/Export" in place of "Import/Import".

Hope this helps
Steve

7
General Board / XML Schema minOccurs attribute element
« on: June 03, 2003, 06:47:30 am »
Hi
I have a class A with an association to another class B (b is an attribute of A of type B) Is there a way that I can generate:

<xs:complexType name="A">
<xs:all>
 <xs:element name="b" minOccurs="0" maxOccurs="unbounded"/>
   <xs:complexType>
     <xs:sequence>
         <xs:element ref="B" minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
</xs:all>


I've set the multiplicity of the roles on the association (that changes the min/maxOccurs within sequence). But I really want to make the presence of the entire attribute (sequence role) to be optional.

Thanks
Steve

8
General Board / Re: XML Schema Generation specifying restriction b
« on: June 02, 2003, 08:07:28 pm »
Ben
Thanks for looking into this. This was my bad...  :'(
I hadn't imported the XSDDataTypes into the model. So when I was specifying nonNegativeInteger the generator was "wumping up" the  required type for me - defaulting to string.

It is funny though I only got the error sometimes on generation(!)

To fix my problem I:
1. Imported XSDDatatypes into the model
2. Deleted my existing Rotation class
3. Followed your steps
4. Generated.

I also didn't know about the ctrl-drag from the project explorer; I was always using the dialog box; that's a good tip.

All is now good.
Thanks
Steve

9
General Board / XML Schema Generation specifying restriction base
« on: June 02, 2003, 08:56:11 am »
Hi
I have a class (with no attributes) of stereotype XSDsimpleType for which I've "Set Element Parent" as nonNegativeInteger. My goal is to have the generated schema look like:

<xs:simpleType name="Rotation">
<xs:restriction base="xs:nonNegativeInteger/>
</xs:simpleType>

Instead the generated XML Schema defaults the restriction base to xs:string (the generation process complains):
Adding class attributes...
   Warning: attribute type was not set. Default is xs:string
...done

Which is what I'd expect since this class won't have any attributes since it is declaring a restriction of an existing type (not defined w/in my class diagram).

Any ideas?

Thanks
Steve

10
General Board / XSD Export Crash
« on: May 26, 2003, 09:15:13 pm »
Hi
I'm using the EAExample project with the latest EA 3.51 Professional build (eval) to try out XMLSchema export. I've found two things:

1. For a package if you specify any file location other than the default directory the process fails with no error message and no observable action. Since the DTD must be present in the directory during generation there doesn't appear to be a reason for allowing the user to select a different output directory...

2. When exporting "Logical View|Class Model" EA crashes when(after?) the status line indicates Diagram:Orders. The options selected in the export dialog are: Export Diagram, Write Log File, Use DTD. The dialog that comes up is "Runtime Error". I've tried a few other selections in the export dialog and they all seem to crash. I'm using Win XP.

Thanks
Steve




Pages: [1]