|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.upnp.sample.tv.PowerStateVariable
public class PowerStateVariable
Field Summary |
---|
Fields inherited from interface org.osgi.service.upnp.UPnPStateVariable |
---|
TYPE_BIN_BASE64, TYPE_BIN_HEX, TYPE_BOOLEAN, TYPE_CHAR, TYPE_DATE, TYPE_DATETIME, TYPE_DATETIME_TZ, TYPE_FIXED_14_4, TYPE_FLOAT, TYPE_I1, TYPE_I2, TYPE_I4, TYPE_INT, TYPE_NUMBER, TYPE_R4, TYPE_R8, TYPE_STRING, TYPE_TIME, TYPE_TIME_TZ, TYPE_UI1, TYPE_UI2, TYPE_UI4, TYPE_URI, TYPE_UUID |
Constructor Summary | |
---|---|
PowerStateVariable()
|
Method Summary | |
---|---|
String[] |
getAllowedValues()
Returns the allowed values, if defined. |
Boolean |
getCurrentPower()
|
Object |
getCurrentValue()
This method will keep the current values of UPnPStateVariables of a UPnPDevice whenever UPnPStateVariable's value is changed , this method must be called. |
Object |
getDefaultValue()
Returns the default value, if defined. |
Class |
getJavaDataType()
Returns the Java class associated with the UPnP data type of this state variable. |
Number |
getMaximum()
Returns the maximum value, if defined. |
Number |
getMinimum()
Returns the minimum value, if defined. |
String |
getName()
Returns the variable name. |
Number |
getStep()
Returns the size of an increment operation, if defined. |
String |
getUPnPDataType()
Returns the UPnP type of this state variable. |
boolean |
sendsEvents()
Tells if this StateVariable can be used as an event source. |
void |
setNotifier(UPnPEventNotifier notifier)
|
void |
setPower(Boolean value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerStateVariable()
Method Detail |
---|
public String getName()
UPnPStateVariable
X_
nor A_
.X_
.
getName
in interface UPnPStateVariable
public Class getJavaDataType()
UPnPStateVariable
Mapping between the UPnP data types and Java classes is performed according to the schema mentioned above.
Integer ui1, ui2, i1, i2, i4, int Long ui4, time, time.tz Float r4, float Double r8, number, fixed.14.4 Character char String string, uri, uuid Date date, dateTime, dateTime.tz Boolean boolean byte[] bin.base64, bin.hex
getJavaDataType
in interface UPnPStateVariable
public String getUPnPDataType()
UPnPStateVariable
getUPnPDataType
in interface UPnPStateVariable
public Object getDefaultValue()
UPnPStateVariable
getDefaultValue
in interface UPnPStateVariable
null
if not defined. The type of
the returned object can be determined by getJavaDataType
.public String[] getAllowedValues()
UPnPStateVariable
getAllowedValues
in interface UPnPStateVariable
null
if not defined. Should be
less than 32 characters.public Number getMinimum()
UPnPStateVariable
getMinimum
in interface UPnPStateVariable
null
if not defined.public Number getMaximum()
UPnPStateVariable
getMaximum
in interface UPnPStateVariable
null
if not defined.public Number getStep()
UPnPStateVariable
getStep
in interface UPnPStateVariable
public boolean sendsEvents()
UPnPStateVariable
sendsEvents
in interface UPnPStateVariable
true
if the StateVariable
generates events,
false
otherwise.public Boolean getCurrentPower()
public void setPower(Boolean value)
public void setNotifier(UPnPEventNotifier notifier)
public Object getCurrentValue()
UPnPLocalStateVariable
getCurrentValue
in interface UPnPLocalStateVariable
Object
current value of UPnPStateVariable. if the
current value is initialized with the default value defined UPnP
service description.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |