public class Template extends java.lang.Object implements XMLizable
XML Snippet of Template:
<Template> <TemplateKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <Name>All Promotions</Name> </TemplateKey> <MonetaryValuePresence> <Price>true</Price> <ShippingCharge>false</ShippingCharge> <Tax>false</Tax> <ShippingTax>false</ShippingTax> </MonetaryValuePresence> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>ProductLevelPromotion</GroupName> </PromotionGroupKey> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>OrderLevelPromotion</GroupName> </PromotionGroupKey> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>ShippingPromotion</GroupName> </PromotionGroupKey> </Template>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
Template()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
com.ibm.commerce.marketing.promotion.group.PromotionGroupKey[] | getGroupKeys()
Returns the list of groups defined in the template.
|
TemplateKey | getKey()
Returns key of this template.
|
boolean | isPricePresent()
Indicates if price is calculated when this template is invoked.
|
boolean | isShippingChargePresent()
Indicates if shipping charge is calculated when this template is invoked.
|
boolean | isShippingTaxPresent()
Indicates if shipping tax is calculated when this template is invoked.
|
boolean | isTaxPresent()
Indicates if tax is calculated when this template is invoked.
|
void | setGroupKeys(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey[] keies)
Sets the array of the promotion group keys in this template
|
void | setKey(TemplateKey akey)
Sets the key of this template.
|
void | setPricePresent(boolean b)
Sets the flag value that tells whether or not price is calculated at the time this template is invoked.
|
void | setShippingChargePresent(boolean b)
Sets the flag value that tells whether or not shipping charge is calculated at the time this template is invoked.
|
void | setShippingTaxPresent(boolean b)
Sets the flag value that tells whether or not shipping tax is calculated at the time this template is invoked.
|
void | setTaxPresent(boolean b)
Sets the flag value that tells whether or not tax is calculated at the time this template is invoked.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public TemplateKey getKey()
public boolean isPricePresent()
public boolean isShippingChargePresent()
public boolean isShippingTaxPresent()
public boolean isTaxPresent()
public void setKey(TemplateKey akey)
public void setPricePresent(boolean b)
public void setShippingChargePresent(boolean b)
public void setShippingTaxPresent(boolean b)
public void setTaxPresent(boolean b)
public com.ibm.commerce.marketing.promotion.group.PromotionGroupKey[] getGroupKeys()
public void setGroupKeys(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey[] keies)