Class ElementImageHelper.ImageInformation

java.lang.Object
com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
com.nomagic.uml2.ext.jmi.helpers.ElementImageHelper.ImageInformation
All Implemented Interfaces:
com.nomagic.magicdraw.icons.ElementImages.ElementImageInformation, Cloneable
Enclosing class:
ElementImageHelper

@OpenApiAll public static class ElementImageHelper.ImageInformation extends com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
Structure, which contains information of image: content, format and location.
  • Constructor Details

    • ImageInformation

      public ImageInformation(@CheckForNull String content, @CheckForNull String format, @CheckForNull String location)
      Initializes content, format and location of image.
      Parameters:
      content - content of image. Use Utilities.toString(byte[]) to convert bytes to a string
      format - format of image(like gif, png and etc)
      location - location of image
      See Also:
    • ImageInformation

      public ImageInformation(String content, String format)
      Initializes content, format of image.
      Parameters:
      content - content of image. Use Utilities.toString(byte[]) to convert bytes to a string.
      format - format of image(like gif, png and etc).
      See Also:
    • ImageInformation

      public ImageInformation()
      Sets content, format and image to nulls.
  • Method Details

    • setContent

      public void setContent(@CheckForNull String content)
      Description copied from interface: com.nomagic.magicdraw.icons.ElementImages.ElementImageInformation
      Sets content of image. Use CameoUtilities.toString(byte[]) to convert bytes to a string.
      Parameters:
      content - content of image
    • getContent

      @CheckForNull public String getContent()
      Returns:
      gets content of image
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
    • clone

      protected Object clone()
      Overrides:
      clone in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation