Package org.cybergarage.upnp
Class StateVariable
java.lang.Object
org.cybergarage.upnp.xml.NodeData
org.cybergarage.upnp.StateVariable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the value of DefaultValue of this StateVariablegetName()
getValue()
boolean
boolean
boolean
static boolean
isStateVariableNode
(Node node) boolean
performQueryListener
(QueryRequest queryReq) boolean
void
set
(StateVariable stateVar) void
This method ovverride the value of the AllowedValueList Node
of this object.void
This method ovverride the value of the AllowedValueRange Node
of this object.void
setDataType
(String value) void
setDefaultValue
(String value) This method ovverride the value of the DefaultValue of this object.void
void
setQueryListener
(QueryListener listener) void
setSendEvents
(boolean state) (package private) void
void
setStatus
(int code) void
void
setUserData
(Object data) void
setValue
(int value) void
setValue
(long value) void
-
Field Details
-
ELEM_NAME
- See Also:
-
-
Constructor Details
-
StateVariable
public StateVariable() -
StateVariable
-
-
Method Details
-
getServiceNode
-
setServiceNode
-
getService
-
getStateVariableNode
-
isStateVariableNode
-
setName
-
getName
-
setDataType
-
getDataType
-
setSendEvents
public void setSendEvents(boolean state) -
isSendEvents
public boolean isSendEvents() -
set
-
getStateVariableData
-
setValue
-
setValue
public void setValue(int value) -
setValue
public void setValue(long value) -
getValue
-
getAllowedValueList
-
setAllowedValueList
This method ovverride the value of the AllowedValueList Node
of this object.
Note: This method should be used to create a dynamic
Device withtout writing any XML that describe the device
.
Note2: The enforce the constraint of the SCPD rule the
AllowedValueList and AllowedValueRange are mutal exclusive
the last set will be the only present- Parameters:
avl
- The new AllowedValueList
-
hasAllowedValueList
public boolean hasAllowedValueList() -
getAllowedValueRange
-
setAllowedValueRange
This method ovverride the value of the AllowedValueRange Node
of this object.
Note: This method should be used to create a dynamic
Device withtout writing any XML that describe the device
.
Note2: The enforce the constraint of the SCPD rule the
AllowedValueList and AllowedValueRange are mutal exclusive
the last set will be the only present- Parameters:
avr
- The new AllowedValueRange
-
hasAllowedValueRange
public boolean hasAllowedValueRange() -
getQueryListener
-
setQueryListener
-
performQueryListener
-
getQueryResponse
-
getQueryStatus
-
postQuerylAction
public boolean postQuerylAction() -
setStatus
-
setStatus
public void setStatus(int code) -
getStatus
-
getDefaultValue
Get the value of DefaultValue of this StateVariable -
setDefaultValue
This method ovverride the value of the DefaultValue of this object.
Note: This method should be used to create a dynamic
Device withtout writing any XML that describe the device
.- Parameters:
value
- The new String value
-
setUserData
-
getUserData
-