public class ProductHelper extends BaseXJDFHelper
| Modifier and Type | Field and Description |
|---|---|
static boolean |
partitionProducts |
static String |
PRODUCT |
static String |
PRODUCTLIST |
static String |
rootProduct
root products attribute name
|
log, theElement| Constructor and Description |
|---|
ProductHelper(KElement product) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
generic cleanup routine
|
int |
getAmount() |
ProductHelper |
getChild(int nChild)
get the nth child of this
|
ProductHelper |
getChild(String productType,
int n)
get the nth child of this
|
Vector<ProductHelper> |
getChildren()
get the vector of children of this
|
IntentHelper |
getCreateIntent(String name) |
IntentHelper |
getIntent(String name) |
int |
getMaxAmount() |
int |
getMinAmount() |
double |
getOverproduction() |
KElement |
getProduct() |
boolean |
isRootProduct() |
void |
setAmount(int amount) |
void |
setChild(ProductHelper phCover,
int amount) |
void |
setCustomerInfo(PartitionHelper cuph)
reference the customerinfo specified by ph
|
void |
setMaxAmount(int amount) |
void |
setMinAmount(int amount) |
void |
setRoot() |
String |
toString() |
deleteNode, equals, getID, getRoot, getXPathValue, hashCode, isEqual, reorder, setID, setXPathValuepublic static final String PRODUCT
public static final String PRODUCTLIST
public static boolean partitionProducts
public static final String rootProduct
public ProductHelper(KElement product)
product - public void setRoot()
public IntentHelper getCreateIntent(String name)
name - public IntentHelper getIntent(String name)
name - public String toString()
toString in class ObjectObject.toString()public int getAmount()
public void setAmount(int amount)
amount - the amount to setpublic int getMaxAmount()
public double getOverproduction()
public void setMaxAmount(int amount)
amount - the amount to setpublic int getMinAmount()
public void setMinAmount(int amount)
amount - the amount to setpublic void setChild(ProductHelper phCover, int amount)
phCover - amount - public ProductHelper getChild(int nChild)
nChild - the index of the childpublic ProductHelper getChild(String productType, int n)
productType - the productType attributen - the index of the childpublic Vector<ProductHelper> getChildren()
public KElement getProduct()
public boolean isRootProduct()
public void setCustomerInfo(PartitionHelper cuph)
cuph - public void cleanUp()
BaseXJDFHelpercleanUp in class BaseXJDFHelperBaseXJDFHelper.cleanUp()Copyright © 2015. All rights reserved.