Icon
Date: 2016-06-25

org.osgi.service.metatype.annotations

## Annotation Type Icon

-     @Retention(value=CLASS)
      @Target(value={})
      public @interface Icon

  `Icon` information for an `ObjectClassDefinition`.
  See Also:
    `ObjectClassDefinition.icon()`

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `java.lang.String` | `resource` The resource name for this Icon.
    `int` | `size` The pixel size of this Icon.

- - ### Element Detail

    - #### resource

          public abstract java.lang.String resource

      The resource name for this Icon.

      The resource is a URL. The resource URL can be relative to the root of the bundle containing the Meta Type Resource.

      If the resource begins with the percent sign (`'%'` \u0025), the resource can be `localized`.

      See Also:
        "The resource attribute of the Icon element of a Meta Type Resource."

    - #### size

          public abstract int size

      The pixel size of this Icon.

      For example, 32 represents a 32x32 icon.

      See Also:
        "The size attribute of the Icon element of a Meta Type Resource."