Package org.jupnp.model
Klasse VariableValue
java.lang.Object
org.jupnp.model.VariableValue
- Bekannte direkte Unterklassen:
ActionArgumentValue,StateVariableValue
Encapsulates a variable or argument value, validates and transforms it from/to a string representaion.
- Autor:
- Christian Bauer, Jochen Hiller - use SpecificationViolationReporter
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungVariableValue(Datatype datatype, Object value) Creates and validates a variable value. -
Methodenübersicht
-
Konstruktordetails
-
VariableValue
Creates and validates a variable value.If the given value is a
String, it will be converted withDatatype.valueOf(String). Any other value will be checked, whether it matches the datatype and if its string representation is valid in XML documents (unicode character test).Note that for performance reasons, validation of a non-string value argument is skipped if executed on an Android runtime!
- Parameter:
datatype- The type of the variable.value- The value of the variable.- Löst aus:
InvalidValueException- If the value is invalid for the given datatype, or if its string representation is invalid in XML.
-
-
Methodendetails