oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PriceType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.phloc.commons.annotations.ReturnsMutableObject;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BaseQuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.OrderableUnitFactorRateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriceAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriceChangeReasonType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriceTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriceTypeType;
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Details</ccts:DictionaryEntryName><ccts:Definition>Information about the price.</ccts:Definition><ccts:ObjectClass>Price</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for PriceType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PriceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PriceAmount"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}BaseQuantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PriceChangeReason" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PriceTypeCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PriceType" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}OrderableUnitFactorRate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ValidityPeriod" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PriceList" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AllowanceCharge" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PriceType", propOrder = {
"priceAmount",
"baseQuantity",
"priceChangeReason",
"priceTypeCode",
"priceType",
"orderableUnitFactorRate",
"validityPeriod",
"priceList",
"allowanceCharge"
})
public class PriceType implements Serializable
{
@XmlElement(name = "PriceAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private PriceAmountType priceAmount;
@XmlElement(name = "BaseQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private BaseQuantityType baseQuantity;
@XmlElement(name = "PriceChangeReason", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private List priceChangeReason;
@XmlElement(name = "PriceTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private PriceTypeCodeType priceTypeCode;
@XmlElement(name = "PriceType", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private PriceTypeType priceType;
@XmlElement(name = "OrderableUnitFactorRate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private OrderableUnitFactorRateType orderableUnitFactorRate;
@XmlElement(name = "ValidityPeriod")
private List validityPeriod;
@XmlElement(name = "PriceList")
private PriceListType priceList;
@XmlElement(name = "AllowanceCharge")
private List allowanceCharge;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public PriceType() {
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Price Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>The price amount.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Price Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType><ccts:AlternativeBusinessTerms>unit price</ccts:AlternativeBusinessTerms><ccts:Examples>23.45</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PriceAmountType }
*
*/
@Nullable
public PriceAmountType getPriceAmount() {
return priceAmount;
}
/**
* Sets the value of the priceAmount property.
*
* @param value
* allowed object is
* {@link PriceAmountType }
*
*/
public void setPriceAmount(
@Nullable
PriceAmountType value) {
this.priceAmount = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Base_ Quantity. Quantity</ccts:DictionaryEntryName><ccts:Definition>The actual quantity to which the price applies.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTermQualifier>Base</ccts:PropertyTermQualifier><ccts:PropertyTerm>Quantity</ccts:PropertyTerm><ccts:RepresentationTerm>Quantity</ccts:RepresentationTerm><ccts:DataType>Quantity. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link BaseQuantityType }
*
*/
@Nullable
public BaseQuantityType getBaseQuantity() {
return baseQuantity;
}
/**
* Sets the value of the baseQuantity property.
*
* @param value
* allowed object is
* {@link BaseQuantityType }
*
*/
public void setBaseQuantity(
@Nullable
BaseQuantityType value) {
this.baseQuantity = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Price Change_ Reason. Text</ccts:DictionaryEntryName><ccts:Definition>The reason for the price change, expressed as text.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTermQualifier>Price Change</ccts:PropertyTermQualifier><ccts:PropertyTerm>Reason</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>"Clearance of old stock", "New contract applies"</ccts:Examples></ccts:Component>
*
* Gets the value of the priceChangeReason property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the priceChangeReason property.
*
*
* For example, to add a new item, do as follows:
*
* getPriceChangeReason().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PriceChangeReasonType }
*
*
*/
@Nonnull
@ReturnsMutableObject(reason = "JAXB implementation style")
public List getPriceChangeReason() {
if (priceChangeReason == null) {
priceChangeReason = new ArrayList();
}
return this.priceChangeReason;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Price Type Code. Code</ccts:DictionaryEntryName><ccts:Definition>The price type, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Price Type Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PriceTypeCodeType }
*
*/
@Nullable
public PriceTypeCodeType getPriceTypeCode() {
return priceTypeCode;
}
/**
* Sets the value of the priceTypeCode property.
*
* @param value
* allowed object is
* {@link PriceTypeCodeType }
*
*/
public void setPriceTypeCode(
@Nullable
PriceTypeCodeType value) {
this.priceTypeCode = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Price Type. Text</ccts:DictionaryEntryName><ccts:Definition>The price type, expressed as text.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Price Type</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>retail, wholesale, discount, contract</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PriceTypeType }
*
*/
@Nullable
public PriceTypeType getPriceType() {
return priceType;
}
/**
* Sets the value of the priceType property.
*
* @param value
* allowed object is
* {@link PriceTypeType }
*
*/
public void setPriceType(
@Nullable
PriceTypeType value) {
this.priceType = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Orderable Unit Factor. Rate</ccts:DictionaryEntryName><ccts:Definition>The factor by which the base price unit can be converted to the orderable unit.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Orderable Unit Factor</ccts:PropertyTerm><ccts:RepresentationTerm>Rate</ccts:RepresentationTerm><ccts:DataType>Rate. Type</ccts:DataType><ccts:Examples>Nails are priced by weight but ordered by quantity. So this would say how many nails per kilo</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link OrderableUnitFactorRateType }
*
*/
@Nullable
public OrderableUnitFactorRateType getOrderableUnitFactorRate() {
return orderableUnitFactorRate;
}
/**
* Sets the value of the orderableUnitFactorRate property.
*
* @param value
* allowed object is
* {@link OrderableUnitFactorRateType }
*
*/
public void setOrderableUnitFactorRate(
@Nullable
OrderableUnitFactorRateType value) {
this.orderableUnitFactorRate = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Validity_ Period. Period</ccts:DictionaryEntryName><ccts:Definition>An association to Validity Period.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTermQualifier>Validity</ccts:PropertyTermQualifier><ccts:PropertyTerm>Period</ccts:PropertyTerm><ccts:AssociatedObjectClass>Period</ccts:AssociatedObjectClass></ccts:Component>
*
* Gets the value of the validityPeriod property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the validityPeriod property.
*
*
* For example, to add a new item, do as follows:
*
* getValidityPeriod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PeriodType }
*
*
*/
@Nonnull
@ReturnsMutableObject(reason = "JAXB implementation style")
public List getValidityPeriod() {
if (validityPeriod == null) {
validityPeriod = new ArrayList();
}
return this.validityPeriod;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Price List</ccts:DictionaryEntryName><ccts:Definition>A reference to a Price List.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Price List</ccts:PropertyTerm><ccts:AssociatedObjectClass>Price List</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PriceListType }
*
*/
@Nullable
public PriceListType getPriceList() {
return priceList;
}
/**
* Sets the value of the priceList property.
*
* @param value
* allowed object is
* {@link PriceListType }
*
*/
public void setPriceList(
@Nullable
PriceListType value) {
this.priceList = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Price. Allowance Charge</ccts:DictionaryEntryName><ccts:Definition>An association to Allowance Charge.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Price</ccts:ObjectClass><ccts:PropertyTerm>Allowance Charge</ccts:PropertyTerm><ccts:AssociatedObjectClass>Allowance Charge</ccts:AssociatedObjectClass></ccts:Component>
*
* Gets the value of the allowanceCharge property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the allowanceCharge property.
*
*
* For example, to add a new item, do as follows:
*
* getAllowanceCharge().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AllowanceChargeType }
*
*
*/
@Nonnull
@ReturnsMutableObject(reason = "JAXB implementation style")
public List getAllowanceCharge() {
if (allowanceCharge == null) {
allowanceCharge = new ArrayList();
}
return this.allowanceCharge;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if ((o == null)||(!getClass().equals(o.getClass()))) {
return false;
}
final PriceType rhs = ((PriceType) o);
if (!EqualsUtils.equals(priceAmount, rhs.priceAmount)) {
return false;
}
if (!EqualsUtils.equals(baseQuantity, rhs.baseQuantity)) {
return false;
}
if (!EqualsUtils.equals(priceChangeReason, rhs.priceChangeReason)) {
return false;
}
if (!EqualsUtils.equals(priceTypeCode, rhs.priceTypeCode)) {
return false;
}
if (!EqualsUtils.equals(priceType, rhs.priceType)) {
return false;
}
if (!EqualsUtils.equals(orderableUnitFactorRate, rhs.orderableUnitFactorRate)) {
return false;
}
if (!EqualsUtils.equals(validityPeriod, rhs.validityPeriod)) {
return false;
}
if (!EqualsUtils.equals(priceList, rhs.priceList)) {
return false;
}
if (!EqualsUtils.equals(allowanceCharge, rhs.allowanceCharge)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(priceAmount).append(baseQuantity).append(priceChangeReason).append(priceTypeCode).append(priceType).append(orderableUnitFactorRate).append(validityPeriod).append(priceList).append(allowanceCharge).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("priceAmount", priceAmount).append("baseQuantity", baseQuantity).append("priceChangeReason", priceChangeReason).append("priceTypeCode", priceTypeCode).append("priceType", priceType).append("orderableUnitFactorRate", orderableUnitFactorRate).append("validityPeriod", validityPeriod).append("priceList", priceList).append("allowanceCharge", allowanceCharge).toString();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param aList
* The new list member to set. May be null
.
*/
public void setPriceChangeReason(
@Nullable
final List aList) {
priceChangeReason = aList;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param aList
* The new list member to set. May be null
.
*/
public void setValidityPeriod(
@Nullable
final List aList) {
validityPeriod = aList;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param aList
* The new list member to set. May be null
.
*/
public void setAllowanceCharge(
@Nullable
final List aList) {
allowanceCharge = aList;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if at least one item is contained, false
otherwise.
*/
public boolean hasPriceChangeReasonEntries() {
return (!getPriceChangeReason().isEmpty());
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if no item is contained, false
otherwise.
*/
public boolean hasNoPriceChangeReasonEntries() {
return getPriceChangeReason().isEmpty();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* The number of contained elements. Always ≥ 0.
*/
@Nonnegative
public int getPriceChangeReasonCount() {
return getPriceChangeReason().size();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param index
* The index to retrieve
* @return
* The element at the specified index. May be null
* @throws ArrayIndexOutOfBoundsException
* if the index is invalid!
*/
@Nullable
public PriceChangeReasonType getPriceChangeReasonAtIndex(
@Nonnegative
final int index) {
return getPriceChangeReason().get(index);
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if at least one item is contained, false
otherwise.
*/
public boolean hasValidityPeriodEntries() {
return (!getValidityPeriod().isEmpty());
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if no item is contained, false
otherwise.
*/
public boolean hasNoValidityPeriodEntries() {
return getValidityPeriod().isEmpty();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* The number of contained elements. Always ≥ 0.
*/
@Nonnegative
public int getValidityPeriodCount() {
return getValidityPeriod().size();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param index
* The index to retrieve
* @return
* The element at the specified index. May be null
* @throws ArrayIndexOutOfBoundsException
* if the index is invalid!
*/
@Nullable
public PeriodType getValidityPeriodAtIndex(
@Nonnegative
final int index) {
return getValidityPeriod().get(index);
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if at least one item is contained, false
otherwise.
*/
public boolean hasAllowanceChargeEntries() {
return (!getAllowanceCharge().isEmpty());
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if no item is contained, false
otherwise.
*/
public boolean hasNoAllowanceChargeEntries() {
return getAllowanceCharge().isEmpty();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* The number of contained elements. Always ≥ 0.
*/
@Nonnegative
public int getAllowanceChargeCount() {
return getAllowanceCharge().size();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param index
* The index to retrieve
* @return
* The element at the specified index. May be null
* @throws ArrayIndexOutOfBoundsException
* if the index is invalid!
*/
@Nullable
public AllowanceChargeType getAllowanceChargeAtIndex(
@Nonnegative
final int index) {
return getAllowanceCharge().get(index);
}
/**
* Special setter with value of type BigDecimal
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type OrderableUnitFactorRateType and never null
*/
@Nonnull
public OrderableUnitFactorRateType setOrderableUnitFactorRate(
@Nullable
final BigDecimal valueParam) {
OrderableUnitFactorRateType aObj = getOrderableUnitFactorRate();
if (aObj == null) {
aObj = new OrderableUnitFactorRateType(valueParam);
setOrderableUnitFactorRate(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type String
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type PriceTypeType and never null
*/
@Nonnull
public PriceTypeType setPriceType(
@Nullable
final String valueParam) {
PriceTypeType aObj = getPriceType();
if (aObj == null) {
aObj = new PriceTypeType(valueParam);
setPriceType(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type BigDecimal
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type PriceAmountType and never null
*/
@Nonnull
public PriceAmountType setPriceAmount(
@Nullable
final BigDecimal valueParam) {
PriceAmountType aObj = getPriceAmount();
if (aObj == null) {
aObj = new PriceAmountType(valueParam);
setPriceAmount(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type String
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type PriceTypeCodeType and never null
*/
@Nonnull
public PriceTypeCodeType setPriceTypeCode(
@Nullable
final String valueParam) {
PriceTypeCodeType aObj = getPriceTypeCode();
if (aObj == null) {
aObj = new PriceTypeCodeType(valueParam);
setPriceTypeCode(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type BigDecimal
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type BaseQuantityType and never null
*/
@Nonnull
public BaseQuantityType setBaseQuantity(
@Nullable
final BigDecimal valueParam) {
BaseQuantityType aObj = getBaseQuantity();
if (aObj == null) {
aObj = new BaseQuantityType(valueParam);
setBaseQuantity(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained PriceAmountType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained PriceAmountType object or null
*/
@Nullable
public BigDecimal getPriceAmountValue() {
PriceAmountType aObj = getPriceAmount();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained BaseQuantityType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained BaseQuantityType object or null
*/
@Nullable
public BigDecimal getBaseQuantityValue() {
BaseQuantityType aObj = getBaseQuantity();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained PriceTypeCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained PriceTypeCodeType object or null
*/
@Nullable
public String getPriceTypeCodeValue() {
PriceTypeCodeType aObj = getPriceTypeCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained PriceTypeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained PriceTypeType object or null
*/
@Nullable
public String getPriceTypeValue() {
PriceTypeType aObj = getPriceType();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained OrderableUnitFactorRateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained OrderableUnitFactorRateType object or null
*/
@Nullable
public BigDecimal getOrderableUnitFactorRateValue() {
OrderableUnitFactorRateType aObj = getOrderableUnitFactorRate();
return ((aObj == null)?null:aObj.getValue());
}
}