public class AllowedValue extends Object
This class encapsulates allowed value definitions from UPnP service descriptions. It provides XML node management for state variables that have enumerated or restricted value sets defined in their service descriptions.
Key features:
This class is used by UPnP services to manage allowed value constraints for state variables, enabling proper validation and description generation for variables with restricted value sets.
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEM_NAME
XML element name for allowed value in UPnP descriptions.
|
| Constructor and Description |
|---|
AllowedValue(Node node) |
AllowedValue(String value)
Create an AllowedValue by the value String, and will create the Node structure by itself
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getAllowedValueNode() |
String |
getValue() |
static boolean |
isAllowedValueNode(Node node)
Checks if the given node is an allowedValue element.
|
void |
setValue(String value)
Sets the value for this allowed value element.
|
public static final String ELEM_NAME
public AllowedValue(Node node)
public AllowedValue(String value)
value - The value that will be associate to this objectpublic Node getAllowedValueNode()
public String getValue()
public static boolean isAllowedValueNode(Node node)
node - the XML node to checkpublic void setValue(String value)
value - the value string to set