java.lang.Object
cl.netswitch.iso.iso8583.IsoMessage
- All Implemented Interfaces:
Serializable
Methods common (shared) by all ISO messages.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Calls all setters in this message with values obtain from matching getters in a source object.final void
Calls all setters in a destination object with values obtain from matching getters in this message.final long
Returns the first bitmap of this message (DE-1,Format=b-8).final long
Returns the second bitmap of this message (DE-65,Format=b-8).final Short
getMti()
Returns the Message Type Identification (DE-0,Format=n-4).final void
Changes the Message Type Identification (DE-0,Format=n-4).protected final void
updateBitmap
(int index, Object value) Updates the bitmaps of this message adding or removing a field index.
-
Constructor Details
-
IsoMessage
public IsoMessage()Constructs a newIsoMessage
instance.
-
-
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
- ifindex
is 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
- ifsource
ifnull
.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
- iftarget
ifnull
.IllegalArgumentException
- if another error occurs.- See Also:
-