Package org.eclipse.ditto.things.model
Contains the Things framework around the cornerstone of this package:
Thing.
A Thing can consist of
Attributesfor describing the Thing in more details,- and
Featuresfor managing all data and functionality of the Thing.
Furthermore a Thing can have a ThingLifecycle and a
ThingRevision which is incremented with each change of the Thing.
Object creation
ThingsModelFactory is the main entry point for obtaining objects of this
package's interfaces to work with.-
Interface Summary Interface Description Attributes Attributesdescribe other entities (e.AttributesBuilder A mutable builder for aAttributeswith a fluent API.DefinitionIdentifier This interface represents a single fully qualified Identifier of aDefinitionboth used forThingandFeature.Feature A Feature is used to manage all data and functionality of aThingthat can be clustered in an outlined technical context.FeatureBuilder A mutable builder for for aFeaturewhich uses Object Scoping and Method Chaining to provide a fluent API.FeatureBuilder.FeatureBuildable This interface eventually allows create a newFeatureobject.FeatureBuilder.FromCopyBuildable A mutable builder with a fluent API for an immutableFeature.FeatureBuilder.FromJsonBuildable This interface enables the creation of aFeatureobject from JSON.FeatureBuilder.FromScratchBuildable This interface enables the creation of aFeatureobject from scratch.FeatureDefinition A FeatureDefinition is a list of fully qualifiedDefinitionIdentifiers.FeatureDefinitionBuilder A mutable builder with a fluent API for an immutableFeatureDefinition.FeatureProperties Represents data related toFeatures.FeaturePropertiesBuilder A mutable builder for aFeaturePropertieswith a fluent API.Features FeaturesBuilder A mutable builder for aFeaturewith a fluent API.Thing A generic entity which can be used as a "handle" for multipleFeatures belonging to this Thing.ThingBuilder Builder for instances ofThingwhich uses Object Scoping and Method Chaining to provide a convenient usage experience.ThingBuilder.FromCopy A mutable builder with a fluent API for an immutableThing.ThingBuilder.FromScratch A mutable builder with a fluent API for an immutableThingfrom scratch.ThingDefinition A ThingDefinition represents a single fully qualifiedDefinitionIdentifier.ThingException Aggregates allDittoRuntimeExceptions which are related to aThing.ThingRevision Represents the current revision of a Thing.WithThingId Implementations of this interface are associated to aThingidentified by the value returned fromWithThingId.getEntityId()()}. -
Class Summary Class Description AttributesModelFactory Factory that creates newattributesobjects.DefinitionIdentifierInvalidException.Builder A mutable builder with a fluent API for an immutableDefinitionIdentifierInvalidException.Feature.JsonFields An enumeration of the knownJsonFields of a Feature.FeatureDefinitionEmptyException.Builder A mutable builder with a fluent API for an immutableFeatureDefinitionEmptyException.InvalidThingFieldSelectionException.Builder A mutable builder with a fluent API for an immutableFeatureDefinitionEmptyException.PolicyIdMissingException.Builder A mutable builder with a fluent API for aPolicyIdMissingException.Thing.JsonFields An enumeration of the knownJsonFields of a Thing.ThingConstants Constants to support working withThing.ThingFieldSelector A Json field selector which validates that only valid fields of a thing can be selected.ThingId Java representation of a validated Thing ID.ThingIdInvalidException.Builder A mutable builder with a fluent API for aThingIdInvalidException.ThingsModelFactory Factory that creates newthingsobjects.ThingTooLargeException.Builder A mutable builder with a fluent API for aThingTooLargeException. -
Enum Summary Enum Description ThingLifecycle An enumeration of a Thing's lifecycle. -
Exception Summary Exception Description DefinitionIdentifierInvalidException This exception is thrown if an Identifier of a Feature Definition has an invalid structure.FeatureDefinitionEmptyException This exception is thrown if a Feature Definition was set to an empty array.InvalidThingFieldSelectionException Thrown when aThingFieldSelectorwas not valid.PolicyIdMissingException This exception indicates that aThing'sJsonSchemaVersionrequires a policyId.ThingIdInvalidException Thrown if the Thing's ID is not valid (for example if it does not comply to the Thing ID REGEX).ThingTooLargeException This exception indicates the content of a Thing is too large to be processed by a backend.