public class AllowedValueRange extends Object
This class encapsulates allowed value range definitions from UPnP service descriptions. It provides XML node management for state variables that have numeric ranges defined as allowed value constraints.
Key features:
This class is used by UPnP services to manage allowed value range constraints for state variables, enabling proper validation and description generation for numeric variables with restricted ranges.
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEM_NAME
XML element name for allowed value range in UPnP descriptions.
|
| Constructor and Description |
|---|
AllowedValueRange()
Creates an empty AllowedValueRange with a new node structure.
|
AllowedValueRange(Node node)
Creates an AllowedValueRange from an XML node.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getAllowedValueRangeNode() |
String |
getMaximum()
Gets the maximum value for this allowed value range.
|
String |
getMinimum()
Gets the minimum value for this allowed value range.
|
String |
getStep()
Gets the step value for this allowed value range.
|
static boolean |
isAllowedValueRangeNode(Node node)
Checks if the given node is an allowedValueRange element.
|
void |
setMaximum(String value)
Sets the maximum value for this allowed value range.
|
void |
setMinimum(String value)
Sets the minimum value for this allowed value range.
|
void |
setStep(String value)
Sets the step value for this allowed value range.
|
public static final String ELEM_NAME
public AllowedValueRange()
public AllowedValueRange(Node node)
node - the XML node containing the allowed value range datapublic Node getAllowedValueRangeNode()
public String getMaximum()
public String getMinimum()
public String getStep()
public static boolean isAllowedValueRangeNode(Node node)
node - the XML node to checkpublic void setMaximum(String value)
value - the maximum value string to setpublic void setMinimum(String value)
value - the minimum value string to setpublic void setStep(String value)
value - the step value string to set