public class ProductCategoryTransformer<P extends Product> extends Object implements org.apache.commons.collections.Transformer
Constructor and Description |
---|
ProductCategoryTransformer() |
ProductCategoryTransformer(ProductService<P> service) |
Modifier and Type | Method and Description |
---|---|
protected P |
convert(P product)
If the existing product is not already a Category then convert it
|
ProductService<P> |
getService() |
void |
setService(ProductService<P> service) |
Object |
transform(Object input) |
public ProductCategoryTransformer()
public ProductCategoryTransformer(ProductService<P> service)
protected P convert(P product) throws Exception
product
- Exception
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public ProductService<P> getService()
public void setService(ProductService<P> service)
Copyright © 2018. All rights reserved.