History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-492
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Joerg Schaible
Reporter: Maxwell Chiareli
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

Enum as attribute in lower case format

Created: 13/May/08 07:46 AM   Updated: 13/May/08 07:46 AM
Component/s: Converters
Affects Version/s: 1.3
Fix Version/s: None

JDK version and platform: jdk 1.5 / 1.6


 Description  « Hide
The class EnumSingleValueConverter could be changed to read enum im lower case format:
@XStreamAlias("protocol")
class Protocol{ @XStreamAsAttribute TYPE type; }

enum TYPE { ASCII,BINARY; }

Xml format:

<protocol type="ascii"/>

I think a change is simple and very useful,needs only a toUpperCase and toLowerCase on convert method.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.