public class StateVariable extends NodeData
| Constructor and Description |
|---|
StateVariable()
Creates a new StateVariable with default initialization.
|
StateVariable(Node serviceNode,
Node stateVarNode)
Creates a StateVariable with specified service and state variable nodes.
|
| Modifier and Type | Method and Description |
|---|---|
AllowedValueList |
getAllowedValueList() |
AllowedValueRange |
getAllowedValueRange() |
String |
getDataType() |
String |
getDefaultValue()
Get the value of DefaultValue of this StateVariable
|
String |
getName()
Gets the name of this state variable.
|
QueryListener |
getQueryListener() |
QueryResponse |
getQueryResponse() |
UPnPStatus |
getQueryStatus() |
Service |
getService() |
Node |
getServiceNode()
Gets the service node this state variable belongs to.
|
StateVariableData |
getStateVariableData() |
Node |
getStateVariableNode()
Gets the state variable node containing variable definition.
|
UPnPStatus |
getStatus() |
Object |
getUserData() |
String |
getValue() |
boolean |
hasAllowedValueList() |
boolean |
hasAllowedValueRange() |
boolean |
isSendEvents() |
static boolean |
isStateVariableNode(Node node) |
boolean |
performQueryListener(QueryRequest queryReq) |
boolean |
postQuerylAction() |
void |
set(StateVariable stateVar) |
void |
setAllowedValueList(AllowedValueList avl)
This method ovverride the value of the AllowedValueList Node
of this object. |
void |
setAllowedValueRange(AllowedValueRange avr)
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 |
setName(String value)
Sets name of this state variable.
|
void |
setQueryListener(QueryListener listener) |
void |
setSendEvents(boolean state) |
(package private) void |
setServiceNode(Node n)
Sets service node this state variable belongs to.
|
void |
setStatus(int code) |
void |
setStatus(int code,
String descr) |
void |
setUserData(Object data) |
void |
setValue(int value) |
void |
setValue(long value) |
void |
setValue(String value) |
public static final String ELEM_NAME
public StateVariable()
public AllowedValueList getAllowedValueList()
public AllowedValueRange getAllowedValueRange()
public String getDataType()
public String getDefaultValue()
public String getName()
public QueryListener getQueryListener()
public QueryResponse getQueryResponse()
public UPnPStatus getQueryStatus()
public Service getService()
public Node getServiceNode()
public StateVariableData getStateVariableData()
public Node getStateVariableNode()
public UPnPStatus getStatus()
public Object getUserData()
public String getValue()
public boolean hasAllowedValueList()
public boolean hasAllowedValueRange()
public boolean isSendEvents()
public static boolean isStateVariableNode(Node node)
public boolean performQueryListener(QueryRequest queryReq)
public boolean postQuerylAction()
public void set(StateVariable stateVar)
public void setAllowedValueList(AllowedValueList avl)
avl - The new AllowedValueListpublic void setAllowedValueRange(AllowedValueRange avr)
avr - The new AllowedValueRangepublic void setDataType(String value)
public void setDefaultValue(String value)
value - The new String valuepublic void setName(String value)
value - name to setpublic void setQueryListener(QueryListener listener)
public void setSendEvents(boolean state)
void setServiceNode(Node n)
n - service nodepublic void setStatus(int code)
public void setStatus(int code,
String descr)
public void setUserData(Object data)
public void setValue(int value)
public void setValue(long value)
public void setValue(String value)