com.tools20022.repository.msg.AcceptanceResult6 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.MandateReason1Choice;
import com.tools20022.repository.datatype.Max105Text;
import com.tools20022.repository.datatype.YesNoIndicator;
import com.tools20022.repository.entity.MandateStatus;
import com.tools20022.repository.entity.StatusReason;
import com.tools20022.repository.GeneratedRepository;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Set of elements used to provide detailed information on the acceptance
* result.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.msg.AcceptanceResult6#mmAccepted
* AcceptanceResult6.mmAccepted}
* -
* {@linkplain com.tools20022.repository.msg.AcceptanceResult6#mmRejectReason
* AcceptanceResult6.mmRejectReason}
* -
* {@linkplain com.tools20022.repository.msg.AcceptanceResult6#mmAdditionalRejectReasonInformation
* AcceptanceResult6.mmAdditionalRejectReasonInformation}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.MandateStatus
* MandateStatus}
* -
* {@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} =
* "AcceptanceResult6"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Set of elements used to provide detailed information on the acceptance result."
*
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "AcceptanceResult6", propOrder = {"accepted", "rejectReason", "additionalRejectReasonInformation"})
public class AcceptanceResult6 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected YesNoIndicator accepted;
/**
* Indicates whether the mandate request was accepted or rejected.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.datatype.YesNoIndicator
* YesNoIndicator}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.MandateStatus#mmAccepted
* MandateStatus.mmAccepted}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.AcceptanceResult6
* AcceptanceResult6}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Accptd"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Accepted"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Indicates whether the mandate request was accepted or rejected."
*
*/
public static final MMMessageAttribute mmAccepted = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> MandateStatus.mmAccepted;
componentContext_lazy = () -> AcceptanceResult6.mmObject();
isDerived = false;
xmlTag = "Accptd";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Accepted";
definition = "Indicates whether the mandate request was accepted or rejected.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> YesNoIndicator.mmObject();
}
};
protected MandateReason1Choice rejectReason;
/**
* Specifies the reason for the rejection of a mandate request.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} =
* {@linkplain com.tools20022.repository.choice.MandateReason1Choice
* MandateReason1Choice}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.MandateStatus#mmRejectReason
* MandateStatus.mmRejectReason}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.AcceptanceResult6
* AcceptanceResult6}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "RjctRsn"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "RejectReason"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Specifies the reason for the rejection of a mandate request."
*
*/
public static final MMMessageAssociationEnd mmRejectReason = new MMMessageAssociationEnd() {
{
businessElementTrace_lazy = () -> MandateStatus.mmRejectReason;
componentContext_lazy = () -> AcceptanceResult6.mmObject();
isDerived = false;
xmlTag = "RjctRsn";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "RejectReason";
definition = "Specifies the reason for the rejection of a mandate request.";
maxOccurs = 1;
minOccurs = 0;
isComposite = true;
type_lazy = () -> MandateReason1Choice.mmObject();
}
};
protected List additionalRejectReasonInformation;
/**
* Further details on the reject reason.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max105Text
* Max105Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.StatusReason#mmReason
* StatusReason.mmReason}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.AcceptanceResult6
* AcceptanceResult6}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "AddtlRjctRsnInf"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "AdditionalRejectReasonInformation"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Further details on the reject reason."
*
*/
public static final MMMessageAttribute mmAdditionalRejectReasonInformation = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> StatusReason.mmReason;
componentContext_lazy = () -> AcceptanceResult6.mmObject();
isDerived = false;
xmlTag = "AddtlRjctRsnInf";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "AdditionalRejectReasonInformation";
definition = "Further details on the reject reason.";
minOccurs = 0;
simpleType_lazy = () -> Max105Text.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(AcceptanceResult6.mmAccepted, AcceptanceResult6.mmRejectReason, AcceptanceResult6.mmAdditionalRejectReasonInformation);
trace_lazy = () -> MandateStatus.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "AcceptanceResult6";
definition = "Set of elements used to provide detailed information on the acceptance result.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Accptd", required = true)
public YesNoIndicator getAccepted() {
return accepted;
}
public void setAccepted(YesNoIndicator accepted) {
this.accepted = accepted;
}
@XmlElement(name = "RjctRsn")
public MandateReason1Choice getRejectReason() {
return rejectReason;
}
public void setRejectReason(MandateReason1Choice rejectReason) {
this.rejectReason = rejectReason;
}
@XmlElement(name = "AddtlRjctRsnInf")
public List getAdditionalRejectReasonInformation() {
return additionalRejectReasonInformation;
}
public void setAdditionalRejectReasonInformation(List additionalRejectReasonInformation) {
this.additionalRejectReasonInformation = additionalRejectReasonInformation;
}
}