
com.prowidesoftware.swift.model.mt.mt2xx.MT207 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.mt2xx;
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 207
*
*
* NOTE: this source code has been generated from template
*
* @author www.prowidesoftware.com
*/
public class MT207 extends AbstractMT implements Serializable {
private static final long serialVersionUID = 1L;
private static transient final java.util.logging.Logger log = java.util.logging.Logger.getLogger(MT207.class.getName());
/**
* Creates an MT207 initialized with the parameter SwiftMessage
* @param m swift message with the MT207 content
*/
public MT207(SwiftMessage m) {
super(m);
}
/**
* Creates an MT207 initialized with a new SwiftMessage
*/
public MT207() {
super();
}
/**
* Returns this MT number
* @return the message type number of this MT
* @since 6.4
*/
@Override
public String getMessageType() {
return "207";
}
/**
* Iterates through block4 fields and return the first one whose name matches 20,
* or null
if none is found.
* The first occurrence of field 20 at MT207 is expected to be the only one.
*
* @return a Field20 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field20 getField20() {
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("20");
if (t == null) {
log.fine("field 20 not found");
return null;
} else {
return new Field20(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 21R,
* or null
if none is found.
* The first occurrence of field 21R at MT207 is expected to be the only one.
*
* @return a Field21R object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field21R getField21R() {
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("21R");
if (t == null) {
log.fine("field 21R not found");
return null;
} else {
return new Field21R(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 28D,
* or null
if none is found.
* The first occurrence of field 28D at MT207 is expected to be the only one.
*
* @return a Field28D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field28D getField28D() {
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("28D");
if (t == null) {
log.fine("field 28D not found");
return null;
} else {
return new Field28D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 30,
* or null
if none is found.
* The first occurrence of field 30 at MT207 is expected to be the only one.
*
* @return a Field30 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field30 getField30() {
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("30");
if (t == null) {
log.fine("field 30 not found");
return null;
} else {
return new Field30(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 51A,
* or null
if none is found.
* The first occurrence of field 51A at MT207 is expected to be the only one.
*
* @return a Field51A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field51A getField51A() {
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("51A");
if (t == null) {
log.fine("field 51A not found");
return null;
} else {
return new Field51A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 52G,
* or null
if none is found.
* The first occurrence of field 52G at MT207 is expected to be the only one.
*
* @return a Field52G object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field52G getField52G() {
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("52G");
if (t == null) {
log.fine("field 52G not found");
return null;
} else {
return new Field52G(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 52A,
* or null
if none is found.
* The first occurrence of field 52A at MT207 is expected to be the only one.
*
* @return a Field52A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field52A getField52A() {
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("52A");
if (t == null) {
log.fine("field 52A not found");
return null;
} else {
return new Field52A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 52C,
* or null
if none is found.
* The first occurrence of field 52C at MT207 is expected to be the only one.
*
* @return a Field52C object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field52C getField52C() {
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("52C");
if (t == null) {
log.fine("field 52C not found");
return null;
} else {
return new Field52C(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 72,
* or null
if none is found.
* The first occurrence of field 72 at MT207 is expected to be the only one.
*
* @return a Field72 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field72 getField72() {
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("72");
if (t == null) {
log.fine("field 72 not found");
return null;
} else {
return new Field72(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 21,
* or null
if none is found.
* The first occurrence of field 21 at MT207 is expected to be the only one.
*
* @return a Field21 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field21 getField21() {
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("21");
if (t == null) {
log.fine("field 21 not found");
return null;
} else {
return new Field21(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 32B,
* or null
if none is found.
* The first occurrence of field 32B at MT207 is expected to be the only one.
*
* @return a Field32B object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field32B getField32B() {
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("32B");
if (t == null) {
log.fine("field 32B not found");
return null;
} else {
return new Field32B(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 56A,
* or null
if none is found.
* The first occurrence of field 56A at MT207 is expected to be the only one.
*
* @return a Field56A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field56A getField56A() {
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("56A");
if (t == null) {
log.fine("field 56A not found");
return null;
} else {
return new Field56A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 56D,
* or null
if none is found.
* The first occurrence of field 56D at MT207 is expected to be the only one.
*
* @return a Field56D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field56D getField56D() {
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("56D");
if (t == null) {
log.fine("field 56D not found");
return null;
} else {
return new Field56D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 57A,
* or null
if none is found.
* The first occurrence of field 57A at MT207 is expected to be the only one.
*
* @return a Field57A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field57A getField57A() {
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("57A");
if (t == null) {
log.fine("field 57A not found");
return null;
} else {
return new Field57A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 57C,
* or null
if none is found.
* The first occurrence of field 57C at MT207 is expected to be the only one.
*
* @return a Field57C object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field57C getField57C() {
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("57C");
if (t == null) {
log.fine("field 57C not found");
return null;
} else {
return new Field57C(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 57D,
* or null
if none is found.
* The first occurrence of field 57D at MT207 is expected to be the only one.
*
* @return a Field57D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field57D getField57D() {
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("57D");
if (t == null) {
log.fine("field 57D not found");
return null;
} else {
return new Field57D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 58A,
* or null
if none is found.
* The first occurrence of field 58A at MT207 is expected to be the only one.
*
* @return a Field58A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field58A getField58A() {
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("58A");
if (t == null) {
log.fine("field 58A not found");
return null;
} else {
return new Field58A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 58D,
* or null
if none is found.
* The first occurrence of field 58D at MT207 is expected to be the only one.
*
* @return a Field58D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field58D getField58D() {
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("58D");
if (t == null) {
log.fine("field 58D not found");
return null;
} else {
return new Field58D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return all occurrences of fields whose names matches 23E,
* or Collections.emptyList()
if none is found.
* Multiple occurrences of field 23E at MT207 are expected at one sequence or across several sequences.
*
* @return a List of Field23E objects or Collections.emptyList()
if none is not found
* @see SwiftTagListBlock#getTagsByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public List getField23E() {
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("23E");
final List result = new ArrayList();
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy