public class ProductBuilder extends AbstractNodeBuilder<Product>
| Constructor and Description |
|---|
ProductBuilder()
Default constructor.
|
ProductBuilder(Integer amount)
Custom Constructor.
|
ProductBuilder(Integer amount,
String productType,
String productTypeDetails)
Custom Constructor.
|
ProductBuilder(Integer amount,
String productType,
String productTypeDetails,
String descriptiveName)
Custom Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProductBuilder |
addChildProduct(Product product)
Append another product as child.
|
ProductBuilder |
addIntent(IntentType intent)
Append Intent node to Product Definition.
|
protected Product |
getProduct()
Getter for product attribute.
|
build, getNodepublic ProductBuilder()
public ProductBuilder(Integer amount)
amount - Value of Amount attributepublic ProductBuilder(Integer amount, String productType, String productTypeDetails)
amount - Value of Amount attributeproductType - Value of ProductType attributeproductTypeDetails - Value of ProductTypeDetails attributepublic ProductBuilder(Integer amount, String productType, String productTypeDetails, String descriptiveName)
amount - Value of Amount attributeid - Value of ID attributeproductType - Value of ProductType attributeproductTypeDetails - Value of ProductTypeDetails attributedescriptiveName - String value for DescriptiveName attribute.protected Product getProduct()
public ProductBuilder addIntent(IntentType intent)
intent - Intent object to append to.public ProductBuilder addChildProduct(Product product) throws ValidationException
intent - Intent object to append to.ValidationExceptionCopyright © 2013. All Rights Reserved.