java.lang.Object
org.cybergarage.upnp.event.Property

public class Propertyextends Object
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 Details

    • name

      private String name
      /////////////////////////////////////////////
    • value

      private String value
      /////////////////////////////////////////////
  • Constructor Details

    • Property

      public Property()
      Creates a property with empty name and value.
  • Method Details

    • getName

      public String getName()
      Gets the UPnP name of this property.
      Returns:
      the UPnP name of this property, never null
    • setName

      public void setName(String val)
      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

      public String getValue()
      Gets the current UPnP value of this property.
      Returns:
      the current UPnP value of this property, never null
    • setValue

      public void setValue(String val)
      Sets the current UPnP value, mapping null to an empty string.
      Parameters:
      val - the value to store; null is stored as an empty string