getName() returns null too [message #40362] |
Sat, 03 April 2004 17:24 |
Eclipse User |
|
|
|
Originally posted by: stibrany.tenax.sk
Hello.
Another "returns null" question :-)
When I call getName() method of XSDElementDeclaration, it gives me null,
although getQName() returns correct answer. How can I get element name
without "...:" prefix?
Thank you.
-Peter Stibrany
|
|
|
Re: getName() returns null too [message #40511 is a reply to message #40362] |
Mon, 05 April 2004 10:38 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Peter,
An XSDElementDeclaration is used to represent either the actual "abstract"
element declaration or an element declaration reference, in which case all
the properties are null and the getResolveElementDeclaration is needed to
navigate to the actual declaration with all the properties, like name, that
you want to examine. Again, depending on how you traverse the model, you
can avoid seeing element declaration references if you aren't interested in
seeing them.
Peter Stibrany wrote:
> Hello.
>
> Another "returns null" question :-)
> When I call getName() method of XSDElementDeclaration, it gives me null,
> although getQName() returns correct answer. How can I get element name
> without "...:" prefix?
>
> Thank you.
> -Peter Stibrany
|
|
|
Re: getName() returns null too [message #40597 is a reply to message #40511] |
Mon, 05 April 2004 19:40 |
Eclipse User |
|
|
|
Originally posted by: stibrany.tenax.sk
Ed Merks wrote:
> Peter,
> An XSDElementDeclaration is used to represent either the actual "abstract"
> element declaration or an element declaration reference, in which case all
> the properties are null and the getResolveElementDeclaration is needed to
> navigate to the actual declaration with all the properties, like name, that
> you want to examine. Again, depending on how you traverse the model, you
> can avoid seeing element declaration references if you aren't interested in
> seeing them.
Thank you for answer. I think I am starting to understand this "abstract"
versus "concrete" thing. When I am reading XML Schema specs, they are
mostly talking about "abstract" view of schema, and that is what I really
want. I will more carefully look at XSD methods and double-check before I
post my questions here.
-Peter Stibrany
|
|
|
Re: getName() returns null too [message #585093 is a reply to message #40362] |
Mon, 05 April 2004 10:38 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Peter,
An XSDElementDeclaration is used to represent either the actual "abstract"
element declaration or an element declaration reference, in which case all
the properties are null and the getResolveElementDeclaration is needed to
navigate to the actual declaration with all the properties, like name, that
you want to examine. Again, depending on how you traverse the model, you
can avoid seeing element declaration references if you aren't interested in
seeing them.
Peter Stibrany wrote:
> Hello.
>
> Another "returns null" question :-)
> When I call getName() method of XSDElementDeclaration, it gives me null,
> although getQName() returns correct answer. How can I get element name
> without "...:" prefix?
>
> Thank you.
> -Peter Stibrany
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04440 seconds