public final class MPDUtility extends Object
| Constructor and Description |
|---|
MPDUtility() |
| Modifier and Type | Method and Description |
|---|---|
static Duration |
getAdjustedDuration(ProjectFile file,
int duration,
TimeUnit timeUnit)
Given a duration and the time units for the duration extracted from an MPP
file, this method creates a new Duration to represent the given
duration.
|
static Duration |
getDuration(double value,
TimeUnit type)
Reads a duration value.
|
static TimeUnit |
getDurationTimeUnits(int type)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
static CurrencySymbolPosition |
getSymbolPosition(int value)
This method maps the currency symbol position from the
representation used in the MPP file to the representation
used by MPX.
|
public static CurrencySymbolPosition getSymbolPosition(int value)
value - MPP symbol positionpublic static final TimeUnit getDurationTimeUnits(int type)
type - MPP unitspublic static Duration getAdjustedDuration(ProjectFile file, int duration, TimeUnit timeUnit)
file - parent fileduration - duration lengthtimeUnit - duration unitsCopyright © 2000–2025 MPXJ. All rights reserved.