Fwd: Javadoc comment; finding non-schema attributes [message #3209] |
Tue, 15 October 2002 16:18 |
Shane Curcuru Messages: 30 Registered: July 2009 |
Member |
|
|
A comment, question, and part of an answer:
---- you Ted Toth <ted_x_toth@yahoo.com> wrote ----
> One comment I
> have is that if the javadoc for methods that return a
> List would specify in the comments what the type of
> the objects in the list are.
Good point: I thought this was asked before? It's actually an org.eclipse.emf comment I think, since we use the EMF framework to generate this
kind of stuff.
Actually, most of the EList returning convenience methods (say, on XSDSchema) do include the type of object the EList contains in the Javadoc
comment - although I've noticed it doesn't appear in the Method Summary, only the long descriptions.
> Also (of course) I have a
> question in the case of an element similar to the
> following how can get the vcml:desc attribute?
>
> <xsd:enumeration value="01" vcml:desc="Patient was
> admitted to a hospital"/>
This won't show up in any of the abstract schema object relationships, since we don't care about non-schema stuff. But you can always drop down
into the concrete model, which basically is the DOM of the original elements in the mySchema.xsd file or the like. Try Element e =
xsdConcreteComponent.getElement() and then manipulate that with normal DOM calls to get the attr.
- Shane
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds