Package org.craftercms.studio.api.v1.to
Class ContentAssetInfoTO
- java.lang.Object
-
- org.craftercms.studio.api.v1.to.ContentAssetInfoTO
-
- All Implemented Interfaces:
Serializable
public class ContentAssetInfoTO extends Object implements Serializable
This class contains content asset information that exists in the repository- Author:
- hyanghee
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_SIZE_KB
protected String
fileExtension
asset file extensionprotected String
fileName
asset file nameprotected int
height
the image height if the asset is an imageprotected static long
serialVersionUID
protected double
size
asset file size in KBprotected String
sizeUnit
protected int
width
the image width if the asset is an image
-
Constructor Summary
Constructors Constructor Description ContentAssetInfoTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileExtension()
String
getFileName()
int
getHeight()
double
getSize()
String
getSizeUnit()
int
getWidth()
void
setFileExtension(String fileExtension)
void
setFileName(String fileName)
void
setHeight(int height)
void
setSize(double size)
void
setSizeUnit(String sizeUnit)
void
setWidth(int width)
-
-
-
Field Detail
-
FILE_SIZE_KB
public static final String FILE_SIZE_KB
- See Also:
- Constant Field Values
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
fileName
protected String fileName
asset file name
-
fileExtension
protected String fileExtension
asset file extension
-
size
protected double size
asset file size in KB
-
width
protected int width
the image width if the asset is an image
-
height
protected int height
the image height if the asset is an image
-
sizeUnit
protected String sizeUnit
-
-
Method Detail
-
getSizeUnit
public String getSizeUnit()
-
setSizeUnit
public void setSizeUnit(String sizeUnit)
-
getFileName
public String getFileName()
- Returns:
- the fileName
-
setFileName
public void setFileName(String fileName)
- Parameters:
fileName
- the fileName to set
-
getFileExtension
public String getFileExtension()
- Returns:
- the fileExtension
-
setFileExtension
public void setFileExtension(String fileExtension)
- Parameters:
fileExtension
- the fileExtension to set
-
getSize
public double getSize()
- Returns:
- the size
-
setSize
public void setSize(double size)
- Parameters:
size
- the size to set
-
getWidth
public int getWidth()
- Returns:
- the width
-
setWidth
public void setWidth(int width)
- Parameters:
width
- the width to set
-
getHeight
public int getHeight()
- Returns:
- the height
-
setHeight
public void setHeight(int height)
- Parameters:
height
- the height to set
-
-