com.prowidesoftware.swift.model.mt.mt7xx.MT740 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wife Show documentation
Show all versions of wife Show documentation
Prowide Core Libraries for SWIFT (TM) messages
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.mt7xx;
import java.io.Serializable;
import com.prowidesoftware.swift.model.*;
import com.prowidesoftware.swift.model.field.*;
import com.prowidesoftware.swift.model.mt.AbstractMT;
/**
* MT 740
*
*
* NOTE: this source code has been generated from template
*
* @author www.prowidesoftware.com
*/
public class MT740 extends AbstractMT implements Serializable {
private static final long serialVersionUID = 1L;
private static transient final java.util.logging.Logger log = java.util.logging.Logger.getLogger(MT740.class.getName());
/**
* Creates an MT740 initialized with the parameter SwiftMessage
* @param m swift message with the MT740 content
*/
public MT740(SwiftMessage m) {
super(m);
}
/**
* Creates an MT740 initialized with a new SwiftMessage
*/
public MT740() {
super();
}
/**
* Returns this MT number
* @return the message type number of this MT
* @since 6.4
*/
@Override
public String getMessageType() {
return "740";
}
/**
* 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 MT740 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 25,
* or null
if none is found.
* The first occurrence of field 25 at MT740 is expected to be the only one.
*
* @return a Field25 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field25 getField25() {
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("25");
if (t == null) {
log.fine("field 25 not found");
return null;
} else {
return new Field25(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 40F,
* or null
if none is found.
* The first occurrence of field 40F at MT740 is expected to be the only one.
*
* @return a Field40F object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field40F getField40F() {
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("40F");
if (t == null) {
log.fine("field 40F not found");
return null;
} else {
return new Field40F(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 31D,
* or null
if none is found.
* The first occurrence of field 31D at MT740 is expected to be the only one.
*
* @return a Field31D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field31D getField31D() {
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("31D");
if (t == null) {
log.fine("field 31D not found");
return null;
} else {
return new Field31D(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 MT740 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 MT740 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 the first one whose name matches 59,
* or null
if none is found.
* The first occurrence of field 59 at MT740 is expected to be the only one.
*
* @return a Field59 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field59 getField59() {
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("59");
if (t == null) {
log.fine("field 59 not found");
return null;
} else {
return new Field59(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 MT740 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 39A,
* or null
if none is found.
* The first occurrence of field 39A at MT740 is expected to be the only one.
*
* @return a Field39A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field39A getField39A() {
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("39A");
if (t == null) {
log.fine("field 39A not found");
return null;
} else {
return new Field39A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 39B,
* or null
if none is found.
* The first occurrence of field 39B at MT740 is expected to be the only one.
*
* @return a Field39B object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field39B getField39B() {
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("39B");
if (t == null) {
log.fine("field 39B not found");
return null;
} else {
return new Field39B(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 39C,
* or null
if none is found.
* The first occurrence of field 39C at MT740 is expected to be the only one.
*
* @return a Field39C object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field39C getField39C() {
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("39C");
if (t == null) {
log.fine("field 39C not found");
return null;
} else {
return new Field39C(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 41A,
* or null
if none is found.
* The first occurrence of field 41A at MT740 is expected to be the only one.
*
* @return a Field41A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field41A getField41A() {
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("41A");
if (t == null) {
log.fine("field 41A not found");
return null;
} else {
return new Field41A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 41D,
* or null
if none is found.
* The first occurrence of field 41D at MT740 is expected to be the only one.
*
* @return a Field41D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field41D getField41D() {
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("41D");
if (t == null) {
log.fine("field 41D not found");
return null;
} else {
return new Field41D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 42C,
* or null
if none is found.
* The first occurrence of field 42C at MT740 is expected to be the only one.
*
* @return a Field42C object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field42C getField42C() {
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("42C");
if (t == null) {
log.fine("field 42C not found");
return null;
} else {
return new Field42C(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 42A,
* or null
if none is found.
* The first occurrence of field 42A at MT740 is expected to be the only one.
*
* @return a Field42A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field42A getField42A() {
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("42A");
if (t == null) {
log.fine("field 42A not found");
return null;
} else {
return new Field42A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 42D,
* or null
if none is found.
* The first occurrence of field 42D at MT740 is expected to be the only one.
*
* @return a Field42D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field42D getField42D() {
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("42D");
if (t == null) {
log.fine("field 42D not found");
return null;
} else {
return new Field42D(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 42M,
* or null
if none is found.
* The first occurrence of field 42M at MT740 is expected to be the only one.
*
* @return a Field42M object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field42M getField42M() {
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("42M");
if (t == null) {
log.fine("field 42M not found");
return null;
} else {
return new Field42M(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 42P,
* or null
if none is found.
* The first occurrence of field 42P at MT740 is expected to be the only one.
*
* @return a Field42P object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field42P getField42P() {
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("42P");
if (t == null) {
log.fine("field 42P not found");
return null;
} else {
return new Field42P(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 71A,
* or null
if none is found.
* The first occurrence of field 71A at MT740 is expected to be the only one.
*
* @return a Field71A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field71A getField71A() {
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("71A");
if (t == null) {
log.fine("field 71A not found");
return null;
} else {
return new Field71A(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 71B,
* or null
if none is found.
* The first occurrence of field 71B at MT740 is expected to be the only one.
*
* @return a Field71B object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field71B getField71B() {
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("71B");
if (t == null) {
log.fine("field 71B not found");
return null;
} else {
return new Field71B(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 MT740 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());
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy