Uses of Interface
org.eclipse.ditto.things.model.Features
-
Packages that use Features 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 Features in org.eclipse.ditto.things.model
Methods in org.eclipse.ditto.things.model that return Features Modifier and Type Method Description FeaturesFeaturesBuilder. build()Creates a newFeaturesobject containing all features which were set to this builder beforehand.static FeaturesThingsModelFactory. emptyFeatures()Returns a new immutable emptyFeatures.static FeaturesThingsModelFactory. newFeatures(java.lang.Iterable<Feature> features)Returns a new immutableFeatureswhich is initialised with the features of the given Iterable.static FeaturesThingsModelFactory. newFeatures(java.lang.String jsonString)Returns a new immutableFeaturesbased on the given JSON string.static FeaturesThingsModelFactory. newFeatures(org.eclipse.ditto.json.JsonObject jsonObject)Returns a new immutableFeaturesbased on the given JSON object.static FeaturesThingsModelFactory. newFeatures(Feature feature, Feature... additionalFeatures)Returns a new immutableFeatureswhich is initialised with the given features.static FeaturesThingsModelFactory. nullFeatures()Returns a new immutableFeatureswhich representsnull.FeaturesFeatures. removeDefinition(java.lang.String featureId)Removes the definition from the Feature with the given ID from a copy of this Features.FeaturesFeatures. removeDesiredProperties(java.lang.CharSequence featureId)Removes all desired properties of the Feature with the given ID from a copy of this Features.FeaturesFeatures. removeDesiredProperty(java.lang.CharSequence featureId, org.eclipse.ditto.json.JsonPointer desiredPropertyPath)Removes the desired property which is referred by the given JSON Pointer from the Feature with the given ID on a copy of this Features..FeaturesFeatures. removeFeature(java.lang.String featureId)Removes the Feature with the given ID from a copy of this Features.FeaturesFeatures. removeProperties(java.lang.String featureId)Removes all properties of the Feature with the given ID from a copy of this Features.FeaturesFeatures. removeProperty(java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyPath)Removes the property which is referred by the given JSON Pointer from the Feature with the given ID on a copy of this Features..FeaturesFeatures. setDefinition(java.lang.String featureId, FeatureDefinition definition)Sets the given definition for the Feature with the given ID on a copy of this Features.FeaturesFeatures. setDesiredProperties(java.lang.CharSequence featureId, FeatureProperties desiredProperties)Sets the given desired properties for the Feature with the given ID on a copy of this Features.FeaturesFeatures. setDesiredProperty(java.lang.CharSequence featureId, org.eclipse.ditto.json.JsonPointer desiredPropertyPath, org.eclipse.ditto.json.JsonValue desiredPropertyValue)Sets the value of the desired property which is referred by the given JSON Pointer of the Feature with the given ID on a copy of this Features.FeaturesFeatures. setFeature(Feature feature)Sets the given Feature to a copy of this Features.FeaturesFeatures. setProperties(java.lang.String featureId, FeatureProperties properties)Sets the given properties for the Feature with the given ID on a copy of this Features.FeaturesFeatures. setProperty(java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyPath, org.eclipse.ditto.json.JsonValue propertyValue)Sets the value of the property which is referred by the given JSON Pointer of the Feature with the given ID on a copy of this Features.Methods in org.eclipse.ditto.things.model that return types with arguments of type Features Modifier and Type Method Description java.util.Optional<Features>Thing. getFeatures()Returns the Features of this Thing.Methods in org.eclipse.ditto.things.model with parameters of type Features Modifier and Type Method Description ThingThing. setFeatures(Features features)Sets the given Features to a copy of this Thing.Method parameters in org.eclipse.ditto.things.model with type arguments of type Features Modifier and Type Method Description ThingBuilder.FromCopyThingBuilder.FromCopy. removeAllFeatures(java.util.function.Predicate<Features> existingFeaturesPredicate)Removes all features from this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId)Removes the Feature with the given ID from this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeFeatureDesiredProperties(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.CharSequence featureId)Removes all desired properties from the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeFeatureDesiredProperty(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.CharSequence featureId, org.eclipse.ditto.json.JsonPointer desiredPropertyPath)Removes the given desired property from the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeFeatureProperties(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId)Removes all properties from the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. removeFeatureProperty(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyPath)Removes the given property from the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.CharSequence featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties, FeatureProperties featureDesiredProperties)Sets a Feature with the given ID and properties to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId)Sets a Feature with the given ID to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties)Sets a Feature with the given ID and properties to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, FeatureProperties featureProperties)Sets a Feature with the given ID and properties to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.util.function.Predicate<Features> existingFeaturesPredicate, Feature feature)Sets the given Feature to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureDefinition(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, FeatureDefinition featureDefinition)Sets the given definition to the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureDesiredProperties(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.CharSequence featureId, FeatureProperties desiredFeatureProperties)Sets the given desired properties to the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureDesiredProperty(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.CharSequence featureId, org.eclipse.ditto.json.JsonPointer desiredPropertyPath, org.eclipse.ditto.json.JsonValue desiredPropertyValue)Sets the given desired property to the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureProperties(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, FeatureProperties featureProperties)Sets the given properties to the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureProperty(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featureId, org.eclipse.ditto.json.JsonPointer propertyPath, org.eclipse.ditto.json.JsonValue propertyValue)Sets the given property to the Feature with the given ID on this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatures(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.Iterable<Feature> features)Sets the given Features to this builder.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatures(java.util.function.Predicate<Features> existingFeaturesPredicate, java.lang.String featuresJsonString)Sets the Features of the Thing based on the given JSON object.ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatures(java.util.function.Predicate<Features> existingFeaturesPredicate, org.eclipse.ditto.json.JsonObject featuresJsonObject)Sets the features to this builder. -
Uses of Features in org.eclipse.ditto.things.model.signals.commands.modify
Methods in org.eclipse.ditto.things.model.signals.commands.modify that return Features Modifier and Type Method Description FeaturesModifyFeatures. getFeatures()Returns the newFeaturesto modify.Methods in org.eclipse.ditto.things.model.signals.commands.modify that return types with arguments of type Features Modifier and Type Method Description java.util.Optional<Features>ModifyFeaturesResponse. getFeaturesCreated()Returns the createdFeatures.Methods in org.eclipse.ditto.things.model.signals.commands.modify with parameters of type Features Modifier and Type Method Description static ModifyFeaturesResponseModifyFeaturesResponse. created(ThingId thingId, Features features, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a newModifyFeaturesResponsefor a created Feature.static ModifyFeaturesModifyFeatures. of(ThingId thingId, Features features, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a Command for modifying the Features of a Thing.static MergeThingMergeThing. withFeatures(ThingId thingId, Features features, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a command for merging the thing identified bythingIdwith the givenfeatures. -
Uses of Features in org.eclipse.ditto.things.model.signals.commands.query
Methods in org.eclipse.ditto.things.model.signals.commands.query that return Features Modifier and Type Method Description FeaturesRetrieveFeaturesResponse. getFeatures()Returns the retrieved Features.Methods in org.eclipse.ditto.things.model.signals.commands.query with parameters of type Features Modifier and Type Method Description static RetrieveFeaturesResponseRetrieveFeaturesResponse. of(ThingId thingId, Features features, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a response to aRetrieveFeaturescommand. -
Uses of Features in org.eclipse.ditto.things.model.signals.events
Methods in org.eclipse.ditto.things.model.signals.events that return Features Modifier and Type Method Description FeaturesFeaturesCreated. getFeatures()Returns the createdFeatures.FeaturesFeaturesModified. getFeatures()Returns the modifiedFeatures.Methods in org.eclipse.ditto.things.model.signals.events with parameters of type Features Modifier and Type Method Description static FeaturesCreatedFeaturesCreated. of(ThingId thingId, Features features, 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 newFeaturesCreatedobject.static FeaturesModifiedFeaturesModified. of(ThingId thingId, Features features, 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 newFeaturesModifiedobject.
-