All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tools20022.repository.codeset.BlockedReasonCode Maven / Gradle / Ivy

There is a newer version: 0.1.2
Show 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.codeset;

import com.tools20022.metamodel.MMCode;
import com.tools20022.metamodel.MMCodeSet;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.codeset.BlockedReasonCode.InternalXmlAdapter;
import com.tools20022.repository.GeneratedRepository;
import java.lang.String;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import java.util.LinkedHashMap;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * Specifies the reason an account is blocked.
 * 

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCodeSet#getCode code} = *
      *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Commitment * BlockedReasonCode.mmCommitment}
    • *
    • {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Pledged * BlockedReasonCode.mmPledged}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Confiscation * BlockedReasonCode.mmConfiscation}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Bankruptcy * BlockedReasonCode.mmBankruptcy}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#MortisCausa * BlockedReasonCode.mmMortisCausa}
    • *
    • {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Transfer * BlockedReasonCode.mmTransfer}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Reregistration * BlockedReasonCode.mmReregistration}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Sanctions * BlockedReasonCode.mmSanctions}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#PendingComplianceVerification * BlockedReasonCode.mmPendingComplianceVerification}
    • *
    • * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#AccountClosingInProcess * BlockedReasonCode.mmAccountClosingInProcess}
    • *
    • {@linkplain com.tools20022.repository.codeset.BlockedReasonCode#Rejected * BlockedReasonCode.mmRejected}
    • *
    *
  • *
  • * {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary * dataDictionary} = * {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict * GeneratedRepository.mmdataDict}
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getExample * example} = *
      *
    • "CMMT"
    • *
    *
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} = * "BlockedReasonCode"
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Specifies the reason an account is blocked."
  • *
*/ @XmlJavaTypeAdapter(InternalXmlAdapter.class) public class BlockedReasonCode extends MMCode { final static private AtomicReference mmObject_lazy = new AtomicReference<>(); /** * Commitment. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "CMMT"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Commitment"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Commitment."
  • *
*/ public static final BlockedReasonCode Commitment = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Commitment"; definition = "Commitment."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "CMMT"; } }; /** * Pledged. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "PLDG"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Pledged"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Pledged."
  • *
*/ public static final BlockedReasonCode Pledged = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Pledged"; definition = "Pledged."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "PLDG"; } }; /** * Confiscation. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "CNFS"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Confiscation"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Confiscation."
  • *
*/ public static final BlockedReasonCode Confiscation = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Confiscation"; definition = "Confiscation."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "CNFS"; } }; /** * Bankruptcy. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "BKRP"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Bankruptcy"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Bankruptcy."
  • *
*/ public static final BlockedReasonCode Bankruptcy = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Bankruptcy"; definition = "Bankruptcy."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "BKRP"; } }; /** * Reserved in contemplation of death. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "MORT"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "MortisCausa"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Reserved in contemplation of death."
  • *
*/ public static final BlockedReasonCode MortisCausa = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "MortisCausa"; definition = "Reserved in contemplation of death."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "MORT"; } }; /** * Transfer. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "TRAN"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Transfer"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Transfer."
  • *
*/ public static final BlockedReasonCode Transfer = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Transfer"; definition = "Transfer."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "TRAN"; } }; /** * Reregistration. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "TRPE"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Reregistration"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Reregistration."
  • *
*/ public static final BlockedReasonCode Reregistration = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Reregistration"; definition = "Reregistration."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "TRPE"; } }; /** * Sanctions are in place. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "SANC"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Sanctions"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Sanctions are in place."
  • *
*/ public static final BlockedReasonCode Sanctions = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Sanctions"; definition = "Sanctions are in place."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "SANC"; } }; /** * Pending compliance verification. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "PCOM"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "PendingComplianceVerification"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Pending compliance verification."
  • *
*/ public static final BlockedReasonCode PendingComplianceVerification = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "PendingComplianceVerification"; definition = "Pending compliance verification."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "PCOM"; } }; /** * Account closing is in process. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "CLOS"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "AccountClosingInProcess"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Account closing is in process."
  • *
*/ public static final BlockedReasonCode AccountClosingInProcess = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "AccountClosingInProcess"; definition = "Account closing is in process."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "CLOS"; } }; /** * Account was pending opening but is now rejected. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.BlockedReasonCode * BlockedReasonCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "REJT"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Rejected"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Account was pending opening but is now rejected."
  • *
*/ public static final BlockedReasonCode Rejected = new BlockedReasonCode() { { registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED; name = "Rejected"; definition = "Account was pending opening but is now rejected."; owner_lazy = () -> com.tools20022.repository.codeset.BlockedReasonCode.mmObject(); codeName = "REJT"; } }; final static private LinkedHashMap codesByName = new LinkedHashMap<>(); protected BlockedReasonCode() { } final static public MMCodeSet mmObject() { mmObject_lazy.compareAndSet(null, new MMCodeSet() { { dataDictionary_lazy = () -> GeneratedRepository.mmdataDict; example = Arrays.asList("CMMT"); registrationStatus = MMRegistrationStatus.REGISTERED; name = "BlockedReasonCode"; definition = "Specifies the reason an account is blocked."; code_lazy = () -> Arrays.asList(com.tools20022.repository.codeset.BlockedReasonCode.Commitment, com.tools20022.repository.codeset.BlockedReasonCode.Pledged, com.tools20022.repository.codeset.BlockedReasonCode.Confiscation, com.tools20022.repository.codeset.BlockedReasonCode.Bankruptcy, com.tools20022.repository.codeset.BlockedReasonCode.MortisCausa, com.tools20022.repository.codeset.BlockedReasonCode.Transfer, com.tools20022.repository.codeset.BlockedReasonCode.Reregistration, com.tools20022.repository.codeset.BlockedReasonCode.Sanctions, com.tools20022.repository.codeset.BlockedReasonCode.PendingComplianceVerification, com.tools20022.repository.codeset.BlockedReasonCode.AccountClosingInProcess, com.tools20022.repository.codeset.BlockedReasonCode.Rejected); } }); return mmObject_lazy.get(); } static { codesByName.put(Commitment.getCodeName().get(), Commitment); codesByName.put(Pledged.getCodeName().get(), Pledged); codesByName.put(Confiscation.getCodeName().get(), Confiscation); codesByName.put(Bankruptcy.getCodeName().get(), Bankruptcy); codesByName.put(MortisCausa.getCodeName().get(), MortisCausa); codesByName.put(Transfer.getCodeName().get(), Transfer); codesByName.put(Reregistration.getCodeName().get(), Reregistration); codesByName.put(Sanctions.getCodeName().get(), Sanctions); codesByName.put(PendingComplianceVerification.getCodeName().get(), PendingComplianceVerification); codesByName.put(AccountClosingInProcess.getCodeName().get(), AccountClosingInProcess); codesByName.put(Rejected.getCodeName().get(), Rejected); } public static BlockedReasonCode valueOf(String codeName) { return codesByName.get(codeName); } public static BlockedReasonCode[] values() { BlockedReasonCode[] values = new BlockedReasonCode[codesByName.size()]; return codesByName.values().toArray(values); } protected static class InternalXmlAdapter extends XmlAdapter { @Override public BlockedReasonCode unmarshal(String codeName) { return valueOf(codeName); } @Override public String marshal(BlockedReasonCode codeObj) { return codeObj.getCodeName().orElse(null); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy