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(String description,
double totalprice)
add a price element
|
Payment |
getCreatePayment()
create payment element
|
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(String typ,
Price.EnumTaxType taxtype,
int i)
Deprecated.
use 4 parameter version
|
Price |
getPriceByType(String typ,
Price.EnumTaxType taxtype,
String dropID,
int i) |
Vector<Price> |
getPricesForDrop(String dropID)
get a vector of all child Price elements
|
Vector<Price> |
getPriceVector()
get a vector of all child Price elements
|
appendElement, equals, getAttribute, getAttribute, getAttributeMap, getBoolAttribute, getComment, getCreateElement, getCreateElement, getCreateXPathElement, getDescriptiveName, getElement, getElement, getElements, getPrintTalk, getRealAttribute, getRoot, getTElem, getXPathAttribute, getXPathElement, hashCode, init, numElements, setAttribute, setAttribute, setAttribute, setAttribute, setComment, setDescriptiveName, setRoot, setTElem, setXPathAttribute, setXPathValue, toString
public static final String ELEMENT_PRICING
public Pricing(org.cip4.jdflib.core.KElement theElement)
theElement
- public Payment getCreatePayment()
public Payment getPayment()
public Price addPrice(String description, double totalprice)
description
- totalprice
- public Price getPrice(String lineID)
lineID
- public Price getPriceByDescription(String desc)
desc
- @Deprecated public Price getPriceByType(String typ, Price.EnumTaxType taxtype, int i)
typ
- taxtype
- i
- public Price getPriceByType(String typ, Price.EnumTaxType taxtype, String dropID, int i)
public Vector<Price> getPriceVector()
Copyright © 2017. All rights reserved.