Uses of Interface
org.eclipse.ditto.things.model.Attributes
-
Packages that use Attributes Package Description org.eclipse.ditto.things.model Contains the Things framework around the cornerstone of this package:Thing.org.eclipse.ditto.things.model.signals.commands.modify org.eclipse.ditto.things.model.signals.commands.query org.eclipse.ditto.things.model.signals.events -
-
Uses of Attributes in org.eclipse.ditto.things.model
Methods in org.eclipse.ditto.things.model that return Attributes Modifier and Type Method Description AttributesAttributesBuilder. build()Creates a newAttributesobject containing all values which were set to this builder beforehand.static AttributesAttributesModelFactory. emptyAttributes()Returns a new immutable emptyAttributes.static AttributesThingsModelFactory. emptyAttributes()Returns a new immutable emptyAttributes.static AttributesAttributesModelFactory. newAttributes(java.lang.String jsonString)Returns a new immutableAttributeswhich is initialised with the values of the given JSON string.static AttributesAttributesModelFactory. newAttributes(org.eclipse.ditto.json.JsonObject jsonObject)Returns a new immutableAttributeswhich is initialised with the values of the given JSON object.static AttributesThingsModelFactory. newAttributes(java.lang.String jsonString)Returns a new immutableAttributeswhich is initialised with the values of the given JSON string.static AttributesThingsModelFactory. newAttributes(org.eclipse.ditto.json.JsonObject jsonObject)Returns a new immutableAttributeswhich is initialised with the values of the given JSON object.static AttributesAttributesModelFactory. nullAttributes()Returns a new immutableAttributeswhich representsnull.static AttributesThingsModelFactory. nullAttributes()Returns a new immutableAttributeswhich representsnull.AttributesAttributes. remove(java.lang.CharSequence key)AttributesAttributes. set(org.eclipse.ditto.json.JsonField field)AttributesAttributes. setAll(java.lang.Iterable<org.eclipse.ditto.json.JsonField> jsonFields)AttributesAttributes. setValue(java.lang.CharSequence key, boolean value)AttributesAttributes. setValue(java.lang.CharSequence key, double value)AttributesAttributes. setValue(java.lang.CharSequence key, int value)AttributesAttributes. setValue(java.lang.CharSequence key, long value)AttributesAttributes. setValue(java.lang.CharSequence key, java.lang.String value)AttributesAttributes. setValue(java.lang.CharSequence key, org.eclipse.ditto.json.JsonValue value)Methods in org.eclipse.ditto.things.model that return types with arguments of type Attributes Modifier and Type Method Description java.util.Optional<Attributes>Thing. getAttributes()Returns the attributes of this Thing.Methods in org.eclipse.ditto.things.model with parameters of type Attributes Modifier and Type Method Description ThingThing. setAttributes(Attributes attributes)Sets the attributes on a copy of this Thing.ThingBuilder.FromCopyThingBuilder.FromCopy. setAttributes(java.util.function.Predicate<Attributes> existingAttributesPredicate, Attributes attributes)Sets the given attributes to this builder.default ThingBuilder.FromCopyThingBuilder.FromCopy. setAttributes(Attributes attributes)Sets the given attributes to this builder.ThingBuilder.FromScratchThingBuilder.FromScratch. setAttributes(Attributes attributes)Sets the given attributes to this builder.Method parameters in org.eclipse.ditto.things.model with type arguments of type Attributes Modifier and Type Method Description ThingBuilder.FromCopyThingBuilder.FromCopy. removeAllAttributes(java.util.function.Predicate<Attributes> existingAttributesPredicate)Removes all attributes from this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeAttribute(java.util.function.Predicate<Attributes> existingAttributesPredicate, org.eclipse.ditto.json.JsonPointer attributePath)Removes the attribute at the given path from this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setAttribute(java.util.function.Predicate<Attributes> existingAttributesPredicate, org.eclipse.ditto.json.JsonPointer attributePath, org.eclipse.ditto.json.JsonValue attributeValue)Sets the given attribute to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setAttributes(java.util.function.Predicate<Attributes> existingAttributesPredicate, java.lang.String attributesJsonString)Sets the attributes to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setAttributes(java.util.function.Predicate<Attributes> existingAttributesPredicate, org.eclipse.ditto.json.JsonObject attributesJsonObject)Sets the attributes to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setAttributes(java.util.function.Predicate<Attributes> existingAttributesPredicate, Attributes attributes)Sets the given attributes to this builder. -
Uses of Attributes in org.eclipse.ditto.things.model.signals.commands.modify
Methods in org.eclipse.ditto.things.model.signals.commands.modify that return Attributes Modifier and Type Method Description AttributesModifyAttributes. getAttributes()Returns theAttributesto modify.AttributesModifyAttributesResponse. getAttributesCreated()Returns the createdAttributes.Methods in org.eclipse.ditto.things.model.signals.commands.modify with parameters of type Attributes Modifier and Type Method Description static ModifyAttributesResponseModifyAttributesResponse. created(ThingId thingId, Attributes attributes, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a newModifyAttributesResponsefor a created Attributes.static ModifyAttributesModifyAttributes. of(ThingId thingId, Attributes newAttributesObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a command for modifying an attributes object which is passed as argument.static MergeThingMergeThing. withAttributes(ThingId thingId, Attributes attributes, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a command for merging the thing identified bythingIdwith the givenattributes. -
Uses of Attributes in org.eclipse.ditto.things.model.signals.commands.query
Methods in org.eclipse.ditto.things.model.signals.commands.query that return Attributes Modifier and Type Method Description AttributesRetrieveAttributesResponse. getAttributes()Returns the retrieved Attributes.Methods in org.eclipse.ditto.things.model.signals.commands.query with parameters of type Attributes Modifier and Type Method Description static RetrieveAttributesResponseRetrieveAttributesResponse. of(ThingId thingId, Attributes attributes, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a response to aRetrieveAttributescommand. -
Uses of Attributes in org.eclipse.ditto.things.model.signals.events
Methods in org.eclipse.ditto.things.model.signals.events that return Attributes Modifier and Type Method Description AttributesAttributesCreated. getCreatedAttributes()Returns the JSON object which represents the attributes created.AttributesAttributesModified. getModifiedAttributes()Returns the JSON object which represents the attributes modified.Methods in org.eclipse.ditto.things.model.signals.events with parameters of type Attributes Modifier and Type Method Description static AttributesCreatedAttributesCreated. of(ThingId thingId, Attributes createdAttributes, 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 newAttributesCreatedobject.static AttributesModifiedAttributesModified. of(ThingId thingId, Attributes modifiedAttributes, 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 newAttributesModifiedobject.
-