|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sbbi.upnp.services.ServiceStateVariable
public class ServiceStateVariable
Class to contain a service state variable definition
| Field Summary | |
|---|---|
protected Set |
allowedvalues
|
protected String |
dataType
|
protected String |
defaultValue
|
protected String |
maximumRangeValue
|
protected String |
minimumRangeValue
|
protected String |
name
|
protected UPNPService |
parent
|
protected boolean |
sendEvents
|
protected String |
stepRangeValue
|
| Fields inherited from interface net.sbbi.upnp.services.ServiceStateVariableTypes |
|---|
BIN_BASE64, BIN_BASE64_INT, BIN_HEX, BIN_HEX_INT, BOOLEAN, BOOLEAN_INT, CHAR, CHAR_INT, DATE, DATE_INT, DATETIME, DATETIME_INT, DATETIME_TZ, DATETIME_TZ_INT, FIXED_14_4, FIXED_14_4_INT, FLOAT, FLOAT_INT, I1, I1_INT, I2, I2_INT, I4, I4_INT, INT, INT_INT, NUMBER, NUMBER_INT, R4, R4_INT, R8, R8_INT, STRING, STRING_INT, TIME, TIME_INT, TIME_TZ, TIME_TZ_INT, UI1, UI1_INT, UI2, UI2_INT, UI4, UI4_INT, URI, URI_INT, UUID, UUID_INT |
| Constructor Summary | |
|---|---|
protected |
ServiceStateVariable()
|
| Method Summary | |
|---|---|
Set |
getAllowedvalues()
A set of allowed values (String objects) for the variable |
String |
getDataType()
The variable UPNP data type |
Class |
getDataTypeAsClass()
The varialbe JAVA data type (using an UPNP->Java mapping) |
static Class |
getDataTypeClassMapping(String dataType)
|
String |
getDefaultValue()
The default value of the state variable |
String |
getMaximumRangeValue()
The maximum value as a string |
String |
getMinimumRangeValue()
The minimum value as a string |
String |
getName()
State variable name |
UPNPService |
getParent()
The parent UPNPService Object |
String |
getStepRangeValue()
The value step range as a string |
static String |
getUPNPDataTypeMapping(String className)
|
String |
getValue()
Call to the UPNP device to retreive the state variable actual value |
boolean |
isSendEvents()
Boolean to indicate if the variable is sending events when value of the var is changing. |
static Object |
UPNPToJavaObject(String dataType,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected boolean sendEvents
protected String dataType
protected String defaultValue
protected String minimumRangeValue
protected String maximumRangeValue
protected String stepRangeValue
protected Set allowedvalues
protected UPNPService parent
| Constructor Detail |
|---|
protected ServiceStateVariable()
| Method Detail |
|---|
public String getValue()
throws UPNPResponseException,
IOException
UPNPResponseException - if the device throws an exception during query
IOException - if some IO error with device occurs during querypublic String getName()
public UPNPService getParent()
public boolean isSendEvents()
ServicesEventing
class
public String getDefaultValue()
public String getDataType()
public Class getDataTypeAsClass()
public Set getAllowedvalues()
public String getMinimumRangeValue()
public String getMaximumRangeValue()
public String getStepRangeValue()
public static Class getDataTypeClassMapping(String dataType)
public static String getUPNPDataTypeMapping(String className)
public static Object UPNPToJavaObject(String dataType,
String value)
throws Throwable
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||