public class PricingBuilder extends org.cip4.lib.xjdf.builder.AbstractNodeBuilder<Pricing>
| Constructor and Description |
|---|
PricingBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Price |
appendPrice(java.lang.String descriptiveName,
double price)
Create a new Price object and append to Pricing node.
|
Price |
appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf,
double price)
Create a new Price node and append to Pricing node and references the XJDF.
|
Price |
appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf,
double price,
java.lang.String descriptiveName)
Create a new Price node and append to Pricing node and references the XJDF.
|
Price |
appendTotalPrice()
This method automatically creates a total over all Price Items.
|
void |
appendTotalPriceWithTax(double tax)
This method automatically creates a tex item and generate the total over all Price Items.
|
public Price appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf, double price)
xjdf - The XJDF Document which belongs to this price.price - Attribute Price of Price Node.public Price appendPrice(java.lang.String descriptiveName, double price)
descriptiveName - Attribute DescriptiveName of Price Node.price - Attribute Price of Price Node.public Price appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf, double price, java.lang.String descriptiveName)
xjdf - The XJDF Document which belongs to this price.descriptiveName - Attribute DescriptiveName of Price Node.price - Attribute Price of Price Node.public void appendTotalPriceWithTax(double tax)
tax - Tax in percent as double.public Price appendTotalPrice()