public class ProductBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
ProductBuilder |
addIntent(IntentType intent)
Append Intent node to Product Definition.
|
T |
build()
Build and return the Node.
|
Product |
getProduct()
Getter for product attribute.
|
ProductBuilder |
initAttributes(Integer amount)
Initialize most common attributes of Product Node.
|
static ProductBuilder |
newInstance()
Create and return a new instance of ProductBuilder.
|
public static ProductBuilder newInstance()
public Product getProduct()
public ProductBuilder initAttributes(Integer amount)
amount - public ProductBuilder addIntent(IntentType intent)
intent - Intent object to append to.public final T build()
Copyright © 2012. All Rights Reserved.