org.teleal.cling.model.types
Class StringDatatype
java.lang.Object
org.teleal.cling.model.types.AbstractDatatype<String>
org.teleal.cling.model.types.StringDatatype
- All Implemented Interfaces:
- Datatype<String>
public class StringDatatype
- extends AbstractDatatype<String>
- Author:
- Christian Bauer
Method Summary |
String |
valueOf(String s)
Transforms a string representation into a value of the supported type. |
StringDatatype
public StringDatatype()
valueOf
public String valueOf(String s)
throws InvalidValueException
- Description copied from interface:
Datatype
- Transforms a string representation into a value of the supported type.
- Specified by:
valueOf
in interface Datatype<String>
- Overrides:
valueOf
in class AbstractDatatype<String>
- Parameters:
s
- The string representation of a value.
- Returns:
- The converted value or
null
if the string was null
or empty.
- Throws:
InvalidValueException
- If the string couldn't be parsed.
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.