Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The methods available in the class MapperUtilityClass are:

 

Expand
titlecharAt ()

Summary:

Returns the character at the specified index. This method accepts following two parameters: data string and an integer index.

Syntax:

java:MapperUtilityClass.charAt('Adeptia', 3) 

...

The global methods available in the class MapperUtilityClass are:

 

Expand
titlegetAge ()

Summary:

Returns the present age. This method accepts one string type parameter only in the <parameter-name> format.

Syntax:

java:GlobalMethodCall.getAge(‘dd-MM-yyyy HH:mm:ss’) 
Expand
titlegetDaysLeft ()

Summary:

Returns a value (-1 or 0) depending on the value that you pass in it. This method accepts one string type parameter only in the <parameter-name> format.

It returns 0 if the value passed is greater than the current time and returns -1 if the value passed is less than the current time.

You have to pass the value in yyyy-MM-dd HH:mm:ss format. This method accepts one string type parameter only in the <parameter-name> format.

Syntax:

java:GlobalMethodCall.getDaysLeft(‘yyyy-MM-dd’) 
Expand
titlegetAccountType ()

Summary:

This method returns Returns the account type of the parameter passed initto it. This method accepts one string type parameter only in the <parameter-name> format. It returns 3 following three values: AlphabetNumeric, NumericNumeric, and ErrorData.

If you pass an alphabet followed by some numeral then it would return returns AlphabetNumeric. If you pass numeral followed by another numeral then it would return returns NumericNumeric. If you pass any other values or you do not add a delimiter (-) between the two values then , the method would return ErrorData. This method accepts one parameter in String <parameter-name> formatit returns ErrorData.

Syntax:

java:GlobalMethodCall.getAccountType('alphabet-number-alphabet')
java:GlobalMethodCall.getAccountType('number-number-alphabet')