org.teleal.cling.model.types
Class AbstractDatatype<V>

java.lang.Object
  extended by org.teleal.cling.model.types.AbstractDatatype<V>
All Implemented Interfaces:
Datatype<V>
Direct Known Subclasses:
Base64Datatype, BinHexDatatype, BooleanDatatype, CharacterDatatype, CustomDatatype, DateTimeDatatype, DoubleDatatype, FloatDatatype, IntegerDatatype, StringDatatype, TimeDatatype, UnsignedIntegerFourBytesDatatype, UnsignedIntegerOneByteDatatype, UnsignedIntegerTwoBytesDatatype, URIDatatype

public abstract class AbstractDatatype<V>
extends java.lang.Object
implements Datatype<V>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teleal.cling.model.types.Datatype
Datatype.Builtin, Datatype.Default
 
Constructor Summary
AbstractDatatype()
           
 
Method Summary
 Datatype.Builtin getBuiltin()
           
 java.lang.String getDisplayString()
           
 java.lang.String getString(V value)
           
 java.lang.Class<V> getValueType()
           
 boolean isValid(V value)
           
 void setBuiltin(Datatype.Builtin builtin)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.teleal.cling.model.types.Datatype
fromString, getDefaultValue
 

Constructor Detail

AbstractDatatype

public AbstractDatatype()
Method Detail

getValueType

public java.lang.Class<V> getValueType()
Specified by:
getValueType in interface Datatype<V>

getBuiltin

public Datatype.Builtin getBuiltin()
Specified by:
getBuiltin in interface Datatype<V>

setBuiltin

public void setBuiltin(Datatype.Builtin builtin)
Specified by:
setBuiltin in interface Datatype<V>

getString

public java.lang.String getString(V value)
                           throws InvalidValueException
Specified by:
getString in interface Datatype<V>
Throws:
InvalidValueException

isValid

public boolean isValid(V value)
Specified by:
isValid in interface Datatype<V>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDisplayString

public java.lang.String getDisplayString()
Specified by:
getDisplayString in interface Datatype<V>


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