Enum SMSTPDU.Type
- java.lang.Object
-
- java.lang.Enum<SMSTPDU.Type>
-
- com.opencloud.slee.resources.in.datatypes.sms.SMSTPDU.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<SMSTPDU.Type>
- Enclosing class:
- SMSTPDU
public static enum SMSTPDU.Type extends Enum<SMSTPDU.Type>
Enumeration of PDU types.Each enumeration value has an associated TP-MTI value, but MTI values are not unique. There are 8 defined types of message, plus some reserved combinations, but only 2 bits to fit TP-MTI into. To work out which message type applies, the context of the PDU (i.e. type of relay-layer message) must be known.
Reserved MTI/message combinations are represented by the SMS_RESERVED value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SMS_COMMAND
RP-MO-DATA relay-layer message, SMS-COMMAND PDU, represented bySMSCommand
SMS_DELIVER
RP-MT-DATA relay-layer message, SMS-DELIVER PDU, represented bySMSDeliver
SMS_DELIVER_REPORT_ACK
RP-ACK relay-layer message, SMS-DELIVER-REPORT PDU, represented bySMSDeliverReportAck
SMS_DELIVER_REPORT_ERROR
RP-ERROR relay-layer message, SMS-DELIVER-REPORT PDU, represented bySMSDeliverReportError
SMS_RESERVED
Undefined/reserved MTI value for a given relay-layer message type, represented bySMSReserved
SMS_STATUS_REPORT
RP-MT-DATA relay-layer message, SMS-STATUS-REPORT PDU, represented bySMSStatusReport
SMS_SUBMIT
RP-MO-DATA relay-layer message, SMS-SUBMIT PDU, represented bySMSSubmit
SMS_SUBMIT_REPORT_ACK
RP-ACK relay-layer message, SMS-SUBMIT-REPORT PDU, represented bySMSSubmitReportAck
SMS_SUBMIT_REPORT_ERROR
RP-ERROR relay-layer message, SMS-SUBMIT-REPORT PDU, represented bySMSSubmitReportError
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMTI()
Get the TP-MTI value for this message type.static SMSTPDU.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static SMSTPDU.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMS_SUBMIT
public static final SMSTPDU.Type SMS_SUBMIT
RP-MO-DATA relay-layer message, SMS-SUBMIT PDU, represented bySMSSubmit
-
SMS_COMMAND
public static final SMSTPDU.Type SMS_COMMAND
RP-MO-DATA relay-layer message, SMS-COMMAND PDU, represented bySMSCommand
-
SMS_DELIVER
public static final SMSTPDU.Type SMS_DELIVER
RP-MT-DATA relay-layer message, SMS-DELIVER PDU, represented bySMSDeliver
-
SMS_STATUS_REPORT
public static final SMSTPDU.Type SMS_STATUS_REPORT
RP-MT-DATA relay-layer message, SMS-STATUS-REPORT PDU, represented bySMSStatusReport
-
SMS_DELIVER_REPORT_ACK
public static final SMSTPDU.Type SMS_DELIVER_REPORT_ACK
RP-ACK relay-layer message, SMS-DELIVER-REPORT PDU, represented bySMSDeliverReportAck
-
SMS_SUBMIT_REPORT_ACK
public static final SMSTPDU.Type SMS_SUBMIT_REPORT_ACK
RP-ACK relay-layer message, SMS-SUBMIT-REPORT PDU, represented bySMSSubmitReportAck
-
SMS_DELIVER_REPORT_ERROR
public static final SMSTPDU.Type SMS_DELIVER_REPORT_ERROR
RP-ERROR relay-layer message, SMS-DELIVER-REPORT PDU, represented bySMSDeliverReportError
-
SMS_SUBMIT_REPORT_ERROR
public static final SMSTPDU.Type SMS_SUBMIT_REPORT_ERROR
RP-ERROR relay-layer message, SMS-SUBMIT-REPORT PDU, represented bySMSSubmitReportError
-
SMS_RESERVED
public static final SMSTPDU.Type SMS_RESERVED
Undefined/reserved MTI value for a given relay-layer message type, represented bySMSReserved
-
-
Method Detail
-
values
public static SMSTPDU.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SMSTPDU.Type c : SMSTPDU.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SMSTPDU.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMTI
public int getMTI()
Get the TP-MTI value for this message type. TP-MTI values are not unique across all message types!- Returns:
- the TP-MTI value, or -1 if this is the SMS_RESERVED enumeration instance
-
-