com.prowidesoftware.swift.model.mt.mt1xx.MT112 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.mt1xx;
import java.io.Serializable;
import com.prowidesoftware.swift.model.*;
import com.prowidesoftware.swift.model.field.*;
import com.prowidesoftware.swift.model.mt.AbstractMT;
/**
* MT 112
*
*
* NOTE: this source code has been generated from template
*
* @author www.prowidesoftware.com
*/
public class MT112 extends AbstractMT implements Serializable {
private static final long serialVersionUID = 1L;
private static transient final java.util.logging.Logger log = java.util.logging.Logger.getLogger(MT112.class.getName());
/**
* Creates an MT112 initialized with the parameter SwiftMessage
* @param m swift message with the MT112 content
*/
public MT112(SwiftMessage m) {
super(m);
}
/**
* Creates an MT112 initialized with a new SwiftMessage
*/
public MT112() {
super();
}
/**
* Returns this MT number
* @return the message type number of this MT
* @since 6.4
*/
@Override
public String getMessageType() {
return "112";
}
/**
* 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 MT112 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 21,
* or null
if none is found.
* The first occurrence of field 21 at MT112 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 30,
* or null
if none is found.
* The first occurrence of field 30 at MT112 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 32A,
* or null
if none is found.
* The first occurrence of field 32A at MT112 is expected to be the only one.
*
* @return a Field32A object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field32A getField32A() {
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("32A");
if (t == null) {
log.fine("field 32A not found");
return null;
} else {
return new Field32A(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 MT112 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 52A,
* or null
if none is found.
* The first occurrence of field 52A at MT112 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 52B,
* or null
if none is found.
* The first occurrence of field 52B at MT112 is expected to be the only one.
*
* @return a Field52B object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field52B getField52B() {
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("52B");
if (t == null) {
log.fine("field 52B not found");
return null;
} else {
return new Field52B(t.getValue());
}
}
}
/**
* Iterates through block4 fields and return the first one whose name matches 52D,
* or null
if none is found.
* The first occurrence of field 52D at MT112 is expected to be the only one.
*
* @return a Field52D object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field52D getField52D() {
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("52D");
if (t == null) {
log.fine("field 52D not found");
return null;
} else {
return new Field52D(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 MT112 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 76,
* or null
if none is found.
* The first occurrence of field 76 at MT112 is expected to be the only one.
*
* @return a Field76 object or null
if the field is not found
* @see SwiftTagListBlock#getTagByName(String)
* @throws IllegalStateException if SwiftMessage object is not initialized
*/
public Field76 getField76() {
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("76");
if (t == null) {
log.fine("field 76 not found");
return null;
} else {
return new Field76(t.getValue());
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy