Annotation Type ThingworxImplementedShapeDefinition


  • @Target(ANNOTATION_TYPE)
    @Retention(RUNTIME)
    @ThingworxExtensionApiAnnotation(since={6,6})
    public @interface ThingworxImplementedShapeDefinition

    Specifies the name of a thing shape that this class implements. Any properties, events, services, and subscriptions belonging to the thing shape will be applied to this template or thing. Note that this is functionally identical to specifying the implemented thing shape in the metadata.xml for the thing template.

    It is recommended to use the annotation over metadata if the entity is backed by a Java class.

    See Also:
    ThingworxImplementedShapeDefinitions
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String name


      Optional parameter: the name of the thing shape that this entity implements.
    • Element Detail

      • name

        java.lang.String name


        Optional parameter: the name of the thing shape that this entity implements. The name must be identical in case to the entity it is referencing. Specifying an empty name will generate an error.