Re: How to convert a string to an object reference?
- From: "Alois Haslinger" <Alois.Haslinger@xxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 15:33:27 +0200
Hello Lew,
I solved the problem with a HashMap.
Thank You
Alois
"Lew" <lew@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:tsKdnS1Lr-wsoq7bnZ2dnUVZ_oLinZ2d@xxxxxxxxxxxxxx
Alois Haslinger wrote:
is there an easy way to convert a string to an object reference of
a well-known class?
Lew wrote:
Unless the "well-known" class has a "valueOf( String )" method or
equivalent, you will have to parse the string and convert by your own
code.
Is the "well-known" class part of the standard API or a custom class?
Or you could use a Map< String, WellKnown >.
--
Lew
.
- References:
- How to convert a string to an object reference?
- From: Alois Haslinger
- Re: How to convert a string to an object reference?
- From: Lew
- Re: How to convert a string to an object reference?
- From: Lew
- How to convert a string to an object reference?
- Prev by Date: Re: How to convert a string to an object reference?
- Next by Date: Re: Definition of a "property"
- Previous by thread: Re: How to convert a string to an object reference?
- Next by thread: Re: How to convert a string to an object reference?
- Index(es):
Relevant Pages
|
|