Summer.Batch.Extra.Utils.ReverseUtils Class Reference

Reverse Helper. More...

Static Public Member Functions

static bool IsCharLowValue (char character)
 Check if the given character is '\u0000' ASCII value. More...
 
static bool IsCharHighValue (char character)
 Check if the given character is '\u009F' ASCII value. More...
 
static bool IsStringLowValue (string str)
 Check if characters of the given string are all '\u0000' ASCII value. More...
 
static bool IsStringHighValue (string str)
 Check if characters of the given string are all '\u009F' ASCII value. More...
 
static string ConvertBooleanToStringYN (bool?boolean)
 Convert a bool to "Y" or "N" string. More...
 
static string ConvertBooleanToStringON (bool?boolean)
 Convert a bool to "O" or "N" string. More...
 
static bool ConvertStringToBooleanYN (string str)
 Convert a "Y" or "N" string to bool. More...
 
static bool ConvertStringToBooleanON (string str)
 Convert a "O" or "N" string to bool. More...
 
static bool IsSpaces (object obj)
 Check if all attributes of the object, whose types are Number, String or Date, are null or are empty/whitespace strings. More...
 

Detailed Description

Reverse Helper.

Member Function Documentation

static string Summer.Batch.Extra.Utils.ReverseUtils.ConvertBooleanToStringON ( bool?  boolean)
static

Convert a bool to "O" or "N" string.

Parameters
booleanbool
Returns
"O" if parameter is true, "N" if parameter is false. Otherwise null.
static string Summer.Batch.Extra.Utils.ReverseUtils.ConvertBooleanToStringYN ( bool?  boolean)
static

Convert a bool to "Y" or "N" string.

Parameters
booleanbool
Returns
"Y" if boolean == true, "N" if boolean == false. Otherwise null.
static bool Summer.Batch.Extra.Utils.ReverseUtils.ConvertStringToBooleanON ( string  str)
static

Convert a "O" or "N" string to bool.

Parameters
strstring
Returns
true if parameter matches "O", false if parameter matches "N". Otherwise null.
static bool Summer.Batch.Extra.Utils.ReverseUtils.ConvertStringToBooleanYN ( string  str)
static

Convert a "Y" or "N" string to bool.

Parameters
strstring
Returns
true if parameter matches "Y", false if parameter matches "N". Otherwise null.
static bool Summer.Batch.Extra.Utils.ReverseUtils.IsCharHighValue ( char  character)
static

Check if the given character is '\u009F' ASCII value.

Parameters
charactercharacter char
Returns
true if char is matching '\u009F' ASCII value. Otherwise false.
static bool Summer.Batch.Extra.Utils.ReverseUtils.IsCharLowValue ( char  character)
static

Check if the given character is '\u0000' ASCII value.

Parameters
characterchar
Returns
true if char is matching '\u0000' ASCII value. Otherwise false.
static bool Summer.Batch.Extra.Utils.ReverseUtils.IsSpaces ( object  obj)
static

Check if all attributes of the object, whose types are Number, String or Date, are null or are empty/whitespace strings.

Parameters
objobjet
Returns
true if all attributes of the object, whose types are Number, String or Date, are null or are empty/whitespace strings.
static bool Summer.Batch.Extra.Utils.ReverseUtils.IsStringHighValue ( string  str)
static

Check if characters of the given string are all '\u009F' ASCII value.

Parameters
strstring
Returns
true if all characters of given string are matching '\u009F' ASCII value. Otherwise false.
static bool Summer.Batch.Extra.Utils.ReverseUtils.IsStringLowValue ( string  str)
static

Check if characters of the given string are all '\u0000' ASCII value.

Parameters
strstring
Returns
true if all characters of given string are matching '\u0000' ASCII value. Otherwise false.

The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Utils/ReverseUtils.cs