JAXB reflections: getting a property name from RuntimePropertyInfo

View: New views
1 Messages — Rating Filter:   Alert me  

JAXB reflections: getting a property name from RuntimePropertyInfo

by Dmitry-77 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

In an example from https://jaxb2-reflection.dev.java.net/users-guide.html
to obtain a property name p.getName() is used.

The javadoc says:

For example, "foo" or "bar". Generally, a property name is different
from XML, (although they are often related, as a property name is often
computed from tag names / attribute names.) In fact, *property names do
not directly affect XML*. The property name uniquely identifies a
property within a class.

Is there a way to get an XML name (the one found in <xs:element
name="XXX"...)?

Thank you in advance.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...