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

com.prowidesoftware.swift.model.mt.mt5xx.MT501 Maven / Gradle / Ivy

The newest version!
/* 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library 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
 * Lesser General Public License for more details.
 * 
 */
package com.prowidesoftware.swift.model.mt.mt5xx;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.prowidesoftware.swift.model.*;
import com.prowidesoftware.swift.model.field.*;
import com.prowidesoftware.swift.model.mt.AbstractMT;

/**
 * MT 501

* * * NOTE: this source code has been generated from template * * @author www.prowidesoftware.com */ public class MT501 extends AbstractMT implements Serializable { private static final long serialVersionUID = 1L; private static transient final java.util.logging.Logger log = java.util.logging.Logger.getLogger(MT501.class.getName()); /** * Creates an MT501 initialized with the parameter SwiftMessage * @param m swift message with the MT501 content */ public MT501(SwiftMessage m) { super(m); } /** * Creates an MT501 initialized with a new SwiftMessage */ public MT501() { super(); } /** * Returns this MT number * @return the message type number of this MT * @since 6.4 */ @Override public String getMessageType() { return "501"; } /** * Iterates through block4 fields and return the first one whose name matches 23G, * or null if none is found.
* The first occurrence of field 23G at MT501 is expected to be the only one. * * @return a Field23G object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field23G getField23G() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("23G"); if (t == null) { log.fine("field 23G not found"); return null; } else { return new Field23G(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 98E, * or null if none is found.
* The first occurrence of field 98E at MT501 is expected to be the only one. * * @return a Field98E object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field98E getField98E() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("98E"); if (t == null) { log.fine("field 98E not found"); return null; } else { return new Field98E(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 94B, * or null if none is found.
* The first occurrence of field 94B at MT501 is expected to be the only one. * * @return a Field94B object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field94B getField94B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("94B"); if (t == null) { log.fine("field 94B not found"); return null; } else { return new Field94B(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 11A, * or null if none is found.
* The first occurrence of field 11A at MT501 is expected to be the only one. * * @return a Field11A object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field11A getField11A() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("11A"); if (t == null) { log.fine("field 11A not found"); return null; } else { return new Field11A(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 70E, * or null if none is found.
* The first occurrence of field 70E at MT501 is expected to be the only one. * * @return a Field70E object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field70E getField70E() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("70E"); if (t == null) { log.fine("field 70E not found"); return null; } else { return new Field70E(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 36B, * or null if none is found.
* The first occurrence of field 36B at MT501 is expected to be the only one. * * @return a Field36B object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field36B getField36B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("36B"); if (t == null) { log.fine("field 36B not found"); return null; } else { return new Field36B(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 93B, * or null if none is found.
* The first occurrence of field 93B at MT501 is expected to be the only one. * * @return a Field93B object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field93B getField93B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("93B"); if (t == null) { log.fine("field 93B not found"); return null; } else { return new Field93B(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 95P, * or null if none is found.
* The first occurrence of field 95P at MT501 is expected to be the only one. * * @return a Field95P object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field95P getField95P() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("95P"); if (t == null) { log.fine("field 95P not found"); return null; } else { return new Field95P(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 95R, * or null if none is found.
* The first occurrence of field 95R at MT501 is expected to be the only one. * * @return a Field95R object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field95R getField95R() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("95R"); if (t == null) { log.fine("field 95R not found"); return null; } else { return new Field95R(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 97A, * or null if none is found.
* The first occurrence of field 97A at MT501 is expected to be the only one. * * @return a Field97A object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field97A getField97A() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("97A"); if (t == null) { log.fine("field 97A not found"); return null; } else { return new Field97A(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 95U, * or null if none is found.
* The first occurrence of field 95U at MT501 is expected to be the only one. * * @return a Field95U object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field95U getField95U() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("95U"); if (t == null) { log.fine("field 95U not found"); return null; } else { return new Field95U(t.getValue()); } } } /** * Iterates through block4 fields and return the first one whose name matches 70C, * or null if none is found.
* The first occurrence of field 70C at MT501 is expected to be the only one. * * @return a Field70C object or null if the field is not found * @see SwiftTagListBlock#getTagByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public Field70C getField70C() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return null; } else { final Tag t = getSwiftMessage().getBlock4().getTagByName("70C"); if (t == null) { log.fine("field 70C not found"); return null; } else { return new Field70C(t.getValue()); } } } /** * Iterates through block4 fields and return all occurrences of fields whose names matches 16R, * or Collections.emptyList() if none is found.
* Multiple occurrences of field 16R at MT501 are expected at one sequence or across several sequences. * * @return a List of Field16R objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField16R() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("16R"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList()
if none is found.
* Multiple occurrences of field 22F at MT501 are expected at one sequence or across several sequences. * * @return a List of Field22F objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField22F() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("22F"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 13A at MT501 are expected at one sequence or across several sequences. * * @return a List of Field13A objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField13A() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("13A"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 13B at MT501 are expected at one sequence or across several sequences. * * @return a List of Field13B objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField13B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("13B"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 20C at MT501 are expected at one sequence or across several sequences. * * @return a List of Field20C objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField20C() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("20C"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 16S at MT501 are expected at one sequence or across several sequences. * * @return a List of Field16S objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField16S() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("16S"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 98A at MT501 are expected at one sequence or across several sequences. * * @return a List of Field98A objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField98A() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("98A"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 98C at MT501 are expected at one sequence or across several sequences. * * @return a List of Field98C objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField98C() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("98C"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 17B at MT501 are expected at one sequence or across several sequences. * * @return a List of Field17B objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField17B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("17B"); final List result = new ArrayList(); for (int i=0; iCollections.emptyList() if none is found.
* Multiple occurrences of field 35B at MT501 are expected at one sequence or across several sequences. * * @return a List of Field35B objects or Collections.emptyList() if none is not found * @see SwiftTagListBlock#getTagsByName(String) * @throws IllegalStateException if SwiftMessage object is not initialized */ public List getField35B() { if (getSwiftMessage() == null) { throw new IllegalStateException("SwiftMessage was not initialized"); } if (getSwiftMessage().getBlock4() == null) { log.info("block4 is null"); return Collections.emptyList(); } else { final Tag[] tags = getSwiftMessage().getBlock4().getTagsByName("35B"); final List result = new ArrayList(); for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy