com.eventgnosis.protocols
Class ProtoUtil

java.lang.Object
  extended bycom.eventgnosis.protocols.ProtoUtil

public class ProtoUtil
extends java.lang.Object

Utility class, mostly used in sources and destinations.


Constructor Summary
ProtoUtil()
           
 
Method Summary
static java.lang.String convertFromEvSafeChars(java.lang.String _stringToConvert)
          Translates the string parameter back to its original representation as it leaves the ECS.
static java.lang.String convertToEvSafeChars(java.lang.String _stringToConvert)
          Translates input string to another one with ECS internal (safe converted) character representations.
static boolean isValidFieldName(java.lang.String str)
          Validator method for FieldName parameters.
FieldName parameter value is valid if it's not null, empty string and if it does not contains spaces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoUtil

public ProtoUtil()
Method Detail

convertFromEvSafeChars

public static java.lang.String convertFromEvSafeChars(java.lang.String _stringToConvert)
Translates the string parameter back to its original representation as it leaves the ECS.

Parameters:
_stringToConvert - - string to be translated back
Returns:
string translated back

convertToEvSafeChars

public static java.lang.String convertToEvSafeChars(java.lang.String _stringToConvert)
Translates input string to another one with ECS internal (safe converted) character representations.
The purpose of this conversion is to prevent ECS of any special character confusion during events processing.

Parameters:
_stringToConvert - - string to be translated
Returns:
translated string

isValidFieldName

public static boolean isValidFieldName(java.lang.String str)
Validator method for FieldName parameters.
FieldName parameter value is valid if it's not null, empty string and if it does not contains spaces.

Parameters:
str - String value of FieldName parameter to check
Returns:
true if str is valid parameter value; otherwise false.