org.teleal.cling.model.types
Class CustomDatatype
java.lang.Object
org.teleal.cling.model.types.AbstractDatatype<String>
org.teleal.cling.model.types.CustomDatatype
- All Implemented Interfaces:
- Datatype<String>
public class CustomDatatype
- extends AbstractDatatype<String>
- Author:
- Christian Bauer
CustomDatatype
public CustomDatatype(String name)
getName
public String getName()
valueOf
public String valueOf(String s)
throws InvalidValueException
- Description copied from interface:
Datatype
- Transforms a string representation into a value of the supported type.
- 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.
toString
public String toString()
- Overrides:
toString
in class AbstractDatatype<String>
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.