Package org.eclipse.ditto.things.model
Interface FeatureProperties
-
- 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 FeatureProperties extends org.eclipse.ditto.json.JsonObject, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<org.eclipse.ditto.json.JsonField>Represents data related toFeatures. Properties can be categorized, e. g. to manage the status, the configuration or any fault information. Each property itself can be either a simple (scalar) value or a complex object. Allowed is any JSON object. The FeatureProperties can either represent the desired properties or the actual properties of aFeature.
-
-
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 FeaturePropertiesBuildernewBuilder()Returns a new empty builder for an immutableFeatureProperties.FeaturePropertiesremove(java.lang.CharSequence key)FeaturePropertiesset(org.eclipse.ditto.json.JsonField field)FeaturePropertiessetAll(java.lang.Iterable<org.eclipse.ditto.json.JsonField> jsonFields)FeaturePropertiessetValue(java.lang.CharSequence key, boolean value)FeaturePropertiessetValue(java.lang.CharSequence key, double value)FeaturePropertiessetValue(java.lang.CharSequence key, int value)FeaturePropertiessetValue(java.lang.CharSequence key, long value)FeaturePropertiessetValue(java.lang.CharSequence key, java.lang.String value)FeaturePropertiessetValue(java.lang.CharSequence key, org.eclipse.ditto.json.JsonValue value)default FeaturePropertiesBuildertoBuilder()Returns a new builder for an immutableFeaturePropertieswhich is initialised with the values of the this FeatureProperties object.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 FeaturePropertiesBuilder newBuilder()
Returns a new empty builder for an immutableFeatureProperties.- Returns:
- the builder.
-
toBuilder
default FeaturePropertiesBuilder toBuilder()
Returns a new builder for an immutableFeaturePropertieswhich is initialised with the values of the this FeatureProperties object.- Specified by:
toBuilderin interfaceorg.eclipse.ditto.json.JsonObject- Returns:
- the new builder.
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, int value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, long value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, double value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, boolean value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, java.lang.String value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
setValue
FeatureProperties setValue(java.lang.CharSequence key, org.eclipse.ditto.json.JsonValue value)
- Specified by:
setValuein interfaceorg.eclipse.ditto.json.JsonObject
-
set
FeatureProperties set(org.eclipse.ditto.json.JsonField field)
- Specified by:
setin interfaceorg.eclipse.ditto.json.JsonObject
-
setAll
FeatureProperties setAll(java.lang.Iterable<org.eclipse.ditto.json.JsonField> jsonFields)
- Specified by:
setAllin interfaceorg.eclipse.ditto.json.JsonObject
-
remove
FeatureProperties 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
-
-