Re: How to convert a string to an object reference?
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 08:36:01 -0400
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
.
- Follow-Ups:
- Re: How to convert a string to an object reference?
- From: Alois Haslinger
- Re: How to convert a string to an object reference?
- 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
- 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: How to convert a string to an object reference?
- 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
|
|