[Simpleweb-Support] Beta Release 1.2
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2007-04-06 12:53:52
|
Hi, With relation to recent comments on improvements and features to be added to the framework I have added the following: 1) A new @Text annotation This annotation will allow free text to be deserialized from an XML document using structures such as <element attr1="value1" attr2="value2"> This is free text </element> The @Text annotation can not be used with the @Element, @ElementList, or @ElementArray within a single class. Also only one @Text annotation can be used per class. 2) Loose mappings The @Root annotation has been given a new attribute called "strict". This is used as follows: @Root(name="example", strict=false) public class Example { @Element(name="foo") private String foo; } The above can be used to deserialize something such as: <example attr1="value1"> <foo>Example string</foo> <ignore attr="blah">Ignore this text</ignore> </example> The loose mapping (i.e strict=false) allows the deserialization to ignore some attributes or elements. This has not yet been released as an official version as I am currently debating whether the strict attribute for the @Root annotation is the best way to specify loose mappings. The beta can be downloaded from : http://svn.sourceforge.net/viewvc/simple/trunk/download/stream/target/1.2-beta/ Niall Gallagher ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 |