com.prowidesoftware.swift.model.mx.MxSese00100102 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 sese.001.001.02 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"trfOutInstrV02"
})
@XmlRootElement(name = "Document", namespace = "urn:swift:xsd:sese.001.001.02")
public class MxSese00100102
extends com.prowidesoftware.swift.model.mx.AbstractMX
{
@XmlElement(name = "TrfOutInstrV02", required = true)
protected TransferOutInstructionV02 trfOutInstrV02;
public static final transient String BUSINESS_PROCESS = "sese";
public static final transient int FUNCTIONALITY = 1;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 2;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {Account7 .class, AccountIdentification1 .class, ActiveCurrencyAnd13DecimalAmount.class, ActiveCurrencyAndAmount.class, ActiveOrHistoricCurrencyAnd13DecimalAmount.class, ActiveOrHistoricCurrencyAndAmount.class, AdditionalReference2 .class, AddressType2Code.class, AlternateSecurityIdentification1 .class, BICIdentification1 .class, BeneficiaryCertificationCompletion1Code.class, Charge20 .class, ChargeBearer1Code.class, ChargeType12Code.class, Commission12 .class, CommissionType7Code.class, ContactIdentification2 .class, CopyInformation2 .class, DateAndDateTimeChoice.class, DateFormat1Choice.class, DeliveryParameters4 .class, DistributionPolicy1Code.class, Extension1 .class, FinancialInstrument13 .class, FinancialInstrumentQuantity1 .class, FormOfSecurity1Code.class, GenericIdentification1 .class, IncomePreference1Code.class, Intermediary10 .class, Intermediary11 .class, InvestmentAccount22 .class, InvestmentAccount24 .class, InvestmentFundRole2Code.class, LongPostalAddress1Choice.class, MessageIdentification1 .class, MxSese00100102 .class, NameAndAddress2 .class, NameAndAddress4 .class, NameAndAddress5 .class, NamePrefix1Code.class, PartyIdentification1Choice.class, PartyIdentification21 .class, PartyIdentification2Choice.class, PartyIdentificationAndAccount4 .class, PartyIdentificationAndAccount5 .class, PostalAddress1 .class, PriceMethod1Code.class, PriceValue1 .class, ReceiveInformation3 .class, ReceivingPartiesAndAccount4 .class, RoundingDirection2Code.class, SecurityIdentification3Choice.class, SettlementDate1Code.class, SimpleIdentificationInformation.class, StructuredLongPostalAddress1 .class, SubAccount1 .class, Tax15 .class, TaxType13Code.class, TaxationBasis2Code.class, TaxationBasis4Code.class, Transfer8 .class, TransferOutInstructionV02 .class, TypeOfPrice12Code.class, UKTaxGroupUnitCode.class, Unit3 .class, UnitPrice12 .class };
public static final transient String NAMESPACE = "urn:swift:xsd:sese.001.001.02";
public MxSese00100102() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxSese00100102(final String xml) {
this();
MxSese00100102 tmp = parse(xml);
trfOutInstrV02 = tmp.getTrfOutInstrV02();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxSese00100102(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the trfOutInstrV02 property.
*
* @return
* possible object is
* {@link TransferOutInstructionV02 }
*
*/
public TransferOutInstructionV02 getTrfOutInstrV02() {
return trfOutInstrV02;
}
/**
* Sets the value of the trfOutInstrV02 property.
*
* @param value
* allowed object is
* {@link TransferOutInstructionV02 }
*
*/
public MxSese00100102 setTrfOutInstrV02(TransferOutInstructionV02 value) {
this.trfOutInstrV02 = 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 MxSese00100102 parse(String xml) {
return ((MxSese00100102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxSese00100102 .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 MxSese00100102 parse(String xml, MxReadConfiguration conf) {
return ((MxSese00100102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxSese00100102 .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 MxSese00100102 parse(String xml, MxRead parserImpl) {
return ((MxSese00100102) parserImpl.read(MxSese00100102 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxSese00100102 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 MxSese00100102 message
* @return
* a new instance of MxSese00100102
*/
public static final MxSese00100102 fromJson(String json) {
return com.prowidesoftware.swift.model.mx.AbstractMX.fromJson(json, MxSese00100102 .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);
}
}