Class IsoMessage
java.lang.Object
cl.netswitch.iso.iso8583.IsoMessage
- All Implemented Interfaces:
Serializable
Methods common (shared) by all ISO messages.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCalls all setters in this message with values obtain from matching getters in a source object.final voidCalls all setters in a destination object with values obtain from matching getters in this message.final longReturns the first bitmap of this message (DE-1,Format=b-8).final longReturns the second bitmap of this message (DE-65,Format=b-8).final ShortgetMti()Returns the Message Type Identification (DE-0,Format=n-4).final voidChanges the Message Type Identification (DE-0,Format=n-4).protected final voidupdateBitmap(int index, Object value) Updates the bitmaps of this message adding or removing a field index.
-
Constructor Details
-
IsoMessage
public IsoMessage()Constructs a newIsoMessageinstance.
-
-
Method Details
-
getMti
Returns the Message Type Identification (DE-0,Format=n-4).- Returns:
- the Message Type Identification (DE-0,Format=n-4).
-
setMti
Changes the Message Type Identification (DE-0,Format=n-4).- Parameters:
mti- the new value of the field (can be null).
-
getBitmap1
public final long getBitmap1()Returns the first bitmap of this message (DE-1,Format=b-8).- Returns:
- the first bitmap of this message (DE-1,Format=b-8).
-
getBitmap2
public final long getBitmap2()Returns the second bitmap of this message (DE-65,Format=b-8).- Returns:
- the second bitmap of this message (DE-65,Format=b-8).
-
updateBitmap
Updates the bitmaps of this message adding or removing a field index.- Parameters:
index- the index of the field to add or remove in bitmaps.value- add index if this value is not null, else remove index.- Throws:
IndexOutOfBoundsException- ifindexis out-of-bounds.
-
copyFrom
Calls all setters in this message with values obtain from matching getters in a source object.In other words, this method executes the following statement for all matching getters and setters.
this.setProperty(source.getProperty());
A getter and setter match if the name and type of their respective properties are exactly the same.- Parameters:
source- the object whose getter methods are invoked.- Throws:
NullPointerException- ifsourceifnull.IllegalArgumentException- if another error occurs.- See Also:
-
copyTo
Calls all setters in a destination object with values obtain from matching getters in this message.In other words, this method executes the following statement for all matching getters and setters.
destin.setProperty(this.getProperty());
A getter and setter match if the name and type of their respective properties are exactly the same.- Parameters:
destin- the object whose setter methods are invoked.- Throws:
NullPointerException- iftargetifnull.IllegalArgumentException- if another error occurs.- See Also:
-