Constructor and Description |
---|
RevisionEventBeanMerge(RevisionEventType revisionEventType,
EventBean underlyingFull)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String property)
Returns the value of an event property for the given property name or property expression.
|
Object |
getBaseEventValue(RevisionGetterParameters parameters)
Returns base event value.
|
EventType |
getEventType()
Return the
EventType instance that describes the set of properties available for this event. |
Object |
getFragment(String propertyExpression)
Returns event beans or array of event bean for a property name or property expression.
|
Object |
getKey()
Returns the key.
|
EventBean |
getLastBaseEvent()
Returns last base event.
|
Object[] |
getOverlay()
Returns overlay values.
|
Object |
getUnderlying()
Get the underlying data object to this event wrapper.
|
EventBean |
getUnderlyingFullOrDelta()
Returns wrapped event
|
Object |
getVersionedValue(RevisionGetterParameters parameters)
Returns a versioned value.
|
boolean |
isLatest()
Returns flag indicated latest or not.
|
void |
setKey(Object key)
Sets the key.
|
void |
setLastBaseEvent(EventBean lastBaseEvent)
Sets last base event.
|
void |
setLatest(boolean latest)
Sets flag indicating latest or not.
|
void |
setOverlay(NullableObject<Object>[] overlay)
Sets merged values.
|
public RevisionEventBeanMerge(RevisionEventType revisionEventType, EventBean underlyingFull)
revisionEventType
- typeunderlyingFull
- event wrappedpublic void setOverlay(NullableObject<Object>[] overlay)
overlay
- merged valuespublic boolean isLatest()
public void setLatest(boolean latest)
latest
- flagpublic Object getKey()
public void setKey(Object key)
key
- to setpublic Object[] getOverlay()
public EventBean getLastBaseEvent()
public void setLastBaseEvent(EventBean lastBaseEvent)
lastBaseEvent
- to setpublic EventType getEventType()
EventBean
EventType
instance that describes the set of properties available for this event.getEventType
in interface EventBean
public Object get(String property) throws PropertyAccessException
EventBean
Returns null if the property value is null. Throws an exception if the expression is not valid against the event type.
The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof.
get
in interface EventBean
property
- - name or expression of the property whose value is to be retrievedPropertyAccessException
- - if there is no property of the specified name, or the property cannot be accessedpublic Object getUnderlying()
EventBean
getUnderlying
in interface EventBean
public EventBean getUnderlyingFullOrDelta()
public Object getBaseEventValue(RevisionGetterParameters parameters)
parameters
- supplies getterpublic Object getVersionedValue(RevisionGetterParameters parameters)
parameters
- getter and indexespublic Object getFragment(String propertyExpression)
EventBean
For use with properties whose value is itself an event or whose value can be represented as an event by the underlying event representation.
The EventType
of the event bean instance(s) returned by this method can be determined by
EventType.getFragmentType(String)
. Use EventPropertyDescriptor
to
obtain a list of properties that return fragments from an event type.
Returns null if the property value is null or the property value cannot be represented as a fragment by the underlying representation.
The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof.
getFragment
in interface EventBean
propertyExpression
- - name or expression of the property whose value is to be presented as an EventBean or array of EventBean