org.sape.carbon.core.config.type.handlers
Class URLTypeHandler
java.lang.Object
|
+--org.sape.carbon.core.config.type.handlers.URLTypeHandler
- All Implemented Interfaces:
- ConfigurationTypeHandler
- public class URLTypeHandler
- extends Object
- implements ConfigurationTypeHandler
Copyright 2003 Sapient
- Since:
- carbon 2.1
- Version:
- $Revision: 1.1 $($Author: dvoet $ / $Date: 2003/11/14 17:19:05 $)
- Author:
- Douglas Voet, Nov 7, 2003
Method Summary |
Object |
toObject(Class returnType,
String stringValue)
Translates the String representation of data in an object
version |
String |
toString(Object objectValue)
Translates the an Object into the string version of itself |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLTypeHandler
public URLTypeHandler()
toString
public String toString(Object objectValue)
- Description copied from interface:
ConfigurationTypeHandler
- Translates the an Object into the string version of itself
- Specified by:
toString
in interface ConfigurationTypeHandler
- Parameters:
objectValue
- The object to be translated
- Returns:
- the string version of the object
toObject
public Object toObject(Class returnType,
String stringValue)
throws TypeConversionException
- Description copied from interface:
ConfigurationTypeHandler
- Translates the String representation of data in an object
version
- Specified by:
toObject
in interface ConfigurationTypeHandler
- Parameters:
returnType
- the type of the return valuestringValue
- the string representation of the data
- Returns:
- the object value of the data represented by the supplied
string
- Throws:
TypeConversionException
- when there is a formatting problem
with the supplied string data
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.