com.prowidesoftware.swift.model.mx.MxTrea00200101 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pw-iso20022 Show documentation
Show all versions of pw-iso20022 Show documentation
Prowide Library for ISO 20022 messages
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import com.prowidesoftware.swift.model.mx.MxRead;
import com.prowidesoftware.swift.model.mx.MxReadImpl;
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 trea.002.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"trea00200101"
})
@XmlRootElement(name = "Document", namespace = "urn:swift:xsd:trea.002.001.01")
public class MxTrea00200101
extends AbstractMX
{
@XmlElement(name = "trea.002.001.01", required = true)
protected Trea00200101 trea00200101;
public final static transient String BUSINESS_PROCESS = "trea";
public final static transient int FUNCTIONALITY = 2;
public final static transient int VARIANT = 1;
public final static transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public final static transient Class[] _classes = new Class[] {ActiveOrHistoricCurrencyAndAmount.class, AddressType2Code.class, AgreedRate1 .class, AmountsAndValueDate1 .class, FundIdentification1 .class, MxTrea00200101 .class, NameAndAddress5 .class, NonDeliverableForwardValuationConditions1 .class, PartyIdentification7Choice.class, PostalAddress1 .class, TradeAgreement2 .class, TradePartyIdentification1 .class, Trea00200101 .class };
public final static transient String NAMESPACE = "urn:swift:xsd:trea.002.001.01";
public MxTrea00200101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxTrea00200101(final String xml) {
this();
MxTrea00200101 tmp = parse(xml);
trea00200101 = tmp.getTrea00200101();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxTrea00200101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the trea00200101 property.
*
* @return
* possible object is
* {@link Trea00200101 }
*
*/
public Trea00200101 getTrea00200101() {
return trea00200101;
}
/**
* Sets the value of the trea00200101 property.
*
* @param value
* allowed object is
* {@link Trea00200101 }
*
*/
public MxTrea00200101 setTrea00200101(Trea00200101 value) {
this.trea00200101 = value;
return this;
}
@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);
}
@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
*
*/
public static MxTrea00200101 parse(String xml) {
return ((MxTrea00200101) MxReadImpl.parse(MxTrea00200101 .class, xml, _classes));
}
/**
* 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 MxTrea00200101 parse(String xml, MxRead parserImpl) {
return ((MxTrea00200101) parserImpl.read(MxTrea00200101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxTrea00200101 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 MxTrea00200101 message
* @return
* a new instance of MxTrea00200101
*/
public final static MxTrea00200101 fromJson(String json) {
return AbstractMX.fromJson(json, MxTrea00200101 .class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy