com.tools20022.repository.choice.Party12Choice 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.choice;
import com.tools20022.metamodel.MMChoiceComponent;
import com.tools20022.metamodel.MMMessageAssociationEnd;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.entity.FinancialInstitution;
import com.tools20022.repository.entity.PartyIdentificationInformation;
import com.tools20022.repository.GeneratedRepository;
import com.tools20022.repository.msg.BranchAndFinancialInstitutionIdentification5;
import com.tools20022.repository.msg.PartyIdentification43;
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;
/**
* Identification of a person, an organisation or a financial institution.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.choice.Party12Choice#mmParty
* Party12Choice.mmParty}
* - {@linkplain com.tools20022.repository.choice.Party12Choice#mmAgent
* Party12Choice.mmAgent}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} =
* {@linkplain com.tools20022.repository.entity.PartyIdentificationInformation
* PartyIdentificationInformation}
* -
* {@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} =
* "Party12Choice"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Identification of a person, an organisation or a financial institution."
* - {@linkplain com.tools20022.metamodel.MMModelEntity#getNextVersions
* nextVersions} =
*
* - {@linkplain com.tools20022.repository.choice.Party28Choice Party28Choice}
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "Party12Choice", propOrder = {"party", "agent"})
public class Party12Choice {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected PartyIdentification43 party;
/**
* Identification of a person or an organisation.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} = {@linkplain com.tools20022.repository.msg.PartyIdentification43
* PartyIdentification43}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessComponentTrace
* businessComponentTrace} =
* {@linkplain com.tools20022.repository.entity.PartyIdentificationInformation
* PartyIdentificationInformation}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.choice.Party12Choice Party12Choice}
*
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Pty"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Party"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Identification of a person or an organisation."
* - {@linkplain com.tools20022.metamodel.MMModelEntity#getNextVersions
* nextVersions} =
*
* - {@linkplain com.tools20022.repository.choice.Party28Choice#mmParty
* Party28Choice.mmParty}
*
*
*
*/
public static final MMMessageAssociationEnd mmParty = new MMMessageAssociationEnd() {
{
businessComponentTrace_lazy = () -> PartyIdentificationInformation.mmObject();
componentContext_lazy = () -> Party12Choice.mmObject();
isDerived = false;
xmlTag = "Pty";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Party";
definition = "Identification of a person or an organisation.";
nextVersions_lazy = () -> Arrays.asList(Party28Choice.mmParty);
maxOccurs = 1;
minOccurs = 1;
isComposite = true;
type_lazy = () -> PartyIdentification43.mmObject();
}
};
protected BranchAndFinancialInstitutionIdentification5 agent;
/**
* Identification of a financial institution.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} =
* {@linkplain com.tools20022.repository.msg.BranchAndFinancialInstitutionIdentification5
* BranchAndFinancialInstitutionIdentification5}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessComponentTrace
* businessComponentTrace} =
* {@linkplain com.tools20022.repository.entity.FinancialInstitution
* FinancialInstitution}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.choice.Party12Choice Party12Choice}
*
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Agt"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Agent"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Identification of a financial institution."
* - {@linkplain com.tools20022.metamodel.MMModelEntity#getNextVersions
* nextVersions} =
*
* - {@linkplain com.tools20022.repository.choice.Party28Choice#mmAgent
* Party28Choice.mmAgent}
*
*
*
*/
public static final MMMessageAssociationEnd mmAgent = new MMMessageAssociationEnd() {
{
businessComponentTrace_lazy = () -> FinancialInstitution.mmObject();
componentContext_lazy = () -> Party12Choice.mmObject();
isDerived = false;
xmlTag = "Agt";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Agent";
definition = "Identification of a financial institution.";
nextVersions_lazy = () -> Arrays.asList(Party28Choice.mmAgent);
maxOccurs = 1;
minOccurs = 1;
isComposite = true;
type_lazy = () -> BranchAndFinancialInstitutionIdentification5.mmObject();
}
};
final static public MMChoiceComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMChoiceComponent() {
{
messageElement_lazy = () -> Arrays.asList(Party12Choice.mmParty, Party12Choice.mmAgent);
trace_lazy = () -> PartyIdentificationInformation.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "Party12Choice";
definition = "Identification of a person, an organisation or a financial institution.";
nextVersions_lazy = () -> Arrays.asList(Party28Choice.mmObject());
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Pty", required = true)
public PartyIdentification43 getParty() {
return party;
}
public void setParty(PartyIdentification43 party) {
this.party = party;
}
@XmlElement(name = "Agt", required = true)
public BranchAndFinancialInstitutionIdentification5 getAgent() {
return agent;
}
public void setAgent(BranchAndFinancialInstitutionIdentification5 agent) {
this.agent = agent;
}
}