Package org.jdesktop.http
Class NameValuePair
java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.http.NameValuePair
- All Implemented Interfaces:
Cloneable
Represents a name/value pair. Both the name and value properties
are bound (meaning a PropertyChangeEvent will be fired when their values
change).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of NameValuePair.NameValuePair(String name, String value)Creates a new instance of NameValuePair, using the supplied name and value. -
Method Summary
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Constructor Details
-
NameValuePair
public NameValuePair()Creates a new instance of NameValuePair. Both name and value will be null. -
NameValuePair
Creates a new instance of NameValuePair, using the supplied name and value.- Parameters:
name- the name to use. May be null.value- the value to use. May be null.
-
-
Method Details
-
setName
Sets the name. A PropertyChangeEvent will be fired if the name is different from the current name value.- Parameters:
name- The name to use. May be null.
-
getName
Gets the name.- Returns:
- the name. May be null.
-
setValue
Sets the value. A PropertyChangeEvent will be fired if the value is different from the current value.- Parameters:
value- The value to use. May be null.
-
getValue
Gets the value.- Returns:
- the value. May be null.
-
clone
- Overrides:
clonein classAbstractBean
-
toString
-