com.prowidesoftware.swift.model.mx.MxAuth07900102 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.MxRead;
import com.prowidesoftware.swift.model.mx.MxReadConfiguration;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Class for auth.079.001.02 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"sctiesFincgRptgTxStatRpt"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:auth.079.001.02")
public class MxAuth07900102
extends com.prowidesoftware.swift.model.mx.AbstractMX
{
@XmlElement(name = "SctiesFincgRptgTxStatRpt", required = true)
protected SecuritiesFinancingReportingTransactionStateReportV02 sctiesFincgRptgTxStatRpt;
public static final transient String BUSINESS_PROCESS = "auth";
public static final transient int FUNCTIONALITY = 79;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 2;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {ActiveOrHistoricCurrencyAnd20DecimalAmount.class, ActiveOrHistoricCurrencyAndAmount.class, AgreementType2Choice.class, AgriculturalCommodityDairy1 .class, AgriculturalCommodityForestry1 .class, AgriculturalCommodityGrain2 .class, AgriculturalCommodityLiveStock1 .class, AgriculturalCommodityOilSeed1 .class, AgriculturalCommodityOliveOil2 .class, AgriculturalCommodityOther1 .class, AgriculturalCommodityPotato1 .class, AgriculturalCommoditySeafood1 .class, AgriculturalCommoditySoft1 .class, AmountAndDirection107 .class, AmountAndDirection53 .class, AmountHaircutMargin1 .class, AssetClassCommodity5Choice.class, AssetClassCommodityAgricultural5Choice.class, AssetClassCommodityEnergy2Choice.class, AssetClassCommodityEnvironmental2Choice.class, AssetClassCommodityFertilizer3Choice.class, AssetClassCommodityFreight3Choice.class, AssetClassCommodityIndustrialProduct1Choice.class, AssetClassCommodityInflation1 .class, AssetClassCommodityMetal1Choice.class, AssetClassCommodityMultiCommodityExotic1 .class, AssetClassCommodityOfficialEconomicStatistics1 .class, AssetClassCommodityOther1 .class, AssetClassCommodityOtherC102Choice.class, AssetClassCommodityPaper3Choice.class, AssetClassCommodityPolypropylene3Choice.class, AssetClassDetailedSubProductType10Code.class, AssetClassDetailedSubProductType11Code.class, AssetClassDetailedSubProductType1Code.class, AssetClassDetailedSubProductType29Code.class, AssetClassDetailedSubProductType2Code.class, AssetClassDetailedSubProductType30Code.class, AssetClassDetailedSubProductType31Code.class, AssetClassDetailedSubProductType32Code.class, AssetClassDetailedSubProductType33Code.class, AssetClassDetailedSubProductType34Code.class, AssetClassDetailedSubProductType5Code.class, AssetClassDetailedSubProductType8Code.class, AssetClassProductType11Code.class, AssetClassProductType12Code.class, AssetClassProductType13Code.class, AssetClassProductType14Code.class, AssetClassProductType15Code.class, AssetClassProductType1Code.class, AssetClassProductType2Code.class, AssetClassProductType3Code.class, AssetClassProductType4Code.class, AssetClassProductType5Code.class, AssetClassProductType6Code.class, AssetClassProductType7Code.class, AssetClassProductType8Code.class, AssetClassProductType9Code.class, AssetClassSubProductType10Code.class, AssetClassSubProductType15Code.class, AssetClassSubProductType16Code.class, AssetClassSubProductType18Code.class, AssetClassSubProductType1Code.class, AssetClassSubProductType20Code.class, AssetClassSubProductType21Code.class, AssetClassSubProductType22Code.class, AssetClassSubProductType23Code.class, AssetClassSubProductType24Code.class, AssetClassSubProductType25Code.class, AssetClassSubProductType26Code.class, AssetClassSubProductType27Code.class, AssetClassSubProductType28Code.class, AssetClassSubProductType29Code.class, AssetClassSubProductType2Code.class, AssetClassSubProductType30Code.class, AssetClassSubProductType31Code.class, AssetClassSubProductType32Code.class, AssetClassSubProductType33Code.class, AssetClassSubProductType34Code.class, AssetClassSubProductType35Code.class, AssetClassSubProductType36Code.class, AssetClassSubProductType37Code.class, AssetClassSubProductType38Code.class, AssetClassSubProductType39Code.class, AssetClassSubProductType3Code.class, AssetClassSubProductType40Code.class, AssetClassSubProductType41Code.class, AssetClassSubProductType42Code.class, AssetClassSubProductType43Code.class, AssetClassSubProductType44Code.class, AssetClassSubProductType45Code.class, AssetClassSubProductType46Code.class, AssetClassSubProductType47Code.class, AssetClassSubProductType48Code.class, AssetClassSubProductType49Code.class, AssetClassSubProductType5Code.class, AssetClassSubProductType6Code.class, AssetClassSubProductType7Code.class, AssetClassSubProductType8Code.class, BenchmarkCurveName10Choice.class, BenchmarkCurveName3Code.class, Branch5Choice.class, Branch6Choice.class, Cleared16Choice.class, ClearingPartyAndTime14 .class, Collateral52 .class, CollateralDeliveryMethod1Code.class, CollateralFlag13Choice.class, CollateralQualityType1Code.class, CollateralRole1Code.class, CollateralType21 .class, CollaterisedData12 .class, Commodity43 .class, ContractModification3 .class, ContractTerm7Choice.class, CounterpartyData88 .class, CounterpartyData89 .class, CounterpartyIdentification11 .class, CounterpartyIdentification12 .class, CounterpartyTradeNature7Choice.class, EnergyCommodityCoal1 .class, EnergyCommodityDistillates1 .class, EnergyCommodityElectricity1 .class, EnergyCommodityInterEnergy1 .class, EnergyCommodityLightEnd1 .class, EnergyCommodityNaturalGas2 .class, EnergyCommodityOil2 .class, EnergyCommodityOther1 .class, EnergyCommodityRenewableEnergy1 .class, EnvironmentCommodityOther1 .class, EnvironmentalCommodityCarbonRelated1 .class, EnvironmentalCommodityEmission2 .class, EnvironmentalCommodityWeather1 .class, FertilizerCommodityAmmonia1 .class, FertilizerCommodityDiammoniumPhosphate1 .class, FertilizerCommodityOther1 .class, FertilizerCommodityPotash1 .class, FertilizerCommoditySulphur1 .class, FertilizerCommodityUrea1 .class, FertilizerCommodityUreaAndAmmoniumNitrate1 .class, FinancialPartyClassification1 .class, FinancialPartyClassification2 .class, FinancialPartySectorType2Code.class, FixedOpenTermContract2 .class, FixedRate11 .class, FloatingInterestRate22 .class, FreightCommodityContainerShip1 .class, FreightCommodityDry2 .class, FreightCommodityOther1 .class, FreightCommodityWet2 .class, FundType2Code.class, GenericIdentification175 .class, IndustrialProductCommodityConstruction1 .class, IndustrialProductCommodityManufacturing1 .class, InterestComputationMethod1Code.class, InterestComputationMethodFormat6Choice.class, InterestRate27Choice.class, InterestRate6 .class, InterestRateContractTerm2 .class, LoanData139 .class, LoanData140 .class, LoanData141 .class, LoanData142 .class, MasterAgreement7 .class, MetalCommodityNonPrecious1 .class, MetalCommodityPrecious1 .class, ModificationLevel1Code.class, MxAuth07900102 .class, NaturalPersonIdentification2 .class, NoReasonCode.class, NotAvailable1Code.class, OrganisationIdentification15Choice.class, OrganisationIdentification38 .class, OtherC10CommodityDeliverable2 .class, OtherC10CommodityNonDeliverable2 .class, PaperCommodityContainerBoard1 .class, PaperCommodityNewsprint1 .class, PaperCommodityPulp1 .class, PaperCommodityRecoveredPaper1 .class, PaperCommodityRecoveredPaper2 .class, PartyIdentification236Choice.class, PolypropyleneCommodityOther1 .class, PolypropyleneCommodityPlastic1 .class, PriceStatus1Code.class, PrincipalAmount3 .class, Quantity17 .class, QuantityNominalValue2Choice.class, RateAdjustment1 .class, RateBasis1Code.class, ReconciliationFlag2 .class, RepoTerminationOption2Code.class, ReportPeriodActivity1Code.class, SecuritiesFinancingReportingTransactionStateReportV02 .class, SecuritiesLendingType3Choice.class, SecuritiesTransactionPrice18Choice.class, SecuritiesTransactionPrice19Choice.class, SecuritiesTransactionPrice5 .class, Security51 .class, Security52 .class, Security55 .class, SecurityCommodity9 .class, SecurityIdentification26Choice.class, SecurityIssuer4 .class, SettlementParties34Choice.class, SpecialCollateral1Code.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TradeRepositoryReportingType1Code.class, TradeStateReport16 .class, TradeStateReport5Choice.class, TransactionCollateralData18Choice.class, TransactionCounterpartyData11 .class, TransactionLoanData31Choice.class, TransactionOperationType6Code.class, UnitOfMeasure11Code.class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:auth.079.001.02";
public MxAuth07900102() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxAuth07900102(final String xml) {
this();
MxAuth07900102 tmp = parse(xml);
sctiesFincgRptgTxStatRpt = tmp.getSctiesFincgRptgTxStatRpt();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxAuth07900102(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the sctiesFincgRptgTxStatRpt property.
*
* @return
* possible object is
* {@link SecuritiesFinancingReportingTransactionStateReportV02 }
*
*/
public SecuritiesFinancingReportingTransactionStateReportV02 getSctiesFincgRptgTxStatRpt() {
return sctiesFincgRptgTxStatRpt;
}
/**
* Sets the value of the sctiesFincgRptgTxStatRpt property.
*
* @param value
* allowed object is
* {@link SecuritiesFinancingReportingTransactionStateReportV02 }
*
*/
public MxAuth07900102 setSctiesFincgRptgTxStatRpt(SecuritiesFinancingReportingTransactionStateReportV02 value) {
this.sctiesFincgRptgTxStatRpt = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxAuth07900102 parse(String xml) {
return ((MxAuth07900102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxAuth07900102 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxAuth07900102 parse(String xml, MxReadConfiguration conf) {
return ((MxAuth07900102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxAuth07900102 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxAuth07900102 parse(String xml, MxRead parserImpl) {
return ((MxAuth07900102) parserImpl.read(MxAuth07900102 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxAuth07900102 messages from its JSON representation.
*
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxAuth07900102 message
* @return
* a new instance of MxAuth07900102
*/
public static final MxAuth07900102 fromJson(String json) {
return com.prowidesoftware.swift.model.mx.AbstractMX.fromJson(json, MxAuth07900102 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}