Uses of Interface
org.eclipse.ditto.things.model.FeatureDefinition
-
Packages that use FeatureDefinition 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 FeatureDefinition in org.eclipse.ditto.things.model
Methods in org.eclipse.ditto.things.model that return FeatureDefinition Modifier and Type Method Description FeatureDefinitionFeatureDefinitionBuilder. build()Returns an immutable instance ofFeatureDefinitioncontaining the Identifiers which were provided to this builder so far.static FeatureDefinitionFeatureDefinition. fromIdentifier(java.lang.CharSequence identifier, java.lang.CharSequence... furtherIdentifiers)Parses the specified CharSequence to an Identifier and returns an immutableFeatureDefinitioncontaining that Identifier.static FeatureDefinitionFeatureDefinition. fromJson(java.lang.String jsonArrayAsString)Returns a new immutableFeatureDefinitionwhich is initialised with the values of the given JSON string.static FeatureDefinitionFeatureDefinition. fromJson(org.eclipse.ditto.json.JsonArray jsonArray)Returns a new immutableFeatureDefinitionwhich is initialised with the values of the given JSON array.static FeatureDefinitionThingsModelFactory. newFeatureDefinition(java.lang.String jsonString)Returns a new immutableFeatureDefinitionwhich is initialised with the values of the given JSON string.static FeatureDefinitionThingsModelFactory. newFeatureDefinition(org.eclipse.ditto.json.JsonArray jsonArray)Parses the specified JsonArray and returns an immutable instance ofFeatureDefinitionwhich is initialised with the values of the given JSON array.static FeatureDefinitionThingsModelFactory. nullFeatureDefinition()Returns a new immutableFeatureDefinitionwhich representsnull.Methods in org.eclipse.ditto.things.model that return types with arguments of type FeatureDefinition Modifier and Type Method Description java.util.Optional<FeatureDefinition>Feature. getDefinition()Returns the attached Definition of this Feature.Methods in org.eclipse.ditto.things.model with parameters of type FeatureDefinition Modifier and Type Method Description FeatureBuilder.FromCopyBuildableFeatureBuilder.FromCopyBuildable. definition(FeatureDefinition featureDefinition)Sets the specified Definition to the Feature to be built.FeatureBuilder.FromScratchBuildableFeatureBuilder.FromScratchBuildable. definition(FeatureDefinition featureDefinition)Sets the specified Definition to the Feature to be built.static FeatureThingsModelFactory. newFeature(java.lang.CharSequence featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties, FeatureProperties desiredFeatureProperties)Returns a new immutableFeaturewith the given ID, properties, desired Properties and Definition.static FeatureThingsModelFactory. newFeature(java.lang.String featureId, FeatureDefinition featureDefinition)Returns a new immutableFeaturewith the given ID, properties and Definition.static FeatureThingsModelFactory. newFeature(java.lang.String featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties)Returns a new immutableFeaturewith the given ID, properties and Definition.FeatureFeature. setDefinition(FeatureDefinition featureDefinition)Sets the specified Definition to a copy of this Feature.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.default ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(java.lang.CharSequence featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties, FeatureProperties featureDesiredProperties)Sets a Feature with the given ID and properties to this builder.default ThingBuilder.FromCopyThingBuilder.FromCopy. setFeature(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.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, FeatureDefinition featureDefinition, FeatureProperties featureProperties)Sets a Feature with the given ID and properties to this builder.ThingBuilder.FromScratchThingBuilder.FromScratch. setFeature(java.lang.CharSequence featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties, FeatureProperties featureDesiredProperties)Sets a Feature with the given ID and properties to this builder.ThingBuilder.FromScratchThingBuilder.FromScratch. setFeature(java.lang.String featureId, FeatureDefinition featureDefinition, FeatureProperties featureProperties)Sets a Feature with the given ID and properties to this builder.ThingThing. setFeatureDefinition(java.lang.String featureId, FeatureDefinition definition)Sets the given definition of a Feature on a copy of this Thing.default ThingBuilder.FromCopyThingBuilder.FromCopy. setFeatureDefinition(java.lang.String featureId, FeatureDefinition featureDefinition)Sets the given definition to the Feature with the given ID on 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.FromScratchThingBuilder.FromScratch. setFeatureDefinition(java.lang.String featureId, FeatureDefinition featureDefinition)Sets the given definition to the Feature with the given ID on this builder. -
Uses of FeatureDefinition in org.eclipse.ditto.things.model.signals.commands.modify
Methods in org.eclipse.ditto.things.model.signals.commands.modify that return FeatureDefinition Modifier and Type Method Description FeatureDefinitionModifyFeatureDefinition. getDefinition()Returns theFeatureDefinitionto modify.Methods in org.eclipse.ditto.things.model.signals.commands.modify that return types with arguments of type FeatureDefinition Modifier and Type Method Description java.util.Optional<FeatureDefinition>ModifyFeatureDefinitionResponse. getFeatureDefinitionCreated()Returns the createdFeatureDefinition.Methods in org.eclipse.ditto.things.model.signals.commands.modify with parameters of type FeatureDefinition Modifier and Type Method Description static ModifyFeatureDefinitionResponseModifyFeatureDefinitionResponse. created(ThingId thingId, java.lang.String featureId, FeatureDefinition definitionCreated, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a newModifyFeatureDefinitionResponsefor a created FeatureDefinition.static ModifyFeatureDefinitionModifyFeatureDefinition. of(ThingId thingId, java.lang.String featureId, FeatureDefinition definition, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Returns a Command for modifying a Feature's Definition on a Thing.static MergeThingMergeThing. withFeatureDefinition(ThingId thingId, java.lang.String featureId, FeatureDefinition featureDefinition, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a command for merging the feature identified bythingIdandfeatureIdwith the givenfeatureDefinition. -
Uses of FeatureDefinition in org.eclipse.ditto.things.model.signals.commands.query
Methods in org.eclipse.ditto.things.model.signals.commands.query that return FeatureDefinition Modifier and Type Method Description FeatureDefinitionRetrieveFeatureDefinitionResponse. getDefinition()Returns the retrieved FeatureDefinition.Methods in org.eclipse.ditto.things.model.signals.commands.query with parameters of type FeatureDefinition Modifier and Type Method Description static RetrieveFeatureDefinitionResponseRetrieveFeatureDefinitionResponse. of(ThingId thingId, java.lang.String featureId, FeatureDefinition definition, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)Creates a response to aRetrieveFeatureDefinitioncommand. -
Uses of FeatureDefinition in org.eclipse.ditto.things.model.signals.events
Methods in org.eclipse.ditto.things.model.signals.events that return FeatureDefinition Modifier and Type Method Description FeatureDefinitionFeatureDefinitionCreated. getDefinition()Returns the createdFeatureDefinition.FeatureDefinitionFeatureDefinitionModified. getDefinition()Returns the modifiedFeatureDefinition.Methods in org.eclipse.ditto.things.model.signals.events with parameters of type FeatureDefinition Modifier and Type Method Description static FeatureDefinitionCreatedFeatureDefinitionCreated. of(ThingId thingId, java.lang.String featureId, FeatureDefinition definition, 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 newFeatureDefinitionCreatedobject.static FeatureDefinitionModifiedFeatureDefinitionModified. of(ThingId thingId, java.lang.String featureId, FeatureDefinition definition, 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 newFeatureDefinitionModifiedobject.
-