net.sf.mpxj.primavera
Class DatatypeConverter

java.lang.Object
  extended by net.sf.mpxj.primavera.DatatypeConverter

public final class DatatypeConverter
extends Object

This class contains methods used to perform the datatype conversions required to read and write PM files.


Constructor Summary
DatatypeConverter()
           
 
Method Summary
static Date parseDateTime(String value)
          Parse a date time value.
static Date parseTime(String value)
          Parse a time value.
static String printDateTime(Date value)
          Print a date time value.
static String printTime(Date value)
          Print a time value.
static void setParentFile(ProjectFile file)
          This method is called to set the parent file for the current write operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatatypeConverter

public DatatypeConverter()
Method Detail

printDateTime

public static final String printDateTime(Date value)
Print a date time value.

Parameters:
value - date time value
Returns:
string representation

parseDateTime

public static final Date parseDateTime(String value)
Parse a date time value.

Parameters:
value - string representation
Returns:
date time value

printTime

public static final String printTime(Date value)
Print a time value.

Parameters:
value - time value
Returns:
time value

parseTime

public static final Date parseTime(String value)
Parse a time value.

Parameters:
value - time value
Returns:
time value

setParentFile

public static final void setParentFile(ProjectFile file)
This method is called to set the parent file for the current write operation. This allows task and resource write events to be captured and passed to any file listeners.

Parameters:
file - parent file instance


Copyright © 2012. All Rights Reserved.