Package org.cybergarage.upnp
Class StateVariable
- java.lang.Object
-
- org.cybergarage.upnp.xml.NodeData
-
- org.cybergarage.upnp.StateVariable
-
public class StateVariable extends NodeData
-
-
Constructor Summary
Constructors Constructor Description StateVariable()
StateVariable(Node serviceNode, Node stateVarNode)
-
Method Summary
-
-
-
Field Detail
-
ELEM_NAME
public static final String ELEM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getServiceNode
public Node getServiceNode()
-
setServiceNode
void setServiceNode(Node n)
-
getService
public Service getService()
-
getStateVariableNode
public Node getStateVariableNode()
-
isStateVariableNode
public static boolean isStateVariableNode(Node node)
-
setName
public void setName(String value)
-
getName
public String getName()
-
setDataType
public void setDataType(String value)
-
getDataType
public String getDataType()
-
setSendEvents
public void setSendEvents(boolean state)
-
isSendEvents
public boolean isSendEvents()
-
set
public void set(StateVariable stateVar)
-
getStateVariableData
public StateVariableData getStateVariableData()
-
setValue
public void setValue(String value)
-
setValue
public void setValue(int value)
-
setValue
public void setValue(long value)
-
getValue
public String getValue()
-
getAllowedValueList
public AllowedValueList getAllowedValueList()
-
setAllowedValueList
public void setAllowedValueList(AllowedValueList avl)
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
public AllowedValueRange getAllowedValueRange()
-
setAllowedValueRange
public void setAllowedValueRange(AllowedValueRange avr)
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 QueryListener getQueryListener()
-
setQueryListener
public void setQueryListener(QueryListener listener)
-
performQueryListener
public boolean performQueryListener(QueryRequest queryReq)
-
getQueryResponse
public QueryResponse getQueryResponse()
-
getQueryStatus
public UPnPStatus getQueryStatus()
-
postQuerylAction
public boolean postQuerylAction()
-
setStatus
public void setStatus(int code, String descr)
-
setStatus
public void setStatus(int code)
-
getStatus
public UPnPStatus getStatus()
-
getDefaultValue
public String getDefaultValue()
Get the value of DefaultValue of this StateVariable
-
setDefaultValue
public void setDefaultValue(String value)
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
public void setUserData(Object data)
-
getUserData
public Object getUserData()
-
-