public class ProductBuilder extends AbstractNodeBuilder<Product>
| Modifier and Type | Method and Description |
|---|---|
ProductBuilder |
addIntent(IntentType intent)
Append Intent node to Product Definition.
|
protected Product |
getProduct()
Getter for product attribute.
|
static ProductBuilder |
newInstance()
Create and return a new instance of ProductBuilder.
|
static ProductBuilder |
newInstance(int amount)
Create and return a new instance of ProductBuilder which already contains attribute Amount.
|
static ProductBuilder |
newInstance(int amount,
String productId,
String productType,
String productTypeDetails)
Create and return a new instance of ProductBuilder which already contains attributes Amount, ID, ProductType and ProductTypeDetails.
|
build, getNodepublic static ProductBuilder newInstance()
public static ProductBuilder newInstance(int amount)
amount - Value of Amount attributepublic static ProductBuilder newInstance(int amount, String productId, String productType, String productTypeDetails)
amount - Value of Amount attributeid - Value of ID attributeproductType - Value of ProductType attributeproductTypeDetails - Value of ProductTypeDetails attributeprotected Product getProduct()
public ProductBuilder addIntent(IntentType intent)
intent - Intent object to append to.Copyright © 2012. All Rights Reserved.