Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » getName() returns null too
getName() returns null too [message #40362] Sat, 03 April 2004 17:24 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31536
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/
Re: getName() returns null too [message #585162 is a reply to message #40511] Mon, 05 April 2004 19:40 Go to previous message
Peter Stibrany is currently offline Peter StibranyFriend
Messages: 37
Registered: July 2009
Member
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
Previous Topic:referenced schema feature/reference
Next Topic:Announcement: FAQ update planned
Goto Forum:
  


Current Time: Mon Oct 19 16:04:45 GMT 2020

Powered by FUDForum. Page generated in 0.01742 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top