public class MtId
extends java.lang.Object
Constructor and Description |
---|
MtId() |
MtId(java.lang.String messageType)
Creates an identification given the message type, with no variant.
|
MtId(java.lang.String messageType,
MTVariant variant) |
MtId(java.lang.String messageType,
java.lang.String variant) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
category()
Returns the first number in the message type, representing the message category.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBusinessProcess() |
java.lang.String |
getMessageType() |
java.lang.String |
getVariant() |
int |
hashCode() |
java.lang.String |
id()
Get a string in the form of businessprocess.messagetype.variant
|
MtId |
setBusinessProcess(java.lang.String businessProcess) |
MtId |
setMessageType(java.lang.String messageType) |
MtId |
setVariant(java.lang.String variant) |
java.lang.String |
toString() |
public MtId()
public MtId(java.lang.String messageType)
messageType
- the message type number (optionally prefixed with "fin.")public MtId(java.lang.String messageType, java.lang.String variant)
messageType
- the message type number (optionally prefixed with "fin.")variant
- An MT variant (STP, REMIT, COV), a MUG identifier or null if none appliespublic MtId(java.lang.String messageType, MTVariant variant)
messageType
- the message type numbervariant
- a message variant (STP, REMIT, COV) or null if none appliespublic java.lang.String getBusinessProcess()
public MtId setBusinessProcess(java.lang.String businessProcess)
public java.lang.String getMessageType()
public MtId setMessageType(java.lang.String messageType)
public java.lang.String getVariant()
public MtId setVariant(java.lang.String variant)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String id()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String category()