oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.ExchangeRateType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
import java.math.BigDecimal;
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 javax.xml.datatype.XMLGregorianCalendar;
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.CalculationRateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExchangeMarketIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MathematicOperatorCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SourceCurrencyBaseRateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SourceCurrencyCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TargetCurrencyBaseRateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TargetCurrencyCodeType;
/**
*
*
* <?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>Exchange Rate. Details</ccts:DictionaryEntryName><ccts:Definition>Information about Exchange Rate.</ccts:Definition><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for ExchangeRateType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ExchangeRateType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SourceCurrencyCode"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SourceCurrencyBaseRate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TargetCurrencyCode"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TargetCurrencyBaseRate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExchangeMarketID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CalculationRate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MathematicOperatorCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Date" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ForeignExchangeContract" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExchangeRateType", propOrder = {
"sourceCurrencyCode",
"sourceCurrencyBaseRate",
"targetCurrencyCode",
"targetCurrencyBaseRate",
"exchangeMarketID",
"calculationRate",
"mathematicOperatorCode",
"date",
"foreignExchangeContract"
})
public class ExchangeRateType implements Serializable
{
@XmlElement(name = "SourceCurrencyCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private SourceCurrencyCodeType sourceCurrencyCode;
@XmlElement(name = "SourceCurrencyBaseRate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private SourceCurrencyBaseRateType sourceCurrencyBaseRate;
@XmlElement(name = "TargetCurrencyCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private TargetCurrencyCodeType targetCurrencyCode;
@XmlElement(name = "TargetCurrencyBaseRate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private TargetCurrencyBaseRateType targetCurrencyBaseRate;
@XmlElement(name = "ExchangeMarketID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private ExchangeMarketIDType exchangeMarketID;
@XmlElement(name = "CalculationRate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private CalculationRateType calculationRate;
@XmlElement(name = "MathematicOperatorCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private MathematicOperatorCodeType mathematicOperatorCode;
@XmlElement(name = "Date", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private DateType date;
@XmlElement(name = "ForeignExchangeContract")
private ContractType foreignExchangeContract;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public ExchangeRateType() {
}
/**
*
*
* <?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>Exchange Rate. Source_ Currency Code. Code</ccts:DictionaryEntryName><ccts:Definition>The reference currency for the Exchange Rate; the currency from which the exchange is being made (CC Definition).</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTermQualifier>Source</ccts:PropertyTermQualifier><ccts:PropertyTerm>Currency Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Currency_ Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SourceCurrencyCodeType }
*
*/
@Nullable
public SourceCurrencyCodeType getSourceCurrencyCode() {
return sourceCurrencyCode;
}
/**
* Sets the value of the sourceCurrencyCode property.
*
* @param value
* allowed object is
* {@link SourceCurrencyCodeType }
*
*/
public void setSourceCurrencyCode(
@Nullable
SourceCurrencyCodeType value) {
this.sourceCurrencyCode = 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>Exchange Rate. Source_ Currency Base Rate. Rate</ccts:DictionaryEntryName><ccts:Definition>The unit base of the source currency for currencies with small denominations.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTermQualifier>Source</ccts:PropertyTermQualifier><ccts:PropertyTerm>Currency Base Rate</ccts:PropertyTerm><ccts:RepresentationTerm>Rate</ccts:RepresentationTerm><ccts:DataType>Rate. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SourceCurrencyBaseRateType }
*
*/
@Nullable
public SourceCurrencyBaseRateType getSourceCurrencyBaseRate() {
return sourceCurrencyBaseRate;
}
/**
* Sets the value of the sourceCurrencyBaseRate property.
*
* @param value
* allowed object is
* {@link SourceCurrencyBaseRateType }
*
*/
public void setSourceCurrencyBaseRate(
@Nullable
SourceCurrencyBaseRateType value) {
this.sourceCurrencyBaseRate = 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>Exchange Rate. Target_ Currency Code. Code</ccts:DictionaryEntryName><ccts:Definition>The target currency for the Exchange Rate; the currency to which the exchange is being made (CC Definition).</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTermQualifier>Target</ccts:PropertyTermQualifier><ccts:PropertyTerm>Currency Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Currency_ Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link TargetCurrencyCodeType }
*
*/
@Nullable
public TargetCurrencyCodeType getTargetCurrencyCode() {
return targetCurrencyCode;
}
/**
* Sets the value of the targetCurrencyCode property.
*
* @param value
* allowed object is
* {@link TargetCurrencyCodeType }
*
*/
public void setTargetCurrencyCode(
@Nullable
TargetCurrencyCodeType value) {
this.targetCurrencyCode = 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>Exchange Rate. Target_ Currency Base Rate. Rate</ccts:DictionaryEntryName><ccts:Definition>The unit base of the target currency for currencies with small denominations.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTermQualifier>Target</ccts:PropertyTermQualifier><ccts:PropertyTerm>Currency Base Rate</ccts:PropertyTerm><ccts:RepresentationTerm>Rate</ccts:RepresentationTerm><ccts:DataType>Rate. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link TargetCurrencyBaseRateType }
*
*/
@Nullable
public TargetCurrencyBaseRateType getTargetCurrencyBaseRate() {
return targetCurrencyBaseRate;
}
/**
* Sets the value of the targetCurrencyBaseRate property.
*
* @param value
* allowed object is
* {@link TargetCurrencyBaseRateType }
*
*/
public void setTargetCurrencyBaseRate(
@Nullable
TargetCurrencyBaseRateType value) {
this.targetCurrencyBaseRate = 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>Exchange Rate. Exchange Market Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the currency exchange market used as the source of the Exchange Rate.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTerm>Exchange Market Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ExchangeMarketIDType }
*
*/
@Nullable
public ExchangeMarketIDType getExchangeMarketID() {
return exchangeMarketID;
}
/**
* Sets the value of the exchangeMarketID property.
*
* @param value
* allowed object is
* {@link ExchangeMarketIDType }
*
*/
public void setExchangeMarketID(
@Nullable
ExchangeMarketIDType value) {
this.exchangeMarketID = 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>Exchange Rate. Calculation Rate. Rate</ccts:DictionaryEntryName><ccts:Definition>The factor applied to the source currency to calculate the target currency.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTerm>Calculation Rate</ccts:PropertyTerm><ccts:RepresentationTerm>Rate</ccts:RepresentationTerm><ccts:DataType>Rate. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link CalculationRateType }
*
*/
@Nullable
public CalculationRateType getCalculationRate() {
return calculationRate;
}
/**
* Sets the value of the calculationRate property.
*
* @param value
* allowed object is
* {@link CalculationRateType }
*
*/
public void setCalculationRate(
@Nullable
CalculationRateType value) {
this.calculationRate = 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>Exchange Rate. Mathematic Operator Code. Code</ccts:DictionaryEntryName><ccts:Definition>An identifier for whether the Calculation Rate should be used to multiply or to divide, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTerm>Mathematic Operator Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Operator_ Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link MathematicOperatorCodeType }
*
*/
@Nullable
public MathematicOperatorCodeType getMathematicOperatorCode() {
return mathematicOperatorCode;
}
/**
* Sets the value of the mathematicOperatorCode property.
*
* @param value
* allowed object is
* {@link MathematicOperatorCodeType }
*
*/
public void setMathematicOperatorCode(
@Nullable
MathematicOperatorCodeType value) {
this.mathematicOperatorCode = 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>Exchange Rate. Date</ccts:DictionaryEntryName><ccts:Definition>The date of the Exchange.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTerm>Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link DateType }
*
*/
@Nullable
public DateType getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link DateType }
*
*/
public void setDate(
@Nullable
DateType value) {
this.date = 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>Exchange Rate. Foreign Exchange_ Contract. Contract</ccts:DictionaryEntryName><ccts:Definition>An association to Foreign Exchange Contract.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Exchange Rate</ccts:ObjectClass><ccts:PropertyTermQualifier>Foreign Exchange</ccts:PropertyTermQualifier><ccts:PropertyTerm>Contract</ccts:PropertyTerm><ccts:AssociatedObjectClass>Contract</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ContractType }
*
*/
@Nullable
public ContractType getForeignExchangeContract() {
return foreignExchangeContract;
}
/**
* Sets the value of the foreignExchangeContract property.
*
* @param value
* allowed object is
* {@link ContractType }
*
*/
public void setForeignExchangeContract(
@Nullable
ContractType value) {
this.foreignExchangeContract = value;
}
/**
* 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 ExchangeRateType rhs = ((ExchangeRateType) o);
if (!EqualsUtils.equals(sourceCurrencyCode, rhs.sourceCurrencyCode)) {
return false;
}
if (!EqualsUtils.equals(sourceCurrencyBaseRate, rhs.sourceCurrencyBaseRate)) {
return false;
}
if (!EqualsUtils.equals(targetCurrencyCode, rhs.targetCurrencyCode)) {
return false;
}
if (!EqualsUtils.equals(targetCurrencyBaseRate, rhs.targetCurrencyBaseRate)) {
return false;
}
if (!EqualsUtils.equals(exchangeMarketID, rhs.exchangeMarketID)) {
return false;
}
if (!EqualsUtils.equals(calculationRate, rhs.calculationRate)) {
return false;
}
if (!EqualsUtils.equals(mathematicOperatorCode, rhs.mathematicOperatorCode)) {
return false;
}
if (!EqualsUtils.equals(date, rhs.date)) {
return false;
}
if (!EqualsUtils.equals(foreignExchangeContract, rhs.foreignExchangeContract)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(sourceCurrencyCode).append(sourceCurrencyBaseRate).append(targetCurrencyCode).append(targetCurrencyBaseRate).append(exchangeMarketID).append(calculationRate).append(mathematicOperatorCode).append(date).append(foreignExchangeContract).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("sourceCurrencyCode", sourceCurrencyCode).append("sourceCurrencyBaseRate", sourceCurrencyBaseRate).append("targetCurrencyCode", targetCurrencyCode).append("targetCurrencyBaseRate", targetCurrencyBaseRate).append("exchangeMarketID", exchangeMarketID).append("calculationRate", calculationRate).append("mathematicOperatorCode", mathematicOperatorCode).append("date", date).append("foreignExchangeContract", foreignExchangeContract).toString();
}
/**
* 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 TargetCurrencyBaseRateType and never null
*/
@Nonnull
public TargetCurrencyBaseRateType setTargetCurrencyBaseRate(
@Nullable
final BigDecimal valueParam) {
TargetCurrencyBaseRateType aObj = getTargetCurrencyBaseRate();
if (aObj == null) {
aObj = new TargetCurrencyBaseRateType(valueParam);
setTargetCurrencyBaseRate(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 CalculationRateType and never null
*/
@Nonnull
public CalculationRateType setCalculationRate(
@Nullable
final BigDecimal valueParam) {
CalculationRateType aObj = getCalculationRate();
if (aObj == null) {
aObj = new CalculationRateType(valueParam);
setCalculationRate(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 SourceCurrencyBaseRateType and never null
*/
@Nonnull
public SourceCurrencyBaseRateType setSourceCurrencyBaseRate(
@Nullable
final BigDecimal valueParam) {
SourceCurrencyBaseRateType aObj = getSourceCurrencyBaseRate();
if (aObj == null) {
aObj = new SourceCurrencyBaseRateType(valueParam);
setSourceCurrencyBaseRate(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type XMLGregorianCalendar
* 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 DateType and never null
*/
@Nonnull
public DateType setDate(
@Nullable
final XMLGregorianCalendar valueParam) {
DateType aObj = getDate();
if (aObj == null) {
aObj = new DateType(valueParam);
setDate(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 ExchangeMarketIDType and never null
*/
@Nonnull
public ExchangeMarketIDType setExchangeMarketID(
@Nullable
final String valueParam) {
ExchangeMarketIDType aObj = getExchangeMarketID();
if (aObj == null) {
aObj = new ExchangeMarketIDType(valueParam);
setExchangeMarketID(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 SourceCurrencyCodeType and never null
*/
@Nonnull
public SourceCurrencyCodeType setSourceCurrencyCode(
@Nullable
final String valueParam) {
SourceCurrencyCodeType aObj = getSourceCurrencyCode();
if (aObj == null) {
aObj = new SourceCurrencyCodeType(valueParam);
setSourceCurrencyCode(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 TargetCurrencyCodeType and never null
*/
@Nonnull
public TargetCurrencyCodeType setTargetCurrencyCode(
@Nullable
final String valueParam) {
TargetCurrencyCodeType aObj = getTargetCurrencyCode();
if (aObj == null) {
aObj = new TargetCurrencyCodeType(valueParam);
setTargetCurrencyCode(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 MathematicOperatorCodeType and never null
*/
@Nonnull
public MathematicOperatorCodeType setMathematicOperatorCode(
@Nullable
final String valueParam) {
MathematicOperatorCodeType aObj = getMathematicOperatorCode();
if (aObj == null) {
aObj = new MathematicOperatorCodeType(valueParam);
setMathematicOperatorCode(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained SourceCurrencyCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SourceCurrencyCodeType object or null
*/
@Nullable
public String getSourceCurrencyCodeValue() {
SourceCurrencyCodeType aObj = getSourceCurrencyCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained SourceCurrencyBaseRateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SourceCurrencyBaseRateType object or null
*/
@Nullable
public BigDecimal getSourceCurrencyBaseRateValue() {
SourceCurrencyBaseRateType aObj = getSourceCurrencyBaseRate();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained TargetCurrencyCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained TargetCurrencyCodeType object or null
*/
@Nullable
public String getTargetCurrencyCodeValue() {
TargetCurrencyCodeType aObj = getTargetCurrencyCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained TargetCurrencyBaseRateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained TargetCurrencyBaseRateType object or null
*/
@Nullable
public BigDecimal getTargetCurrencyBaseRateValue() {
TargetCurrencyBaseRateType aObj = getTargetCurrencyBaseRate();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained ExchangeMarketIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained ExchangeMarketIDType object or null
*/
@Nullable
public String getExchangeMarketIDValue() {
ExchangeMarketIDType aObj = getExchangeMarketID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained CalculationRateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained CalculationRateType object or null
*/
@Nullable
public BigDecimal getCalculationRateValue() {
CalculationRateType aObj = getCalculationRate();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained MathematicOperatorCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained MathematicOperatorCodeType object or null
*/
@Nullable
public String getMathematicOperatorCodeValue() {
MathematicOperatorCodeType aObj = getMathematicOperatorCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained DateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained DateType object or null
*/
@Nullable
public XMLGregorianCalendar getDateValue() {
DateType aObj = getDate();
return ((aObj == null)?null:aObj.getValue());
}
}