Patient Cloud AppConnect Android API References
Public Member Functions | Protected Member Functions | List of all members
com.mdsol.babbage.model.RaveDateFormat

Inherits com.mdsol.babbage.model.Field.

Public Member Functions

String format (Date date)
 
Date parse (String string)
 
 RaveDateFormat (String dateFormat)
 
- Public Member Functions inherited from com.mdsol.babbage.model.Field
native boolean equals (Object other)
 
native String getFieldNumber ()
 
native String getFieldOID ()
 
native int getFieldOrdinal ()
 
native Type getFieldType ()
 
native String getHeader ()
 
native long getID ()
 
native String getLabel ()
 
native Problem getResponseProblem ()
 
native boolean isVisible ()
 
- Public Member Functions inherited from com.mdsol.babbage.model.DatastoreRelation
Datastore getDatastore ()
 

Protected Member Functions

void finalize ()
 
- Protected Member Functions inherited from com.mdsol.babbage.model.Field
void finalize ()
 

Additional Inherited Members

- Protected Attributes inherited from com.mdsol.babbage.model.DatastoreRelation
long mNativeObject
 

Detailed Description

RaveDateFormatter is a class that carries information about the formattine of time that is set on the com.mdsol.babbage.model.DateTimeField in Medidata Rave EDC. Rave date formats describe the expected elements and separators that are used by a date-time string derived from this format.

Rave uses the following conversion specifiers:

yy or yyyy - The year; two or four digits. MMM - Month name. mm - Month number. dd - Day of the month. HH - Hours in 24-hour clock. hh - Hours in 12-hour clock. nn - Minutes. ss - Seconds. rr - Meridiem of the day; AM or PM.

Constructor & Destructor Documentation

com.mdsol.babbage.model.RaveDateFormat.RaveDateFormat ( String  dateFormat)

Public constructor that takes a string format descriptor comprised of valid conversion specifiers.

Parameters
dateFormat

Member Function Documentation

void com.mdsol.babbage.model.RaveDateFormat.finalize ( )
protected
String com.mdsol.babbage.model.RaveDateFormat.format ( Date  date)

String that, when used, converts a date to the string using the format that you provide in the Constructor.

Parameters
date
Returns
String.
Date com.mdsol.babbage.model.RaveDateFormat.parse ( String  string)

Date type that, when used, converts from the given Date String using the format that you provide in the Constructor.

Parameters
string
Returns
Date.