Package com.nomagic.uml2.ext.jmi.helpers
Class ElementImageHelper.ImageInformation
- java.lang.Object
-
- com.nomagic.uml2.ext.jmi.helpers.ElementImageHelper.ImageInformation
-
- Enclosing class:
- ElementImageHelper
@OpenApiAll public static class ElementImageHelper.ImageInformation extends java.lang.ObjectStructure, 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()java.lang.StringgetFormat()java.lang.StringgetLocation()inthashCode()voidsetContent(java.lang.String content)Sets content of image.voidsetFormat(java.lang.String format)Sets format of image.voidsetLocation(java.lang.String location)Sets location 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. Use Utilities.toString() to convert bytes to a string.format- 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. Use Utilities.toString() 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)Sets content of image. Use Utilities.toString() to convert bytes to a string.- Parameters:
content- content of image.- See Also:
Utilities.toString(byte[])
-
getContent
@CheckForNull public java.lang.String getContent()
- Returns:
- gets content of image.
-
setFormat
public void setFormat(@CheckForNull java.lang.String format)Sets format of image.- Parameters:
format- format of image.
-
getFormat
public java.lang.String getFormat()
- Returns:
- format of image.
-
setLocation
public void setLocation(@CheckForNull java.lang.String location)Sets location of image.- Parameters:
location- location of image.
-
getLocation
public java.lang.String getLocation()
- Returns:
- location of image.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-