COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.sample.components.sink.cbe.wrapper
Class CBEUtil

java.lang.Object
  extended by org.eclipse.cosmos.dc.sample.components.sink.cbe.wrapper.CBEUtil

public class CBEUtil
extends java.lang.Object


Field Summary
static java.text.SimpleDateFormat partialCIMDateFormatDashDelimiter
           
static java.text.SimpleDateFormat partialCIMDateFormatNoDelimiter
           
static java.text.SimpleDateFormat partialCIMDateFormatPlusDelimiter
           
 
Constructor Summary
CBEUtil()
           
 
Method Summary
static short getDeltaTimeZoneInMinutesFromCIMFormat(java.lang.String creationTime)
          Returns the signed time zone offset from GMT or Zulu time in minutes of the parameter XML schema dateTime datatype time stamp.
static double getMicrosecondsFromCIMFormat(java.lang.String creationTime)
          Returns the microsecond representation of the parameter XML schema dateTime datatype time stamp, adjusted for the local time zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partialCIMDateFormatDashDelimiter

public static java.text.SimpleDateFormat partialCIMDateFormatDashDelimiter

partialCIMDateFormatPlusDelimiter

public static java.text.SimpleDateFormat partialCIMDateFormatPlusDelimiter

partialCIMDateFormatNoDelimiter

public static java.text.SimpleDateFormat partialCIMDateFormatNoDelimiter
Constructor Detail

CBEUtil

public CBEUtil()
Method Detail

getMicrosecondsFromCIMFormat

public static double getMicrosecondsFromCIMFormat(java.lang.String creationTime)
                                           throws java.lang.IllegalArgumentException
Returns the microsecond representation of the parameter XML schema dateTime datatype time stamp, adjusted for the local time zone. Assumption: The caller is responsible for removing any leading and/or trailing whitespace.

Parameters:
creationTime - XML schema dateTime datatype time stamp.
Returns:
double Microsecond representation of the parameter XML schema dateTime datatype time stamp.
Throws:
java.lang.IllegalArgumentException - The parameter time stamp is not a valid XML schema dateTime datatype.

getDeltaTimeZoneInMinutesFromCIMFormat

public static short getDeltaTimeZoneInMinutesFromCIMFormat(java.lang.String creationTime)
                                                    throws java.lang.IllegalArgumentException
Returns the signed time zone offset from GMT or Zulu time in minutes of the parameter XML schema dateTime datatype time stamp. Assumption: The caller is responsible for removing any leading and/or trailing whitespace.

Parameters:
creationTime - XML schema dateTime datatype time stamp.
Returns:
short Signed time zone offset from GMT in minutes.
Throws:
java.lang.IllegalArgumentException - The parameter time stamp is not a valid XML schema dateTime datatype.

COSMOS ${releaseVersion} data-collection Project
Public API Specification