Class PropertyUpdatedEventImpl
- java.lang.Object
-
- org.refcodes.observer.AbstractEvent<SRC>
-
- org.refcodes.observer.AbstractActionEvent<PropertyAction,ObservableProperties>
-
- org.refcodes.configuration.ext.observer.PropertyEventImpl
-
- org.refcodes.configuration.ext.observer.PropertyUpdatedEventImpl
-
- All Implemented Interfaces:
PropertyEvent
,PropertyUpdatedEvent
,org.refcodes.mixin.ActionAccessor<PropertyAction>
,org.refcodes.mixin.KeyAccessor<PropertyAction>
,org.refcodes.mixin.SourceAccessor<PropertyAction>
,org.refcodes.mixin.ValueAccessor<PropertyAction>
,org.refcodes.observer.GenericActionEvent<PropertyAction,ObservableProperties>
,org.refcodes.observer.GenericEvent<PropertyAction>
,org.refcodes.structure.Property
,org.refcodes.structure.Relation<PropertyAction,ObservableProperties>
public class PropertyUpdatedEventImpl extends PropertyEventImpl implements PropertyUpdatedEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends java.lang.Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends java.lang.Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Property
org.refcodes.structure.Property.PropertyBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Relation
org.refcodes.structure.Relation.RelationBuilder<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends java.lang.Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends java.lang.Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends java.lang.Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description PropertyUpdatedEventImpl(java.lang.String aKey, java.lang.String aValue, java.lang.String aPreviousValue, ObservableProperties aSource)
Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.PropertyUpdatedEventImpl(org.refcodes.structure.Property aProperty, java.lang.String aPreviousValue, ObservableProperties aSource)
Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPreviousValue()
Returns the value of the property which has been replaced by the value as ofValueAccessor.getValue()
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.refcodes.configuration.ext.observer.PropertyEventImpl
getKey, getValue
-
-
-
-
Constructor Detail
-
PropertyUpdatedEventImpl
public PropertyUpdatedEventImpl(org.refcodes.structure.Property aProperty, java.lang.String aPreviousValue, ObservableProperties aSource)
Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.- Parameters:
aProperty
- The key and value pair of theProperty
being involved in the event.aPreviousValue
- The value previously being set (and now being overwritten) for the according property being updated.aSource
- The source from which this event originated.
-
PropertyUpdatedEventImpl
public PropertyUpdatedEventImpl(java.lang.String aKey, java.lang.String aValue, java.lang.String aPreviousValue, ObservableProperties aSource)
Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.- Parameters:
aKey
- The key of theProperty
being involved in the event.aValue
- The value of theProperty
being involved in the event.aPreviousValue
- The value previously being set (and now being overwritten) for the according property being updated.aSource
- The source from which this event originated.
-
-
Method Detail
-
getPreviousValue
public java.lang.String getPreviousValue()
Returns the value of the property which has been replaced by the value as ofValueAccessor.getValue()
.- Specified by:
getPreviousValue
in interfacePropertyUpdatedEvent
- Returns:
- The previously set value before it has been changed.
-
-