Java EE 5 SDK

com.sun.appserv.management.util.misc
Interface ValuePersister

All Known Implementing Classes:
StringValuePersister

public interface ValuePersister

Interface useful for persisting values using String. Implementors of this interface must be able to convert the value to a String and convert a String to its corresponding Object.


Method Summary
 Object asObject(String theString)
          Convert the String to a corresponding Object
 String asString(Object value)
          Convert the Object to a String representation
 

Method Detail

asString

String asString(Object value)
Convert the Object to a String representation

Parameters:
value -
Returns:
a String representation of the Object

asObject

Object asObject(String theString)
Convert the String to a corresponding Object

Parameters:
theString - the String to use
Returns:
the corresponding Object representation

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.