org.cip4.jdflib.extensions
Class ProductHelper

java.lang.Object
  extended by org.cip4.jdflib.extensions.BaseXJDFHelper
      extended by org.cip4.jdflib.extensions.ProductHelper

public class ProductHelper
extends BaseXJDFHelper

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Field Summary
static boolean partitionProducts
           
static String rootProduct
          root products attribute name
 
Fields inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
log, theElement
 
Constructor Summary
ProductHelper(KElement product)
           
 
Method Summary
 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)
           
 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 setRoot()
           
 String toString()
           
 
Methods inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
getID, getRoot, getXPathValue, setXPathValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

partitionProducts

public static boolean partitionProducts

rootProduct

public static final String rootProduct
root products attribute name

See Also:
Constant Field Values
Constructor Detail

ProductHelper

public ProductHelper(KElement product)
Parameters:
product -
Method Detail

setRoot

public void setRoot()

getCreateIntent

public IntentHelper getCreateIntent(String name)
Parameters:
name -
Returns:

getIntent

public IntentHelper getIntent(String name)
Parameters:
name -
Returns:

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()

getAmount

public int getAmount()
Returns:
amount the amount to get

setAmount

public void setAmount(int amount)
Parameters:
amount - the amount to set

setChild

public void setChild(ProductHelper phCover,
                     int amount)
Parameters:
phCover -
amount -

getChild

public ProductHelper getChild(int nChild)
get the nth child of this

Parameters:
nChild - the index of the child
Returns:

getChild

public ProductHelper getChild(String productType,
                              int n)
get the nth child of this

Parameters:
productType - the productType attribute
n - the index of the child
Returns:

getChildren

public Vector<ProductHelper> getChildren()
get the vector of children of this

Returns:

getProduct

public KElement getProduct()
Returns:

isRootProduct

public boolean isRootProduct()
Returns:

setCustomerInfo

public void setCustomerInfo(PartitionHelper cuph)
reference the customerinfo specified by ph

Parameters:
cuph -


Copyright © 2013. All Rights Reserved.