java.lang.Object
org.cybergarage.upnp.event.Property
Represents a UPnP event property containing a name-value pair.
This class encapsulates a single property change in UPnP event notifications. Each property has a name (corresponding to a state variable) and a value representing the new state of that variable.
Key features:
- Name-value pair storage for state variables
- XML representation for event messages
- Null-safe value handling
- Property name and value management
This class is used in UPnP event notifications to communicate changes in service state variables to subscribed control points, enabling real-time monitoring of device status changes.
Field Summary
Constructor Summary
ConstructorsMethod Summary
Field Details
name
/////////////////////////////////////////////value
/////////////////////////////////////////////
Constructor Details
Property
public Property()Creates a property with empty name and value.
Method Details
getName
Gets the UPnP name of this property.- Returns:
- the UPnP name of this property, never null
setName
Sets the UPnP name of this property, mapping null to an empty string.- Parameters:
val- the UPnP name to store; null is stored as an empty string
getValue
Gets the current UPnP value of this property.- Returns:
- the current UPnP value of this property, never null
setValue
Sets the current UPnP value, mapping null to an empty string.- Parameters:
val- the value to store; null is stored as an empty string