Package org.jupnp.model.types
Klasse AbstractDatatype<V>
java.lang.Object
org.jupnp.model.types.AbstractDatatype<V>
- Alle implementierten Schnittstellen:
Datatype<V>
- Bekannte direkte Unterklassen:
Base64Datatype,BinHexDatatype,BooleanDatatype,CharacterDatatype,CustomDatatype,DateTimeDatatype,DoubleDatatype,FloatDatatype,IntegerDatatype,ShortDatatype,StringDatatype,UnsignedIntegerFourBytesDatatype,UnsignedIntegerOneByteDatatype,UnsignedIntegerTwoBytesDatatype,URIDatatype
- Autor:
- Christian Bauer
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.jupnp.model.types.Datatype
Datatype.Builtin, Datatype.Default -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungTransforms a value supported by this datatype into a string representation.booleanisHandlingJavaType(Class type) booleanvoidsetBuiltin(Datatype.Builtin builtin) toString()Transforms a string representation into a value of the supported type.
-
Konstruktordetails
-
AbstractDatatype
public AbstractDatatype()
-
-
Methodendetails
-
getValueType
-
isHandlingJavaType
- Angegeben von:
isHandlingJavaTypein SchnittstelleDatatype<V>- Gibt zurück:
trueif this datatype can handle values of the given Java type.
-
valueOf
Beschreibung aus Schnittstelle kopiert:DatatypeTransforms a string representation into a value of the supported type.- Angegeben von:
valueOfin SchnittstelleDatatype<V>- Parameter:
s- The string representation of a value.- Gibt zurück:
- The converted value or
nullif the string wasnullor empty. - Löst aus:
InvalidValueException- If the string couldn't be parsed.
-
getBuiltin
- Angegeben von:
getBuiltinin SchnittstelleDatatype<V>- Gibt zurück:
- The built-in UPnP standardized type this datatype is mapped to or
nullif this is a custom datatype.
-
setBuiltin
-
getString
Beschreibung aus Schnittstelle kopiert:DatatypeTransforms a value supported by this datatype into a string representation.This method calls
Datatype.isValid(Object)before converting the value, it throws an exception if validation fails.- Angegeben von:
getStringin SchnittstelleDatatype<V>- Parameter:
value- The value to transform.- Gibt zurück:
- The transformed value as a string, or an empty string when the value is null, never returns
null. - Löst aus:
InvalidValueException
-
isValid
-
toString
-
getDisplayString
- Angegeben von:
getDisplayStringin SchnittstelleDatatype<V>- Gibt zurück:
- Metadata about this datatype, a nice string for display that describes this datatype (e.g. concrete class name).
-