|
cybergarage-upnp
|
Public Member Functions | |
| Node | getAllowedValueRangeNode () |
| AllowedValueRange (Node node) | |
| AllowedValueRange () | |
| AllowedValueRange (Number max, Number min, Number step) | |
| void | setMinimum (String value) |
| String | getMinimum () |
| void | setMaximum (String value) |
| String | getMaximum () |
| void | setStep (String value) |
| String | getStep () |
Static Public Member Functions | |
| static boolean | isAllowedValueRangeNode (Node node) |
Static Public Attributes | |
| static final String | ELEM_NAME = "allowedValueRange" |
Private Attributes | |
| Node | allowedValueRangeNode |
Static Private Attributes | |
| static final String | MINIMUM = "minimum" |
| static final String | MAXIMUM = "maximum" |
| static final String | STEP = "step" |
Represents an allowed value range for a UPnP state variable.
This class defines a numeric range constraint for state variables, including minimum, maximum, and optional step values. It is used when a state variable can take any numeric value within a specified range.
|
inline |
Constructs an allowed value range from an existing XML node.
| node | the XML node representing the allowed value range |
|
inline |
Constructs an empty allowed value range.
|
inline |
Constructs an allowed value range with specified bounds and step.
| max | the maximum allowed value, or null to omit |
| min | the minimum allowed value, or null to omit |
| step | the step increment, or null to omit |
|
inline |
Returns the underlying XML node representing this allowed value range.
|
inline |
Returns the maximum allowed value.
|
inline |
Returns the minimum allowed value.
|
inline |
Returns the step increment for the range.
|
inlinestatic |
Checks if the given XML node represents an allowed value range element.
| node | the XML node to check |
true if the node's name matches the allowed value range element name,
false otherwise
|
inline |
Sets the maximum allowed value.
| value | the maximum value as a string |
|
inline |
Sets the minimum allowed value.
| value | the minimum value as a string |
|
inline |
Sets the step increment for the range.
The step defines the granularity of allowed values within the range.
| value | the step increment as a string |
|
private |
|
static |
The XML element name for allowed value range nodes in SCPD documents.
|
staticprivate |
|
staticprivate |
|
staticprivate |