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,java.lang.Cloneable
- Enclosing class:
- ElementImageHelper
@OpenApiAll public static class ElementImageHelper.ImageInformation extends com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformationStructure, which contains information of image: content, format and location.
-
-
Constructor Summary
Constructors Constructor Description ImageInformation()Sets content, format and image to nulls.ImageInformation(java.lang.String content, java.lang.String format)Initializes content, format of image.ImageInformation(java.lang.String content, java.lang.String format, java.lang.String location)Initializes content, format and location of image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()booleanequals(java.lang.Object o)java.lang.StringgetContent()inthashCode()voidsetContent(java.lang.String content)Sets content of image.
-
-
-
Constructor Detail
-
ImageInformation
public ImageInformation(@CheckForNull java.lang.String content, @CheckForNull java.lang.String format, @CheckForNull java.lang.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:
Utilities.toString(byte[])
-
ImageInformation
public ImageInformation(java.lang.String content, java.lang.String format)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:
Utilities.toString(byte[])
-
ImageInformation
public ImageInformation()
Sets content, format and image to nulls.
-
-
Method Detail
-
setContent
public void setContent(@CheckForNull java.lang.String content)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
@CheckForNull public java.lang.String getContent()
- Returns:
- gets content of image
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-
clone
protected java.lang.Object clone()
- Overrides:
clonein classcom.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
-
-