mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-09-27 00:38:22 +00:00
66 lines
1.3 KiB
Java
66 lines
1.3 KiB
Java
/******************************************************************
|
|
*
|
|
* CyberUPnP for Java
|
|
*
|
|
* Copyright (C) Satoshi Konno 2002-2003
|
|
*
|
|
* File: Subscriber.java
|
|
*
|
|
* Revision;
|
|
*
|
|
* 01/29/03
|
|
* - first revision.
|
|
* 05/22/03
|
|
* - Giordano Sassaroli <sassarol@cefriel.it>
|
|
* - Problem : the setName method does not set the name of the property
|
|
* - Error : the method contains a bug:
|
|
* 06/18/03
|
|
* - Fixed a bug when a null value is received to the name and the value of property.
|
|
*
|
|
******************************************************************/
|
|
|
|
package org.cybergarage.upnp.event;
|
|
|
|
public class Property
|
|
{
|
|
////////////////////////////////////////////////
|
|
// Constructor
|
|
////////////////////////////////////////////////
|
|
|
|
public Property()
|
|
{
|
|
}
|
|
|
|
////////////////////////////////////////////////
|
|
// name
|
|
////////////////////////////////////////////////
|
|
|
|
private String name = "";
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String val) {
|
|
if (val == null)
|
|
val = "";
|
|
name = val;
|
|
}
|
|
|
|
////////////////////////////////////////////////
|
|
// value
|
|
////////////////////////////////////////////////
|
|
|
|
private String value = "";
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String val) {
|
|
if (val == null)
|
|
val = "";
|
|
value = val;
|
|
}
|
|
}
|