|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyEvent
Extension of the Event interface allowing clients to retrieve extra information from events
generated around properties.
Event.PROPERTY_CHANGED,
Event.PROPERTY_ADDED,
Event.PROPERTY_REMOVED| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.modeshape.jcr.api.observation.Event |
|---|
Event.Sequencing |
| Field Summary |
|---|
| Fields inherited from interface javax.jcr.observation.Event |
|---|
NODE_ADDED, NODE_MOVED, NODE_REMOVED, PERSIST, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED |
| Method Summary | |
|---|---|
Object |
getCurrentValue()
Returns the single value of the property if it's not a multi-value property, or the first value from the list of values if the property is multi-valued. |
List<?> |
getCurrentValues()
Returns all the values of the property. |
Object |
getPreviousValue()
In case of a Event.PROPERTY_CHANGED event, returns the single value of the old property if it
wasn't a multi-value property, or the first value from the list of values if the property was multi-valued. |
List<?> |
getPreviousValues()
In case of a Event.PROPERTY_CHANGED event, returns all the values of the old property. |
boolean |
isMultiValue()
Returns true if this property is multi-valued and false if this property is single-valued. |
boolean |
wasMultiValue()
In case of a Event.PROPERTY_CHANGED event, returns true if the old property was
multi-valued and false if the old property was single-valued. |
| Methods inherited from interface javax.jcr.observation.Event |
|---|
getDate, getIdentifier, getInfo, getPath, getType, getUserData, getUserID |
| Method Detail |
|---|
boolean isMultiValue()
true if this property is multi-valued and false if this property is single-valued.
Object getCurrentValue()
Object corresponding to the value of the property or null if the property has no valueList<?> getCurrentValues()
List with all the values of the property, never nullboolean wasMultiValue()
Event.PROPERTY_CHANGED event, returns true if the old property was
multi-valued and false if the old property was single-valued.
For all other property events, this will return false.
false if the event type is not
Event.PROPERTY_CHANGEDObject getPreviousValue()
Event.PROPERTY_CHANGED event, returns the single value of the old property if it
wasn't a multi-value property, or the first value from the list of values if the property was multi-valued.
Object corresponding to the value of the old property or null if the old property had no value or
if the event is not aEvent.PROPERTY_CHANGED eventList<?> getPreviousValues()
Event.PROPERTY_CHANGED event, returns all the values of the old property. If the
property was single-valued, it will return a list with 1 element.
List with all the values of the old property or null if the event is not a
Event.PROPERTY_CHANGED event.
|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||