Package org.eclipse.ditto.things.model
Interface Attributes
-
- All Superinterfaces:
java.lang.Iterable<org.eclipse.ditto.json.JsonField>,org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector,org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<org.eclipse.ditto.json.JsonField>,org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<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.json.JsonObject,org.eclipse.ditto.json.JsonValue,org.eclipse.ditto.json.JsonValueContainer<org.eclipse.ditto.json.JsonField>
@Immutable public interface Attributes extends org.eclipse.ditto.json.JsonObject, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<org.eclipse.ditto.json.JsonField>Attributesdescribe other entities (e. g. aThing) in more detail and can be of any type. Attributes can also be used to find entities. Attributes are typically used to model rather static properties of an entity. Static means that the values do not change as frequently as property values of Features for example.
-
-
Nested Class Summary
-
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>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static AttributesBuildernewBuilder()Returns a new empty builder for aAttributes.Attributesremove(java.lang.CharSequence key)Attributesset(org.eclipse.ditto.json.JsonField field)AttributessetAll(java.lang.Iterable<org.eclipse.ditto.json.JsonField> jsonFields)AttributessetValue(java.lang.CharSequence key, boolean value)AttributessetValue(java.lang.CharSequence key, double value)AttributessetValue(java.lang.CharSequence key, int value)AttributessetValue(java.lang.CharSequence key, long value)AttributessetValue(java.lang.CharSequence key, java.lang.String value)AttributessetValue(java.lang.CharSequence key, org.eclipse.ditto.json.JsonValue value)default AttributesBuildertoBuilder()Returns a mutable builder with a fluent API for immutableAttributes.default org.eclipse.ditto.json.JsonObjecttoJson(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, org.eclipse.ditto.json.JsonFieldSelector fieldSelector)-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
getImplementedSchemaVersion, getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJson, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector
toJson, toJson, toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate
toJson, toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer
toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate
toJson, toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.json.JsonObject
contains, get, get, get, getField, getKeys, getValue, getValue, getValueOrThrow, set
-
-
-
-
Method Detail
-
newBuilder
static AttributesBuilder newBuilder()
Returns a new empty builder for aAttributes.- Returns:
- the builder.
-
toBuilder
default AttributesBuilder toBuilder()
Returns a mutable builder with a fluent API for immutableAttributes. The builder is initialised with the entries of this instance.- Specified by:
toBuilderin interfaceorg.eclipse.ditto.json.JsonObject- Returns:
- the new builder.
-
setValue
Attributes setValue(java.lang.CharSequence key, int value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
Attributes setValue(java.lang.CharSequence key, long value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
Attributes setValue(java.lang.CharSequence key, double value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
Attributes setValue(java.lang.CharSequence key, boolean value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
Attributes setValue(java.lang.CharSequence key, java.lang.String value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
Attributes setValue(java.lang.CharSequence key, org.eclipse.ditto.json.JsonValue value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
set
Attributes set(org.eclipse.ditto.json.JsonField field)
- Specified by:
setin interfaceorg.eclipse.ditto.json.JsonObject
-
setAll
Attributes setAll(java.lang.Iterable<org.eclipse.ditto.json.JsonField> jsonFields)
- Specified by:
setAllin interfaceorg.eclipse.ditto.json.JsonObject
-
remove
Attributes remove(java.lang.CharSequence key)
- Specified by:
removein interfaceorg.eclipse.ditto.json.JsonObject
-
toJson
default org.eclipse.ditto.json.JsonObject toJson(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, org.eclipse.ditto.json.JsonFieldSelector fieldSelector)- Specified by:
toJsonin interfaceorg.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector
-
-