|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.message.tlv.Tag
public final class Tag
Enumeration class for optional parameter tag values.
| Method Summary | |
|---|---|
static Tag |
defineTag(int tagValue,
ParamDescriptor paramDescriptor,
int fixedSize)
Define a new tag type which has a fixed length. |
static Tag |
defineTag(int tagValue,
ParamDescriptor paramDescriptor,
int minSize,
int maxSize)
Define a new tag type with minimum and maximum sizes. |
boolean |
equals(int tag)
Test for equality against an integer. |
boolean |
equals(Object obj)
Test for equality. |
int |
getLength()
Get the allowed length of a value of this tag type. |
int |
getMaxLength()
Get the maximum length of a value of this tag type. |
int |
getMinLength()
Get the minimum length of a value of this tag type. |
ParamDescriptor |
getParamDescriptor()
|
static Tag |
getTag(int tagValue)
Get the Tag object that represents tag tagValue. |
int |
hashCode()
Get the hashCode for this Tag. |
int |
intValue()
Get the integer value of this tag. |
static boolean |
isTagDefined(int tagValue)
Determine if a tag is defined for a particular tag integer value. |
String |
toHexString()
Convert this tag to a String. |
String |
toString()
Convert this tag to a String. |
static Tag |
undefineTag(Tag tag)
Undefine a tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Tag DEST_ADDR_SUBUNIT
public static final Tag DEST_NETWORK_TYPE
public static final Tag DEST_BEARER_TYPE
public static final Tag DEST_TELEMATICS_ID
public static final Tag SOURCE_ADDR_SUBUNIT
public static final Tag SOURCE_NETWORK_TYPE
public static final Tag SOURCE_BEARER_TYPE
public static final Tag SOURCE_TELEMATICS_ID
public static final Tag QOS_TIME_TO_LIVE
public static final Tag PAYLOAD_TYPE
public static final Tag ADDITIONAL_STATUS_INFO_TEXT
public static final Tag RECEIPTED_MESSAGE_ID
public static final Tag MS_MSG_WAIT_FACILITIES
public static final Tag PRIVACY_INDICATOR
public static final Tag SOURCE_SUBADDRESS
public static final Tag DEST_SUBADDRESS
public static final Tag USER_MESSAGE_REFERENCE
public static final Tag USER_RESPONSE_CODE
public static final Tag SOURCE_PORT
public static final Tag DESTINATION_PORT
public static final Tag SAR_MSG_REF_NUM
public static final Tag LANGUAGE_INDICATOR
public static final Tag SAR_TOTAL_SEGMENTS
public static final Tag SAR_SEGMENT_SEQNUM
public static final Tag SC_INTERFACE_VERSION
public static final Tag CALLBACK_NUM_PRES_IND
public static final Tag CALLBACK_NUM_ATAG
public static final Tag NUMBER_OF_MESSAGES
public static final Tag CALLBACK_NUM
public static final Tag DPF_RESULT
public static final Tag SET_DPF
public static final Tag MS_AVAILABILITY_STATUS
public static final Tag NETWORK_ERROR_CODE
public static final Tag MESSAGE_PAYLOAD
public static final Tag DELIVERY_FAILURE_REASON
public static final Tag MORE_MESSAGES_TO_SEND
public static final Tag MESSAGE_STATE
public static final Tag USSD_SERVICE_OP
public static final Tag DISPLAY_TIME
public static final Tag SMS_SIGNAL
public static final Tag MS_VALIDITY
public static final Tag ALERT_ON_MESSAGE_DELIVERY
public static final Tag ITS_REPLY_TYPE
public static final Tag ITS_SESSION_INFO
public static final Tag BROADCAST_AREA_IDENTIFIER
public static final Tag BROADCAST_AREA_SUCCESS
public static final Tag BROADCAST_CONTENT_TYPE_INFO
public static final Tag BROADCAST_CHANNEL_INDICATOR
public static final Tag BROADCAST_CONTENT_TYPE
public static final Tag BROADCAST_END_TIME
public static final Tag BROADCAST_ERROR_STATUS
public static final Tag BROADCAST_FREQUENCY_INTERVAL
public static final Tag BROADCAST_MESSAGE_CLASS
public static final Tag BROADCAST_REP_NUM
public static final Tag BROADCAST_SERVICE_GROUP
| Method Detail |
|---|
public int intValue()
public int getLength()
public int getMinLength()
public int getMaxLength()
public ParamDescriptor getParamDescriptor()
public boolean equals(Object obj)
equals in class Objectobj is Tag and has the same tag value.public boolean equals(int tag)
tag.public int hashCode()
new Integer(tag.tagValue()).hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String toHexString()
public static Tag getTag(int tagValue)
tagValue. If the
tag is known then the static Tag object representing the tag is returned.
If the tag is not known, a fresh instance of Tag will be returned which
uses an octet-string type.
WARNING The behaviour of this method may change to returning
null for an undefined tag. It needs to be determined
which behaviour is the best.
tagValue.
Will never return null.
public static Tag defineTag(int tagValue,
ParamDescriptor paramDescriptor,
int fixedSize)
throws TagDefinedException
tagValue - The integer value of the tag.paramDescriptor - The parameter type descriptor.fixedSize - The defined size of the parameter.
TagDefinedException - If an attempt is
made to define a tag with a integer value equivalent to an already
defined tag.ParamDescriptor
public static Tag defineTag(int tagValue,
ParamDescriptor paramDescriptor,
int minSize,
int maxSize)
throws TagDefinedException
tagValue - The integer value of the tag.paramDescriptor - The parameter type descriptor.minSize - The minimum size of the parameter.maxSize - The maximum size of the parameter.
TagDefinedException - If an attempt is
made to define a tag with a integer value equivalent to an already
defined tag.ParamDescriptorpublic static boolean isTagDefined(int tagValue)
tagValue - The integer value of the tag.
true if the tag is defined, false
otherwise.public static Tag undefineTag(Tag tag)
tag - The tag to undefine. null if there was no tag defined already.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||