Class FeaturePropertyModified
- java.lang.Object
-
- org.eclipse.ditto.base.model.signals.events.AbstractEvent<T>
-
- org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T>
-
- org.eclipse.ditto.things.model.signals.events.AbstractThingEvent<FeaturePropertyModified>
-
- org.eclipse.ditto.things.model.signals.events.FeaturePropertyModified
-
- All Implemented Interfaces:
org.eclipse.ditto.base.model.entity.id.WithEntityId,org.eclipse.ditto.base.model.headers.DittoHeadersSettable<FeaturePropertyModified>,org.eclipse.ditto.base.model.headers.WithDittoHeaders,org.eclipse.ditto.base.model.headers.WithManifest,org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>,org.eclipse.ditto.base.model.signals.events.Event<FeaturePropertyModified>,org.eclipse.ditto.base.model.signals.events.EventsourcedEvent<FeaturePropertyModified>,org.eclipse.ditto.base.model.signals.Signal<FeaturePropertyModified>,org.eclipse.ditto.base.model.signals.SignalWithEntityId<FeaturePropertyModified>,org.eclipse.ditto.base.model.signals.WithFeatureId,org.eclipse.ditto.base.model.signals.WithName,org.eclipse.ditto.base.model.signals.WithOptionalEntity,org.eclipse.ditto.base.model.signals.WithResource,org.eclipse.ditto.base.model.signals.WithType,ThingEvent<FeaturePropertyModified>,ThingModifiedEvent<FeaturePropertyModified>,WithThingId
@Immutable public final class FeaturePropertyModified extends AbstractThingEvent<FeaturePropertyModified> implements ThingModifiedEvent<FeaturePropertyModified>, org.eclipse.ditto.base.model.signals.WithFeatureId
This event is emitted after a Property of a Feature'sFeaturePropertieswas modified.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.events.Event
org.eclipse.ditto.base.model.signals.events.Event.JsonFields
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.events.EventsourcedEvent
org.eclipse.ditto.base.model.signals.events.EventsourcedEvent.JsonFields
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends java.lang.Object>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.things.model.signals.events.ThingEvent
ThingEvent.JsonFields
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEName of the "Feature Property Modified" event.static java.lang.StringTYPEType of this event.-
Fields inherited from interface org.eclipse.ditto.base.model.signals.events.Event
DEFAULT_REVISION, TYPE_QUALIFIER
-
Fields inherited from interface org.eclipse.ditto.things.model.signals.events.ThingEvent
RESOURCE_TYPE, TYPE_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendPayloadAndBuild(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, java.util.function.Predicate<org.eclipse.ditto.json.JsonField> thePredicate)protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)static FeaturePropertyModifiedfromJson(java.lang.String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a newFeaturePropertyModifiedfrom a JSON string.static FeaturePropertyModifiedfromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a newFeaturePropertyModifiedfrom a JSON object.java.util.Optional<org.eclipse.ditto.json.JsonValue>getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion)java.lang.StringgetFeatureId()org.eclipse.ditto.json.JsonPointergetPropertyPointer()Returns the JSON pointer of the Property to modify.org.eclipse.ditto.json.JsonValuegetPropertyValue()Returns the value of the Property to modify.org.eclipse.ditto.json.JsonPointergetResourcePath()inthashCode()static FeaturePropertyModifiedof(ThingId thingId, java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyJsonPointer, org.eclipse.ditto.json.JsonValue propertyValue, long revision, java.time.Instant timestamp, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders, org.eclipse.ditto.base.model.entity.metadata.Metadata metadata)Constructs a newFeaturePropertyModifiedobject.FeaturePropertyModifiedsetDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)FeaturePropertyModifiedsetRevision(long revision)java.lang.StringtoString()-
Methods inherited from class org.eclipse.ditto.things.model.signals.events.AbstractThingEvent
getEntityId
-
Methods inherited from class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent
getRevision, toJson
-
Methods inherited from class org.eclipse.ditto.base.model.signals.events.AbstractEvent
getDittoHeaders, getManifest, getMetadata, getTimestamp, getType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.ditto.base.model.signals.events.Event
getImplementedSchemaVersion, getMetadata, getTimestamp, getType, toJson
-
Methods inherited from interface org.eclipse.ditto.base.model.signals.events.EventsourcedEvent
getRevision
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate
toJson, toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.things.model.signals.events.ThingEvent
getResourceType
-
Methods inherited from interface org.eclipse.ditto.base.model.headers.WithDittoHeaders
getDittoHeaders
-
Methods inherited from interface org.eclipse.ditto.things.model.WithThingId
getEntityId
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Name of the "Feature Property Modified" event.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Type of this event.- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static FeaturePropertyModified of(ThingId thingId, java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyJsonPointer, org.eclipse.ditto.json.JsonValue propertyValue, long revision, @Nullable java.time.Instant timestamp, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders, @Nullable org.eclipse.ditto.base.model.entity.metadata.Metadata metadata)
Constructs a newFeaturePropertyModifiedobject.- Parameters:
thingId- the ID of the Thing whose Feature's Property was modified.featureId- the ID of the Feature whose Property was modified.propertyJsonPointer- the JSON pointer of the modified Property key.propertyValue- the value of the modified Property.revision- the revision of the Thing.timestamp- the timestamp of this event.dittoHeaders- the headers of the command which was the cause of this event.metadata- the metadata to apply for the event.- Returns:
- the FeaturePropertyModified created.
- Throws:
java.lang.NullPointerException- if any argument buttimestampandmetadataisnull.- Since:
- 1.3.0
-
fromJson
public static FeaturePropertyModified fromJson(java.lang.String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
Creates a newFeaturePropertyModifiedfrom a JSON string.- Parameters:
jsonString- the JSON string of which a new FeaturePropertyModified instance is to be created.dittoHeaders- the headers of the command which was the cause of this event.- Returns:
- the
FeaturePropertyModifiedwhich was created from the given JSON string. - Throws:
java.lang.NullPointerException- ifjsonStringisnull.java.lang.IllegalArgumentException- ifjsonStringis empty.org.eclipse.ditto.json.JsonParseException- if the passed injsonStringwas not in the expected 'FeaturePropertyModified' format.
-
fromJson
public static FeaturePropertyModified fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
Creates a newFeaturePropertyModifiedfrom a JSON object.- Parameters:
jsonObject- the JSON object from which a new FeaturePropertyModified instance is to be created.dittoHeaders- the headers of the command which was the cause of this event.- Returns:
- the
FeaturePropertyModifiedwhich was created from the given JSON object. - Throws:
java.lang.NullPointerException- ifjsonObjectisnull.org.eclipse.ditto.json.JsonParseException- if the passed injsonObjectwas not in the expected 'FeaturePropertyModified' format.
-
getFeatureId
public java.lang.String getFeatureId()
- Specified by:
getFeatureIdin interfaceorg.eclipse.ditto.base.model.signals.WithFeatureId
-
getPropertyPointer
public org.eclipse.ditto.json.JsonPointer getPropertyPointer()
Returns the JSON pointer of the Property to modify.- Returns:
- the JSON pointer of the Property to modify.
-
getPropertyValue
public org.eclipse.ditto.json.JsonValue getPropertyValue()
Returns the value of the Property to modify.- Returns:
- the value of the Property to modify.
-
getEntity
public java.util.Optional<org.eclipse.ditto.json.JsonValue> getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion)
- Specified by:
getEntityin interfaceorg.eclipse.ditto.base.model.signals.WithOptionalEntity
-
getResourcePath
public org.eclipse.ditto.json.JsonPointer getResourcePath()
- Specified by:
getResourcePathin interfaceorg.eclipse.ditto.base.model.signals.WithResource
-
setRevision
public FeaturePropertyModified setRevision(long revision)
- Specified by:
setRevisionin classorg.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<FeaturePropertyModified>
-
setDittoHeaders
public FeaturePropertyModified setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
- Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.headers.DittoHeadersSettable<FeaturePropertyModified>- Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.signals.events.EventsourcedEvent<FeaturePropertyModified>- Specified by:
setDittoHeadersin interfaceThingEvent<FeaturePropertyModified>- Specified by:
setDittoHeadersin interfaceThingModifiedEvent<FeaturePropertyModified>
-
appendPayloadAndBuild
protected void appendPayloadAndBuild(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, java.util.function.Predicate<org.eclipse.ditto.json.JsonField> thePredicate)- Specified by:
appendPayloadAndBuildin classorg.eclipse.ditto.base.model.signals.events.AbstractEvent<FeaturePropertyModified>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractThingEvent<FeaturePropertyModified>
-
equals
public boolean equals(@Nullable java.lang.Object o)- Overrides:
equalsin classAbstractThingEvent<FeaturePropertyModified>
-
canEqual
protected boolean canEqual(@Nullable java.lang.Object other)- Overrides:
canEqualin classAbstractThingEvent<FeaturePropertyModified>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractThingEvent<FeaturePropertyModified>
-
-