public class Pricing extends AbstractPrintTalk
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_PRICING |
ATTR_JOBIDREF, log, theElement
Constructor and Description |
---|
Pricing(org.cip4.jdflib.core.KElement theElement) |
Modifier and Type | Method and Description |
---|---|
Price |
addPrice(Price.EnumPriceType priceType,
Price.EnumTaxType taxType,
String description,
double totalprice)
add a price element
|
Price |
addPrice(String description,
double totalprice)
Deprecated.
|
void |
cleanUp()
generic cleanup routine
|
Payment |
getCreatePayment()
create payment element
|
String |
getCurrency()
get currency value
|
static String |
getDefaultCurrency() |
Payment |
getPayment()
get payment element
|
Price |
getPrice(String lineID)
get a price element by LineID
|
Price |
getPriceByDescription(String desc)
get a price element by DescriptiveName
|
Price |
getPriceByType(Price.EnumPriceType typ,
Price.EnumTaxType taxtype,
String dropID,
int i) |
Vector<Price> |
getPricesByType(Price.EnumPriceType typ,
Price.EnumTaxType taxtype,
String dropID) |
Vector<Price> |
getPricesForDrop(String dropID)
Deprecated.
use getPricesByType getPricesByType
|
Vector<Price> |
getPriceVector()
get a vector of all child Price elements
|
void |
setCurrency(String currency) |
static void |
setDefaultCurrency(String defaultCurrency) |
appendElement, appendXJDFElement, equals, getAttribute, getAttribute, getAttributeMap, getBoolAttribute, getComment, getCreateElement, getCreateElement, getCreateXJDFElement, getCreateXPathElement, getDescriptiveName, getElement, getElement, getElements, getLocalName, getNodeName, getPrintTalk, getRealAttribute, getRoot, getTElem, getXJDFElement, getXPathAttribute, getXPathElement, hashCode, init, numElements, setAttribute, setAttribute, setAttribute, setAttribute, setComment, setDescriptiveName, setRoot, setTElem, setVAttribute, setXPathAttribute, setXPathValue, toString, toXML
public static final String ELEMENT_PRICING
public Pricing(org.cip4.jdflib.core.KElement theElement)
theElement
- public static String getDefaultCurrency()
public static void setDefaultCurrency(String defaultCurrency)
defaultCurrency
- the defaultCurrency to setpublic Payment getCreatePayment()
public Payment getPayment()
@Deprecated public Price addPrice(String description, double totalprice)
description
- totalprice
- public Price addPrice(Price.EnumPriceType priceType, Price.EnumTaxType taxType, String description, double totalprice)
priceType
- taxType
- description
- totalprice
- public Price getPrice(String lineID)
lineID
- public Price getPriceByDescription(String desc)
desc
- public Price getPriceByType(Price.EnumPriceType typ, Price.EnumTaxType taxtype, String dropID, int i)
public Vector<Price> getPricesByType(Price.EnumPriceType typ, Price.EnumTaxType taxtype, String dropID)
public Vector<Price> getPriceVector()
@Deprecated public Vector<Price> getPricesForDrop(String dropID)
public void setCurrency(String currency)
currency
- public String getCurrency()
public void cleanUp()
AbstractPrintTalk
cleanUp
in class AbstractPrintTalk
AbstractPrintTalk.cleanUp()
Copyright © 2019. All rights reserved.