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 |
|---|---|
IntentHelper |
appendIntent(String name) |
void |
cleanUp()
generic cleanup routine
|
int |
getAmount() |
ProductHelper |
getChild(int nChild)
Deprecated.
|
ProductHelper |
getChild(String productType,
int n)
Deprecated.
|
Vector<ProductHelper> |
getChildren()
Deprecated.
|
IntentHelper |
getCreateIntent(String name) |
String |
getExternalID() |
IntentHelper |
getIntent(String name) |
String |
getIntentAttribute(String intentName,
String attName)
get an attribute from an explicit intent resource
|
int |
getMaxAmount() |
int |
getMinAmount() |
double |
getOverproduction() |
KElement |
getProduct() |
String |
getProductID()
Deprecated.
use getExternalID
|
String |
getProductType() |
boolean |
isRootProduct() |
void |
setAmount(int amount) |
void |
setChild(ProductHelper phCover,
int amount)
Deprecated.
|
void |
setCustomerInfo(ResourceHelper cuph)
reference the customerinfo specified by ph
|
void |
setMaxAmount(int amount) |
void |
setMinAmount(int amount) |
void |
setProductType(String productType) |
void |
setRoot() |
void |
setRoot(boolean isRoot) |
appendElement, copyHelper, deleteNode, ensureID, equals, getAttribute, getCreateElement, getGeneralID, getID, getRoot, getXPathElement, getXPathValue, hashCode, isEqual, removeAttribute, reorder, setAttribute, setGeneralID, setID, setXPathValue, toStringpublic 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 void setRoot(boolean isRoot)
isRoot - public IntentHelper getCreateIntent(String name)
name - public IntentHelper appendIntent(String name)
name - ih - public IntentHelper getIntent(String name)
name - public String getIntentAttribute(String intentName, String attName)
intentName - attName - public int getAmount()
public void setAmount(int amount)
amount - the amount to setpublic int getMaxAmount()
@Deprecated public String getProductID()
public String getExternalID()
public String getProductType()
public void setProductType(String productType)
productType - public double getOverproduction()
public void setMaxAmount(int amount)
amount - the amount to setpublic int getMinAmount()
public void setMinAmount(int amount)
amount - the amount to set@Deprecated public void setChild(ProductHelper phCover, int amount)
phCover - amount - @Deprecated public ProductHelper getChild(int nChild)
nChild - the index of the child@Deprecated public ProductHelper getChild(String productType, int n)
productType - the productType attributen - the index of the child@Deprecated public Vector<ProductHelper> getChildren()
public KElement getProduct()
public boolean isRootProduct()
public void setCustomerInfo(ResourceHelper cuph)
cuph - public void cleanUp()
BaseXJDFHelpercleanUp in class BaseXJDFHelperBaseXJDFHelper.cleanUp()Copyright © 2018. All rights reserved.