Class StateVariable


  • public class StateVariable
    extends NodeData
    • Constructor Detail

      • StateVariable

        public StateVariable()
      • StateVariable

        public StateVariable​(Node serviceNode,
                             Node stateVarNode)
    • 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()
      • setValue

        public void setValue​(String value)
      • setValue

        public void setValue​(int value)
      • setValue

        public void setValue​(long value)
      • getValue

        public String getValue()
      • 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()
      • 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()
      • setQueryListener

        public void setQueryListener​(QueryListener listener)
      • performQueryListener

        public boolean performQueryListener​(QueryRequest queryReq)
      • getQueryStatus

        public UPnPStatus getQueryStatus()
      • postQuerylAction

        public boolean postQuerylAction()
      • setStatus

        public void setStatus​(int code,
                              String descr)
      • setStatus

        public void setStatus​(int code)
      • 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()