org.teleal.cling.model.types
Interface Datatype<V>

All Known Implementing Classes:
AbstractDatatype, Base64Datatype, BinHexDatatype, BooleanDatatype, CharacterDatatype, CustomDatatype, DateTimeDatatype, DoubleDatatype, FloatDatatype, IntegerDatatype, StringDatatype, TimeDatatype, UnsignedIntegerFourBytesDatatype, UnsignedIntegerOneByteDatatype, UnsignedIntegerTwoBytesDatatype, URIDatatype

public interface Datatype<V>


Nested Class Summary
static class Datatype.Builtin
           
static class Datatype.Default
           
 
Method Summary
 V fromString(String s)
           
 Datatype.Builtin getBuiltin()
           
 V getDefaultValue()
           
 String getDisplayString()
           
 String getString(V value)
           
 Class<V> getValueType()
           
 boolean isValid(V value)
           
 void setBuiltin(Datatype.Builtin builtin)
           
 

Method Detail

getValueType

Class<V> getValueType()

setBuiltin

void setBuiltin(Datatype.Builtin builtin)

getBuiltin

Datatype.Builtin getBuiltin()

isValid

boolean isValid(V value)

getString

String getString(V value)
                 throws InvalidValueException
Throws:
InvalidValueException

fromString

V fromString(String s)
             throws InvalidValueException
Throws:
InvalidValueException

getDisplayString

String getDisplayString()

getDefaultValue

V getDefaultValue()


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.