com.tools20022.repository.msg.OriginalMessage3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools20022-api-payments Show documentation
Show all versions of tools20022-api-payments Show documentation
Java API for ISO 20022 - Payments business domain
The newest version!
/* Tools20022 - API for ISO 20022
* Copyright (C) 2017 Tools20022.com - László Bukodi
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.tools20022.repository.msg;
import com.tools20022.metamodel.MMMessageAssociationEnd;
import com.tools20022.metamodel.MMMessageAttribute;
import com.tools20022.metamodel.MMMessageComponent;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.choice.Party28Choice;
import com.tools20022.repository.datatype.ISODateTime;
import com.tools20022.repository.datatype.Max35Text;
import com.tools20022.repository.entity.InitiatingPartyRole;
import com.tools20022.repository.entity.Payment;
import com.tools20022.repository.entity.PaymentExecution;
import com.tools20022.repository.entity.PaymentIdentification;
import com.tools20022.repository.GeneratedRepository;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Unique and unambiguous identification of the original message references.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* -
* {@linkplain com.tools20022.repository.msg.OriginalMessage3#mmOriginalSender
* OriginalMessage3.mmOriginalSender}
* -
* {@linkplain com.tools20022.repository.msg.OriginalMessage3#mmOriginalMessageIdentification
* OriginalMessage3.mmOriginalMessageIdentification}
* -
* {@linkplain com.tools20022.repository.msg.OriginalMessage3#mmOriginalMessageNameIdentification
* OriginalMessage3.mmOriginalMessageNameIdentification}
* -
* {@linkplain com.tools20022.repository.msg.OriginalMessage3#mmOriginalCreationDateTime
* OriginalMessage3.mmOriginalCreationDateTime}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.Payment Payment}
* -
* {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary
* dataDictionary} =
* {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict
* GeneratedRepository.mmdataDict}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} =
* "OriginalMessage3"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Unique and unambiguous identification of the original message references."
* - {@linkplain com.tools20022.metamodel.MMModelEntity#getPreviousVersion
* previousVersion} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage2 OriginalMessage2}
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "OriginalMessage3", propOrder = {"originalSender", "originalMessageIdentification", "originalMessageNameIdentification", "originalCreationDateTime"})
public class OriginalMessage3 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected Party28Choice originalSender;
/**
* Original message sender used to identify the message.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} = {@linkplain com.tools20022.repository.choice.Party28Choice
* Party28Choice}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessComponentTrace
* businessComponentTrace} =
* {@linkplain com.tools20022.repository.entity.InitiatingPartyRole
* InitiatingPartyRole}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage3
* OriginalMessage3}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "OrgnlSndr"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "OriginalSender"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Original message sender used to identify the message. "
* -
* {@linkplain com.tools20022.metamodel.MMModelEntity#getPreviousVersion
* previousVersion} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage2#mmOriginalSender
* OriginalMessage2.mmOriginalSender}
*
*/
public static final MMMessageAssociationEnd mmOriginalSender = new MMMessageAssociationEnd() {
{
businessComponentTrace_lazy = () -> InitiatingPartyRole.mmObject();
componentContext_lazy = () -> OriginalMessage3.mmObject();
isDerived = false;
xmlTag = "OrgnlSndr";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "OriginalSender";
definition = "Original message sender used to identify the message. ";
previousVersion_lazy = () -> OriginalMessage2.mmOriginalSender;
maxOccurs = 1;
minOccurs = 0;
isComposite = true;
type_lazy = () -> Party28Choice.mmObject();
}
};
protected Max35Text originalMessageIdentification;
/**
* Point to point reference assigned by the original instructing party to
* unambiguously identify the original group of individual transactions.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max35Text
* Max35Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.PaymentIdentification#mmExecutionIdentification
* PaymentIdentification.mmExecutionIdentification}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage3
* OriginalMessage3}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "OrgnlMsgId"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "OriginalMessageIdentification"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Point to point reference assigned by the original instructing party to unambiguously identify the original group of individual transactions."
*
* -
* {@linkplain com.tools20022.metamodel.MMModelEntity#getPreviousVersion
* previousVersion} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage2#mmOriginalMessageIdentification
* OriginalMessage2.mmOriginalMessageIdentification}
*
*/
public static final MMMessageAttribute mmOriginalMessageIdentification = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> PaymentIdentification.mmExecutionIdentification;
componentContext_lazy = () -> OriginalMessage3.mmObject();
isDerived = false;
xmlTag = "OrgnlMsgId";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "OriginalMessageIdentification";
definition = "Point to point reference assigned by the original instructing party to unambiguously identify the original group of individual transactions.";
previousVersion_lazy = () -> OriginalMessage2.mmOriginalMessageIdentification;
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Max35Text.mmObject();
}
};
protected Max35Text originalMessageNameIdentification;
/**
* Specifies the original message name identifier to which the message
* refers, such as pacs.003.001.01 or MT103.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max35Text
* Max35Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage3
* OriginalMessage3}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "OrgnlMsgNmId"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "OriginalMessageNameIdentification"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Specifies the original message name identifier to which the message refers, such as pacs.003.001.01 or MT103."
*
* -
* {@linkplain com.tools20022.metamodel.MMModelEntity#getPreviousVersion
* previousVersion} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage2#mmOriginalMessageNameIdentification
* OriginalMessage2.mmOriginalMessageNameIdentification}
*
*/
public static final MMMessageAttribute mmOriginalMessageNameIdentification = new MMMessageAttribute() {
{
componentContext_lazy = () -> OriginalMessage3.mmObject();
isDerived = false;
xmlTag = "OrgnlMsgNmId";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "OriginalMessageNameIdentification";
definition = "Specifies the original message name identifier to which the message refers, such as pacs.003.001.01 or MT103.";
previousVersion_lazy = () -> OriginalMessage2.mmOriginalMessageNameIdentification;
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Max35Text.mmObject();
}
};
protected ISODateTime originalCreationDateTime;
/**
* Original date and time at which the message was created.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.ISODateTime
* ISODateTime}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.PaymentExecution#mmCreationDate
* PaymentExecution.mmCreationDate}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage3
* OriginalMessage3}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "OrgnlCreDtTm"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "OriginalCreationDateTime"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Original date and time at which the message was created."
* -
* {@linkplain com.tools20022.metamodel.MMModelEntity#getPreviousVersion
* previousVersion} =
* {@linkplain com.tools20022.repository.msg.OriginalMessage2#mmOriginalCreationDateTime
* OriginalMessage2.mmOriginalCreationDateTime}
*
*/
public static final MMMessageAttribute mmOriginalCreationDateTime = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> PaymentExecution.mmCreationDate;
componentContext_lazy = () -> OriginalMessage3.mmObject();
isDerived = false;
xmlTag = "OrgnlCreDtTm";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "OriginalCreationDateTime";
definition = "Original date and time at which the message was created.";
previousVersion_lazy = () -> OriginalMessage2.mmOriginalCreationDateTime;
maxOccurs = 1;
minOccurs = 0;
simpleType_lazy = () -> ISODateTime.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(OriginalMessage3.mmOriginalSender, OriginalMessage3.mmOriginalMessageIdentification, OriginalMessage3.mmOriginalMessageNameIdentification,
OriginalMessage3.mmOriginalCreationDateTime);
trace_lazy = () -> Payment.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "OriginalMessage3";
definition = "Unique and unambiguous identification of the original message references.";
previousVersion_lazy = () -> OriginalMessage2.mmObject();
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "OrgnlSndr")
public Party28Choice getOriginalSender() {
return originalSender;
}
public void setOriginalSender(Party28Choice originalSender) {
this.originalSender = originalSender;
}
@XmlElement(name = "OrgnlMsgId", required = true)
public Max35Text getOriginalMessageIdentification() {
return originalMessageIdentification;
}
public void setOriginalMessageIdentification(Max35Text originalMessageIdentification) {
this.originalMessageIdentification = originalMessageIdentification;
}
@XmlElement(name = "OrgnlMsgNmId", required = true)
public Max35Text getOriginalMessageNameIdentification() {
return originalMessageNameIdentification;
}
public void setOriginalMessageNameIdentification(Max35Text originalMessageNameIdentification) {
this.originalMessageNameIdentification = originalMessageNameIdentification;
}
@XmlElement(name = "OrgnlCreDtTm")
public ISODateTime getOriginalCreationDateTime() {
return originalCreationDateTime;
}
public void setOriginalCreationDateTime(ISODateTime originalCreationDateTime) {
this.originalCreationDateTime = originalCreationDateTime;
}
}