[Simple-support] How to reference attributes with path expression?
Brought to you by:
niallg
|
From: Rosczak, J. <Jan...@hl...> - 2011-08-02 11:24:19
|
Hello,
I am just starting to work with the Simple framework and have a problem understanding the @Path annotation.
My xml looks like:
<specificationTable title="Field Descriptions" autoNumber="true">
<heading name="Label Name"/>
</specificationTable>
Is this possible somehow:
public class SpecificationTable {
@Path(value = "heading/@name")
private String heading;
}
If yes, would this work for more than one heading element, so could I annotate a list with it?
Thanks in advance.
Kind regards
Jan Rosczak
IT Architect
Development Methods, Frameworks & Tools
__________________________________
Hapag-Lloyd AG
Ballindamm 25
D-20095 Hamburg
Phone +49 (40) 3001- 2983
Fax +49 (40) 3001- 2942
Mail jan...@hl...
http://www.hapag-lloyd.com
Vorsitzender des Aufsichtsrats: Dr. Michael Frenzel
Vorstand: Michael Behrendt (Vorsitzender), Peter Ganz, Ulrich Kranich, Jesper Praestensgaard
Sitz: Hamburg, Handelsregister: Amtsgericht Hamburg HRB 97937
Chairman of the Supervisory Board: Dr. Michael Frenzel Executive Board: Michael Behrendt (Chairman), Peter Ganz, Ulrich Kranich, Jesper Praestensgaard Registered Seat: Hamburg, Company Register: Amtsgericht Hamburg HRB 97937
|