com.tools20022.repository.choice.CodeOrProprietary1Choice 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
/* 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.MMMessageAttribute;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.datatype.Max4Text;
import com.tools20022.repository.entity.AccountRestriction;
import com.tools20022.repository.GeneratedRepository;
import com.tools20022.repository.msg.GenericIdentification13;
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;
/**
* Choice of format between an ISO 20022 code and a proprietary code.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* -
* {@linkplain com.tools20022.repository.choice.CodeOrProprietary1Choice#mmCode
* CodeOrProprietary1Choice.mmCode}
* -
* {@linkplain com.tools20022.repository.choice.CodeOrProprietary1Choice#mmProprietary
* CodeOrProprietary1Choice.mmProprietary}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.AccountRestriction
* AccountRestriction}
* -
* {@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} =
* "CodeOrProprietary1Choice"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Choice of format between an ISO 20022 code and a proprietary code."
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "CodeOrProprietary1Choice", propOrder = {"code", "proprietary"})
public class CodeOrProprietary1Choice {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected Max4Text code;
/**
* Element expressed as an ISO 20022 code from an external list.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max4Text
* Max4Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.AccountRestriction#mmRestrictionType
* AccountRestriction.mmRestrictionType}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.choice.CodeOrProprietary1Choice
* CodeOrProprietary1Choice}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Cd"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Code"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Element expressed as an ISO 20022 code from an external list."
*
*/
public static final MMMessageAttribute mmCode = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> AccountRestriction.mmRestrictionType;
componentContext_lazy = () -> CodeOrProprietary1Choice.mmObject();
isDerived = false;
xmlTag = "Cd";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Code";
definition = "Element expressed as an ISO 20022 code from an external list.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Max4Text.mmObject();
}
};
protected GenericIdentification13 proprietary;
/**
* Element expressed as a proprietary code.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getComplexType
* complexType} =
* {@linkplain com.tools20022.repository.msg.GenericIdentification13
* GenericIdentification13}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.AccountRestriction#mmRestrictionType
* AccountRestriction.mmRestrictionType}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.choice.CodeOrProprietary1Choice
* CodeOrProprietary1Choice}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Prtry"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Proprietary"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Element expressed as a proprietary code."
*
*/
public static final MMMessageAttribute mmProprietary = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> AccountRestriction.mmRestrictionType;
componentContext_lazy = () -> CodeOrProprietary1Choice.mmObject();
isDerived = false;
xmlTag = "Prtry";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Proprietary";
definition = "Element expressed as a proprietary code.";
maxOccurs = 1;
minOccurs = 1;
complexType_lazy = () -> GenericIdentification13.mmObject();
}
};
final static public MMChoiceComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMChoiceComponent() {
{
messageElement_lazy = () -> Arrays.asList(CodeOrProprietary1Choice.mmCode, CodeOrProprietary1Choice.mmProprietary);
trace_lazy = () -> AccountRestriction.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "CodeOrProprietary1Choice";
definition = "Choice of format between an ISO 20022 code and a proprietary code.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Cd", required = true)
public Max4Text getCode() {
return code;
}
public void setCode(Max4Text code) {
this.code = code;
}
@XmlElement(name = "Prtry", required = true)
public GenericIdentification13 getProprietary() {
return proprietary;
}
public void setProprietary(GenericIdentification13 proprietary) {
this.proprietary = proprietary;
}
}