public class PricingBuilder
extends org.cip4.lib.xjdf.builder.AbstractNodeBuilder<org.cip4.lib.xprinttalk.schema.Pricing>
Constructor and Description |
---|
PricingBuilder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.cip4.lib.xprinttalk.schema.Price |
appendPrice(String descriptiveName,
double price)
Create a new Price object and append to Pricing node.
|
org.cip4.lib.xprinttalk.schema.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.
|
org.cip4.lib.xprinttalk.schema.Price |
appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf,
double price,
String descriptiveName)
Create a new Price node and append to Pricing node and references the XJDF.
|
org.cip4.lib.xprinttalk.schema.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 org.cip4.lib.xprinttalk.schema.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 org.cip4.lib.xprinttalk.schema.Price appendPrice(String descriptiveName, double price)
descriptiveName
- Attribute DescriptiveName of Price Node.price
- Attribute Price of Price Node.public org.cip4.lib.xprinttalk.schema.Price appendPrice(org.cip4.lib.xjdf.schema.XJDF xjdf, double price, 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 org.cip4.lib.xprinttalk.schema.Price appendTotalPrice()
Copyright © 2016. All rights reserved.