Package org.jboss.util.property
Class PropertyEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jboss.util.property.PropertyEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class PropertyEvent extends java.util.EventObjectA property event.- Version:
- $Revision$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringnameProperty name.private static longserialVersionUIDThe serialVersionUIDprotected java.lang.StringvalueProperty value.
-
Constructor Summary
Constructors Constructor Description PropertyEvent(java.lang.Object source, java.lang.String name)Construct a new PropertyEvent.PropertyEvent(java.lang.Object source, java.lang.String name, java.lang.String value)Construct a new PropertyEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPropertyName()Get the name of the property that is effected.java.lang.StringgetPropertyValue()Get the value of the property that is effected.java.lang.StringtoString()Return a string representation of this event.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serialVersionUID- See Also:
- Constant Field Values
-
name
protected final java.lang.String name
Property name.
-
value
protected final java.lang.String value
Property value.
-
-
Constructor Detail
-
PropertyEvent
public PropertyEvent(java.lang.Object source, java.lang.String name, java.lang.String value)Construct a new PropertyEvent.- Parameters:
source- The source of the event.name- The property name effected.value- The value of the property effected.- Throws:
NullArgumentException- Name or source is null.
-
PropertyEvent
public PropertyEvent(java.lang.Object source, java.lang.String name)Construct a new PropertyEvent.- Parameters:
source- The source of the event.name- The property name effected.- Throws:
NullArgumentException- Name or source is null.
-
-
Method Detail
-
getPropertyName
public final java.lang.String getPropertyName()
Get the name of the property that is effected.- Returns:
- Property name.
-
getPropertyValue
public final java.lang.String getPropertyValue()
Get the value of the property that is effected.- Returns:
- The value of the property that is effected or null.
-
toString
public java.lang.String toString()
Return a string representation of this event.- Overrides:
toStringin classjava.util.EventObject- Returns:
- A string representation of this event.
-
-