Package | Description |
---|---|
net.sf.mpxj | |
net.sf.mpxj.common | |
net.sf.mpxj.conceptdraw | |
net.sf.mpxj.conceptdraw.schema | |
net.sf.mpxj.json | |
net.sf.mpxj.mpd | |
net.sf.mpxj.mpp | |
net.sf.mpxj.mspdi | |
net.sf.mpxj.phoenix |
Modifier and Type | Method and Description |
---|---|
TimeUnit |
ProjectProperties.getDefaultDurationUnits()
Gets Default Duration units.
|
TimeUnit |
ProjectProperties.getDefaultWorkUnits()
Default work units.
|
static TimeUnit |
TimeUnit.getInstance(int type)
Retrieve an instance of the enum based on its int value.
|
static TimeUnit |
TimeUnit.getInstance(Number type)
Retrieve an instance of the enum based on its int value.
|
TimeUnit |
Task.getLevelingDelayFormat()
Retrieve the leveling delay format.
|
TimeUnit |
Duration.getUnits()
This method is used to retrieve the type of units the duration
is expressed in.
|
TimeUnit |
Rate.getUnits()
Accessor method to retrieve the time units.
|
TimeUnit |
ResourceAssignment.getVariableRateUnits()
Retrieve the variable rate time units, null if fixed rate.
|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Duration |
Duration.convertUnits(double duration,
TimeUnit fromUnits,
TimeUnit toUnits,
double minutesPerDay,
double minutesPerWeek,
double daysPerMonth)
This method provides an approximate conversion between duration
units.
|
static Duration |
Duration.convertUnits(double duration,
TimeUnit fromUnits,
TimeUnit toUnits,
TimeUnitDefaultsContainer defaults)
This method provides an approximate conversion between duration
units.
|
Duration |
Duration.convertUnits(TimeUnit type,
TimeUnitDefaultsContainer defaults)
This method provides an approximate conversion between duration
units.
|
static Duration |
Duration.getInstance(double duration,
TimeUnit type)
Retrieve a Duration instance.
|
static Duration |
Duration.getInstance(int duration,
TimeUnit type)
Retrieve a Duration instance.
|
Duration |
ProjectCalendar.getWork(DayOfWeek day,
TimeUnit format)
Retrieves the amount of work on a given day, and
returns it in the specified format.
|
Duration |
ProjectCalendar.getWork(LocalDateTime startDate,
LocalDateTime endDate,
TimeUnit format)
This method retrieves a Duration instance representing the amount of
work between two dates based on this calendar.
|
Duration |
ProjectCalendar.getWork(LocalDate date,
TimeUnit format)
Retrieves the amount of work on a given date, and
returns it in the specified format.
|
void |
ProjectProperties.setDefaultDurationUnits(TimeUnit units)
Default duration units.
|
void |
ProjectProperties.setDefaultWorkUnits(TimeUnit units)
Default work units.
|
void |
Task.setLevelingDelayFormat(TimeUnit levelingDelayFormat)
Set the leveling delay format.
|
void |
ResourceAssignment.setVariableRateUnits(TimeUnit variableRateUnits)
Set the variable rate time units, null if fixed rate.
|
Constructor and Description |
---|
Rate(double amount,
TimeUnit time)
This constructor builds an instance of this class from a currency
amount and a time unit.
|
Rate(Number amount,
TimeUnit time)
This constructor builds an instance of this class from a currency
amount and a time unit.
|
Modifier and Type | Method and Description |
---|---|
static Rate |
RateHelper.convertFromHours(TimeUnitDefaultsContainer defaults,
BigDecimal value,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static Rate |
RateHelper.convertFromHours(TimeUnitDefaultsContainer defaults,
double value,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static Rate |
RateHelper.convertFromHours(TimeUnitDefaultsContainer defaults,
Rate rate,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static Duration |
LocalDateTimeHelper.getVariance(ProjectCalendar calendar,
LocalDateTime date1,
LocalDateTime date2,
TimeUnit format)
This utility method calculates the difference in working
time between two dates, given the context of a calendar.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
DatatypeConverter.parseTimeUnit(String value)
Parse a time unit value.
|
Modifier and Type | Method and Description |
---|---|
static String |
DatatypeConverter.printTimeUnit(TimeUnit value)
Print a time unit value.
|
Modifier and Type | Field and Description |
---|---|
protected TimeUnit |
Document.Projects.Project.Task.baseDurationTimeUnit |
protected TimeUnit |
Document.Resources.Resource.costTimeUnit |
protected TimeUnit |
Document.Links.Link.lagUnit |
Modifier and Type | Method and Description |
---|---|
TimeUnit |
Document.Projects.Project.Task.getBaseDurationTimeUnit()
Gets the value of the baseDurationTimeUnit property.
|
TimeUnit |
Document.Resources.Resource.getCostTimeUnit()
Gets the value of the costTimeUnit property.
|
TimeUnit |
Document.Links.Link.getLagUnit()
Gets the value of the lagUnit property.
|
TimeUnit |
Adapter8.unmarshal(String value) |
Modifier and Type | Method and Description |
---|---|
String |
Adapter8.marshal(TimeUnit value) |
void |
Document.Projects.Project.Task.setBaseDurationTimeUnit(TimeUnit value)
Sets the value of the baseDurationTimeUnit property.
|
void |
Document.Resources.Resource.setCostTimeUnit(TimeUnit value)
Sets the value of the costTimeUnit property.
|
void |
Document.Links.Link.setLagUnit(TimeUnit value)
Sets the value of the lagUnit property.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
JsonWriter.getTimeUnits()
Retrieve the time units used for durations.
|
Modifier and Type | Method and Description |
---|---|
void |
JsonWriter.setTimeUnits(TimeUnit value)
Set the time units to use for durations.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
MPDUtility.getDurationTimeUnits(int type)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
Modifier and Type | Method and Description |
---|---|
static Duration |
MPDUtility.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 |
MPDUtility.getDuration(double value,
TimeUnit type)
Reads a duration value.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
MPPUtility.getDurationTimeUnits(int type)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
static TimeUnit |
MPPUtility.getDurationTimeUnits(int type,
TimeUnit projectDefaultDurationUnits)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
static TimeUnit |
MPPUtility.getWorkTimeUnits(int value)
This method maps from the value used to specify default work units in the
MPP file to a standard TimeUnit.
|
Modifier and Type | Method and Description |
---|---|
static Duration |
MPPUtility.getAdjustedDuration(ProjectProperties properties,
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 |
MPPUtility.getDuration(double value,
TimeUnit type)
Reads a duration value.
|
static Duration |
MPPUtility.getDuration(int value,
TimeUnit type)
Reads a duration value.
|
static TimeUnit |
MPPUtility.getDurationTimeUnits(int type,
TimeUnit projectDefaultDurationUnits)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
DatatypeConverter.parseDurationTimeUnits(BigInteger value)
Parse duration time units.
|
static TimeUnit |
DatatypeConverter.parseDurationTimeUnits(BigInteger value,
TimeUnit defaultValue)
Parse duration time units.
|
static TimeUnit |
DatatypeConverter.parseTimeUnit(Number value)
Parse time unit.
|
static TimeUnit |
DatatypeConverter.parseWorkUnits(BigInteger value)
Parse work units.
|
Modifier and Type | Method and Description |
---|---|
static void |
DatatypeConverter.parseCustomField(ProjectFile file,
FieldContainer mpx,
String value,
FieldType mpxFieldID,
TimeUnit durationFormat)
Parse a custom field value.
|
static Duration |
DatatypeConverter.parseDuration(ProjectFile file,
TimeUnit defaultUnits,
String value)
Parse a duration.
|
static Duration |
DatatypeConverter.parseDurationInTenthsOfMinutes(ProjectProperties properties,
Number value,
TimeUnit targetTimeUnit)
Parse duration represented as tenths of minutes.
|
static Duration |
DatatypeConverter.parseDurationInThousanthsOfMinutes(ProjectProperties properties,
Number value,
TimeUnit targetTimeUnit)
Parse duration represented in thousandths of minutes.
|
static TimeUnit |
DatatypeConverter.parseDurationTimeUnits(BigInteger value,
TimeUnit defaultValue)
Parse duration time units.
|
static Rate |
DatatypeConverter.parseRate(BigDecimal originalValue,
TimeUnit targetUnits)
Parse rate.
|
static BigInteger |
DatatypeConverter.printDurationTimeUnits(TimeUnit value,
boolean estimated)
Print duration time units.
|
static BigInteger |
DatatypeConverter.printTimeUnit(TimeUnit value)
Print time unit.
|
static BigInteger |
DatatypeConverter.printWorkUnits(TimeUnit value)
Print work units.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
DatatypeConverter.parseTimeUnits(String value)
Convert the Phoenix representation of a time unit into a TimeUnit instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
DatatypeConverter.printTimeUnits(TimeUnit type)
Retrieve a time unit in the form required by Phoenix.
|
Copyright © 2000–2024 Packwood Software. All rights reserved.