public class ProductHelper extends BaseXJDFHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
ProductHelper.eProductType |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
partitionProducts |
static java.lang.String |
PRODUCT |
static java.lang.String |
PRODUCTLIST |
static java.lang.String |
rootProduct
root products attribute name
|
log, theElement| Constructor and Description |
|---|
ProductHelper(KElement product) |
| Modifier and Type | Method and Description |
|---|---|
IntentHelper |
appendIntent(java.lang.String name) |
void |
cleanUp()
generic cleanup routine
|
int |
getAmount() |
ProductHelper |
getChild(int nChild)
get the nth child of this
|
ProductHelper |
getChild(java.lang.String productType,
int n)
get the nth child of this
|
java.util.Vector<ProductHelper> |
getChildren()
Deprecated.
use list / boolean
|
java.util.List<ProductHelper> |
getChildren(boolean recurse)
get the vector of children of this
|
IntentHelper |
getCreateIntent(java.lang.String name) |
java.lang.String |
getDescriptiveName() |
java.lang.String |
getExternalID() |
IntentHelper |
getIntent(java.lang.String name) |
java.lang.String |
getIntentAttribute(java.lang.String intentName,
java.lang.String attName)
get an attribute from an explicit intent resource
|
java.util.Vector<IntentHelper> |
getIntents() |
int |
getMaxAmount() |
int |
getMinAmount() |
SetHelper |
getNodeInfo()
get an attribute from an explicit intent resource
|
double |
getOverproduction() |
ProductHelper |
getParent()
get the nth child of this
|
KElement |
getProduct() |
java.lang.String |
getProductID()
Deprecated.
use getExternalID
|
SetHelper |
getProductSet(java.lang.String name) |
java.lang.String |
getProductType() |
ProductHelper.eProductType |
getProductTypeEnum() |
boolean |
isRootProduct() |
void |
setAmount(int amount) |
void |
setChild(ProductHelper phKid) |
void |
setChild(ProductHelper phCover,
int amount)
Deprecated.
|
void |
setCustomerInfo(ResourceHelper cuph)
reference the customerinfo specified by ph
|
void |
setDescriptiveName(java.lang.String id) |
void |
setExternalID(java.lang.String id) |
void |
setMaxAmount(int amount) |
void |
setMinAmount(int amount) |
void |
setProductType(ProductHelper.eProductType productType) |
void |
setProductType(java.lang.String productType) |
void |
setRoot() |
void |
setRoot(boolean isRoot) |
appendElement, appendElement, copyHelper, deleteNode, ensureID, equals, getAttribute, getAttributeMap, getBaseHelper, getBaseHelper, getComment, getCreateElement, getDefaultVersion, getGeneralID, getID, getLocalName, getRoot, getXJDFRoot, getXPathElement, getXPathValue, getXRoot, hasAttribute, hashCode, isEqual, removeAttribute, setAttribute, setComment, setDefaultVersion, setID, setXPathValue, toStringpublic static final java.lang.String PRODUCT
public static final java.lang.String PRODUCTLIST
public static boolean partitionProducts
public static final java.lang.String rootProduct
public ProductHelper(KElement product)
product - public void setRoot()
public void setRoot(boolean isRoot)
isRoot - public IntentHelper getCreateIntent(java.lang.String name)
name - public IntentHelper appendIntent(java.lang.String name)
name - ih - public IntentHelper getIntent(java.lang.String name)
name - public java.util.Vector<IntentHelper> getIntents()
public java.lang.String getIntentAttribute(java.lang.String intentName,
java.lang.String attName)
intentName - attName - public SetHelper getNodeInfo()
intentName - attName - public SetHelper getProductSet(java.lang.String name)
name - public int getAmount()
public void setAmount(int amount)
amount - the amount to setpublic int getMaxAmount()
@Deprecated public java.lang.String getProductID()
public java.lang.String getExternalID()
getExternalID in class BaseXJDFHelperpublic void setExternalID(java.lang.String id)
id - public java.lang.String getDescriptiveName()
getDescriptiveName in class BaseXJDFHelperpublic void setDescriptiveName(java.lang.String id)
id - public java.lang.String getProductType()
public ProductHelper.eProductType getProductTypeEnum()
public void setProductType(java.lang.String productType)
productType - public void setProductType(ProductHelper.eProductType 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 - public void setChild(ProductHelper phKid)
phCover - public ProductHelper getChild(int nChild)
nChild - the index of the childpublic ProductHelper getParent()
nChild - the index of the childpublic ProductHelper getChild(java.lang.String productType, int n)
productType - the productType attributen - the index of the childpublic java.util.List<ProductHelper> getChildren(boolean recurse)
@Deprecated public java.util.Vector<ProductHelper> getChildren()
public KElement getProduct()
public boolean isRootProduct()
public void setCustomerInfo(ResourceHelper cuph)
cuph - public void cleanUp()
BaseXJDFHelpercleanUp in class BaseXJDFHelperBaseXJDFHelper.cleanUp()