Package com.nomagic.uml2.ext.jmi.helpers
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 Summary
ConstructorsConstructorDescriptionSets content, format and image to nulls.ImageInformation(String content, String format) Initializes content, format of image.ImageInformation(String content, String format, String location) Initializes content, format and location of image. -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()booleaninthashCode()voidsetContent(String content) Sets content of image.Methods inherited from class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
getFormat, getLocation, setFormat, setLocation
-
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. UseUtilities.toString(byte[])to convert bytes to a stringformat- format of image(like gif, png and etc)location- location of image- See Also:
-
ImageInformation
Initializes content, format of image.- Parameters:
content- content of image. UseUtilities.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
Description copied from interface:com.nomagic.magicdraw.icons.ElementImages.ElementImageInformationSets content of image. UseCameoUtilities.toString(byte[])to convert bytes to a string.- Parameters:
content- content of image
-
getContent
- Returns:
- gets content of image
-
equals
- Overrides:
equalsin classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-
clone
- Overrides:
clonein classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-