Package org.cybergarage.upnp
Class StateVariable
java.lang.Object
org.cybergarage.upnp.xml.NodeData
org.cybergarage.upnp.StateVariable
public class StateVariable extends NodeData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StateVariable()
StateVariable(Node serviceNode, Node stateVarNode)
-
Method Summary
-
Field Details
-
ELEM_NAME
- See Also:
- Constant Field Values
-
-
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
-