Help with reader adapter extension [message #579051] |
Tue, 30 September 2003 20:29 |
Lance Phillips Messages: 210 Registered: July 2009 |
Senior Member |
|
|
All,
I'm working on an xmi reader adapter implementation that can read legacy
models we have that represent our old approach to xsd. What the reader does
is interpret what Eclipse XSD element / attribute to create in place of our
old xsd implementation. I'm running into problems with Attributes and both
Complex / Simple Types (I'm sure others as I get farther). The problem is
that when I run into an Attribute representation from our legacy model, I
use the XSDFactory.eInstance to create a new XSDAttribute. However, I am
unable to add the Attribute to it's parent (XSDSchema, XSDElement or
XSDComplexType). What steps am I missing to add Attributes, Types and
Groups to their parent when processing in an xmi reader adapter
implementation? It seems to be missing type information that I don't have
yet as I do not get any of the features for the new entity until I've
already had to create the entity and add it to a parent. I have also tried
using the resolveXXX methods on XSDConcreteComponentImpl to no avail.
HELP!!
thanks,
lp
|
|
|
Powered by
FUDForum. Page generated in 0.03394 seconds