public class SmsParameterProcessor
extends java.lang.Object
| Constructor and Description |
|---|
SmsParameterProcessor(UserServiceLocal userService,
SmsOperationConfiguration operationConfiguration,
java.util.List<java.lang.String> params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns whether there is another parameter
|
java.math.BigDecimal |
nextAmount(java.lang.Object paramIdentifier,
int precision) |
java.math.BigDecimal |
nextDecimal(java.lang.Object paramIdentifier)
Returns the next parameter as a decimal number
|
int |
nextInt(java.lang.Object paramIdentifier)
Returns the next parameter as int
|
java.lang.String |
nextString(java.lang.Object paramIdentifier)
Returns the next parameter as string
|
User |
nextUser(java.lang.Object paramIdentifier)
Returns the next parameter as User, locating him according to the InboundSmsUserIdentification set in the current
SmsOperationConfiguration |
java.lang.String |
remaining(java.lang.Object paramIdentifier,
java.lang.String separator)
Returns all remaining parameters, joined with a given separator
|
public SmsParameterProcessor(UserServiceLocal userService, SmsOperationConfiguration operationConfiguration, java.util.List<java.lang.String> params)
public boolean hasNext()
public java.math.BigDecimal nextAmount(java.lang.Object paramIdentifier,
int precision)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic java.math.BigDecimal nextDecimal(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic int nextInt(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic java.lang.String nextString(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic User nextUser(java.lang.Object paramIdentifier) throws org.cyclos.impl.utils.sms.InboundSmsParameterException
SmsOperationConfigurationorg.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic java.lang.String remaining(java.lang.Object paramIdentifier,
java.lang.String separator)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterException