java.lang.Object
org.cybergarage.upnp.xml.NodeData
org.cybergarage.upnp.StateVariable
public class StateVariable
extends org.cybergarage.upnp.xml.NodeData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStateVariable(org.cybergarage.xml.Node serviceNode, org.cybergarage.xml.Node stateVarNode) -
Method Summary
Modifier and TypeMethodDescriptionGet the value of DefaultValue of this StateVariablegetName()org.cybergarage.upnp.control.QueryListenerorg.cybergarage.upnp.control.QueryResponseorg.cybergarage.xml.Nodeorg.cybergarage.upnp.xml.StateVariableDataorg.cybergarage.xml.NodegetValue()booleanbooleanbooleanstatic booleanisStateVariableNode(org.cybergarage.xml.Node node) booleanperformQueryListener(org.cybergarage.upnp.control.QueryRequest queryReq) booleanvoidset(StateVariable stateVar) voidThis method ovverride the value of the AllowedValueList Node
of this object.voidThis method ovverride the value of the AllowedValueRange Node
of this object.voidsetDataType(String value) voidsetDefaultValue(String value) This method ovverride the value of the DefaultValue of this object.voidvoidsetQueryListener(org.cybergarage.upnp.control.QueryListener listener) voidsetSendEvents(boolean state) voidsetStatus(int code) voidvoidsetUserData(Object data) voidsetValue(int value) voidsetValue(long value) voidMethods inherited from class org.cybergarage.upnp.xml.NodeData
getNode, setNode
-
Field Details
-
ELEM_NAME
- See Also:
-
-
Constructor Details
-
StateVariable
public StateVariable() -
StateVariable
public StateVariable(org.cybergarage.xml.Node serviceNode, org.cybergarage.xml.Node stateVarNode)
-
-
Method Details
-
getServiceNode
public org.cybergarage.xml.Node getServiceNode() -
getService
-
getStateVariableNode
public org.cybergarage.xml.Node getStateVariableNode() -
isStateVariableNode
public static boolean isStateVariableNode(org.cybergarage.xml.Node node) -
setName
-
getName
-
setDataType
-
getDataType
-
setSendEvents
public void setSendEvents(boolean state) -
isSendEvents
public boolean isSendEvents() -
set
-
getStateVariableData
public org.cybergarage.upnp.xml.StateVariableData 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
public org.cybergarage.upnp.control.QueryListener getQueryListener() -
setQueryListener
public void setQueryListener(org.cybergarage.upnp.control.QueryListener listener) -
performQueryListener
public boolean performQueryListener(org.cybergarage.upnp.control.QueryRequest queryReq) -
getQueryResponse
public org.cybergarage.upnp.control.QueryResponse 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
-