Re: [Simple-support] A question about enum
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-06-03 00:37:04
|
Look for the type hierarchy of Transform using crtl-shift-H, it will be there somewhere.
--- On Sat, 2/6/12, Hong <h...@hz...> wrote:
From: Hong <h...@hz...>
Subject: Re: [Simple-support] A question about enum
To:
Cc: sim...@li...
Received: Saturday, 2 June, 2012, 3:07 AM
I could not find EnumTransform in test cases, so I searched
references of EnumTransform using Eclipse and found only one
reference in PackageMatcher.
I am using the default branch. Could that be a problem?
Hong
On 6/1/2012 11:59 PM, Niall Gallagher wrote:
Look through the
test cases, there is an example in there somewhere.
--- On Fri, 1/6/12, Hong <h...@hz...>
wrote:
From: Hong <h...@hz...>
Subject: Re: [Simple-support] A question about enum
To:
Cc: sim...@li...
Received: Friday, 1 June, 2012, 8:00 PM
Thanks for the tip. It is exactly what I was
looking for by tracing the calls, but failed to
reach it.
EnumTransform does not seem to be used for
serializing an enum variable in my code. I probably
have misunderstood how EnumTransform is used.
Hong
On 6/1/2012 10:24 PM, Niall Gallagher wrote:
Take
a look at EnumTransform, you can create a
transform for enums and register it with
the persister. It will handle
transformation of the enum values.
--- On Fri, 1/6/12, Hong <h...@hz...>
wrote:
From: Hong <h...@hz...>
Subject: [Simple-support] A question
about enum
To: sim...@li...
Received: Friday, 1 June, 2012, 10:02 AM
Hi
all,
I apologize if this rudimentary
question has been asked before.
I am trying to figure out how to
serialize enum values to something
different than their face values.
For example, for the following enum
enum Foo
{
MyFoo,
YourFoo
}
I want to serialize it to "My-Foo" and
"Your-Foo".
It seems that SimpleXML does not like
the following:
enum Foo
{
MyFoo{
public String toString() {
return "My-Foo";
}
},
YourFoo{
public String toString() {
return "Your-Foo";
}
};
}
Any tip will be greatly appreciated.
Hong
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all
the ways today's security and
threat landscape has changed and how
IT managers can respond. Discussions
will include endpoint security, mobile
security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's
security and
threat landscape has changed and how IT managers can
respond. Discussions
will include endpoint security, mobile security and
the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|