Package org.cybergarage.upnp
Class StateVariable
java.lang.Object
org.cybergarage.upnp.xml.NodeData
org.cybergarage.upnp.StateVariable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of DefaultValue of this StateVariablegetName()getValue()booleanbooleanbooleanstatic booleanisStateVariableNode(Node node) booleanperformQueryListener(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(QueryListener listener) voidsetSendEvents(boolean state) (package private) voidvoidsetStatus(int code) voidvoidsetUserData(Object data) voidsetValue(int value) voidsetValue(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
-