|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
com.laszlomarket.ProductForm
Stores information related to an Product
within the Struts framework. Also provides validation on the Product.
Field Summary | |
private java.lang.Long |
id
|
private java.lang.String |
image
|
private java.lang.Double |
price
|
(package private) java.util.List |
product
|
private java.lang.Integer |
quantity
|
private java.lang.String |
sku
|
private java.lang.String |
title
|
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary | |
ProductForm()
|
Method Summary | |
void |
clear()
clear() sets all the object's fields to null . |
java.lang.Long |
getId()
getId() retrieves ID field. |
java.lang.String |
getImage()
getImage() retrieves image field. |
java.lang.Double |
getPrice()
getPrice() retrieves price field. |
java.util.List |
getProduct()
getProduct() retrieves product field. |
java.lang.Integer |
getQuantity()
getQuantity() retrieves quantity field. |
java.lang.String |
getSku()
getSku() retrieves sku field. |
java.lang.String |
getTitle()
getTitle() retrieves title field. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Clears the object prior to each request. |
void |
setId(java.lang.Long id)
setId() retrieves ID field. |
void |
setImage(java.lang.String image)
Sets image field. |
void |
setPrice(java.lang.Double price)
Sets price field. |
void |
setProduct(java.util.List product)
Sets product field. |
void |
setQuantity(java.lang.Integer quantity)
Sets quantity field. |
void |
setSku(java.lang.String sku)
Sets sku field. |
void |
setTitle(java.lang.String title)
Sets title field. |
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
validate() ensures the user's product is valid and returns the appropriate ActionErrors
object, if any errors are generated. |
Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Long id
private java.lang.String title
private java.lang.String image
private java.lang.String sku
private java.lang.Double price
private java.lang.Integer quantity
java.util.List product
Constructor Detail |
public ProductForm()
Method Detail |
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
ActionErrors
object, if any errors are generated.
ActionErrors
A collection of errors generated by validation process.public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
public java.lang.Long getId()
ID
field.
public java.lang.String getTitle()
title
field.
public java.lang.String getImage()
image
field.
public java.lang.String getSku()
sku
field.
public java.lang.Integer getQuantity()
quantity
field.
public java.lang.Double getPrice()
price
field.
public java.util.List getProduct()
product
field.
public void setId(java.lang.Long id)
ID
field.
public void setTitle(java.lang.String title)
title
field.
public void setImage(java.lang.String image)
image
field.
public void setSku(java.lang.String sku)
sku
field.
public void setPrice(java.lang.Double price)
price
field.
public void setQuantity(java.lang.Integer quantity)
quantity
field.
public void setProduct(java.util.List product)
product
field.
public void clear()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |