| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
edit |
protected int |
id |
protected Image |
image |
protected String |
name |
protected float |
price |
protected boolean |
viewable |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
delete() |
boolean |
equals(Object obj) |
Calendar |
getEdit()
Return the edit date in a
Calendar object |
int |
getId()
Return the id
|
Image |
getImage()
Return the image
|
String |
getName()
Return the name
|
float |
getPrice()
Return the price
|
int |
hashCode() |
boolean |
isViewable()
Return the viewable
|
void |
setId()
Id cannot be set!
|
abstract void |
setImage(Image image,
String format)
Sets image
|
abstract void |
setName(String name)
Sets name
|
abstract void |
setPrice(float price)
Sets price
|
abstract void |
setViewable(boolean viewable)
Sets viewable
|
protected int id
protected String name
protected Image image
protected float price
protected boolean viewable
protected Calendar edit
public final int getId()
public final String getName()
public final Image getImage()
public final float getPrice()
public final boolean isViewable()
public final Calendar getEdit()
Calendar objectpublic final void setId()
public abstract void setImage(Image image, String format) throws APIException, IOException
image - the image to setIOExceptionAPIExceptionpublic abstract void setName(String name) throws APIException, IOException
name - the name to setAPIExceptionIOExceptionpublic abstract void setPrice(float price)
throws APIException,
IOException
price - the price to setAPIExceptionIOExceptionpublic abstract void setViewable(boolean viewable)
throws APIException,
IOException
viewable - the viewable to setAPIExceptionIOExceptionpublic abstract void delete()
throws APIException,
IOException
IOExceptionAPIExceptionCopyright © 2019 Nowtryz. All rights reserved.