org.jsmpp.util
Enum StringParameter

java.lang.Object
  extended by java.lang.Enum<StringParameter>
      extended by org.jsmpp.util.StringParameter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StringParameter>

public enum StringParameter
extends java.lang.Enum<StringParameter>

Since:
1.0
Version:
1.0
Author:
uudashr

Enum Constant Summary
ADDRESS_RANGE
          Invalid address range assume should return the error of invalid source address.
DEL_MESSAGE_ID
           
DESTINATION_ADDR
           
DL_NAME
          Validator for DL_NAME (Distribution List)
ESME_ADDR
          ESME_ADDR has error code OK because there is not response to alert_notification (ESME_ADDR only use on alert_notification), so there is no error code to return.
FINAL_DATE
          When validating final date is failed, then we should throw error with status STAT_ESME_RINVDFTMSGID, means that predefined message are not exist.
MESSAGE_ID
           
PASSWORD
          password string parameter.
SCHEDULE_DELIVERY_TIME
           
SERVICE_TYPE
           
SHORT_MESSAGE
           
SOURCE_ADDR
           
SYSTEM_ID
          system_id string parameter.
SYSTEM_TYPE
          system_type string parameter.
VALIDITY_PERIOD
           
 
Field Summary
private  int errCode
           
private  int max
           
private  int min
           
private  boolean rangeMinAndMax
           
private  StringType type
           
 
Method Summary
 int getErrCode()
          Get the corresponding error code if the rule has broken.
 int getMax()
           
 int getMin()
           
 StringType getType()
           
 boolean isRangeMinAndMax()
           
static StringParameter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StringParameter[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYSTEM_ID

public static final StringParameter SYSTEM_ID
system_id string parameter.


PASSWORD

public static final StringParameter PASSWORD
password string parameter.


SYSTEM_TYPE

public static final StringParameter SYSTEM_TYPE
system_type string parameter.


ADDRESS_RANGE

public static final StringParameter ADDRESS_RANGE
Invalid address range assume should return the error of invalid source address.


SERVICE_TYPE

public static final StringParameter SERVICE_TYPE

SOURCE_ADDR

public static final StringParameter SOURCE_ADDR

DESTINATION_ADDR

public static final StringParameter DESTINATION_ADDR

SCHEDULE_DELIVERY_TIME

public static final StringParameter SCHEDULE_DELIVERY_TIME

VALIDITY_PERIOD

public static final StringParameter VALIDITY_PERIOD

DL_NAME

public static final StringParameter DL_NAME
Validator for DL_NAME (Distribution List)


FINAL_DATE

public static final StringParameter FINAL_DATE
When validating final date is failed, then we should throw error with status STAT_ESME_RINVDFTMSGID, means that predefined message are not exist.


SHORT_MESSAGE

public static final StringParameter SHORT_MESSAGE

MESSAGE_ID

public static final StringParameter MESSAGE_ID

DEL_MESSAGE_ID

public static final StringParameter DEL_MESSAGE_ID

ESME_ADDR

public static final StringParameter ESME_ADDR
ESME_ADDR has error code OK because there is not response to alert_notification (ESME_ADDR only use on alert_notification), so there is no error code to return.

Field Detail

type

private StringType type

min

private final int min

max

private final int max

rangeMinAndMax

private final boolean rangeMinAndMax

errCode

private final int errCode
Method Detail

values

public static StringParameter[] 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 (StringParameter c : StringParameter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StringParameter valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMax

public int getMax()
Returns:
Returns the max.

getMin

public int getMin()
Returns:
Returns the min.

isRangeMinAndMax

public boolean isRangeMinAndMax()
Returns:
Returns the rangeMinAndMax.

getType

public StringType getType()

getErrCode

public int getErrCode()
Get the corresponding error code if the rule has broken.

Returns: