conversation listlengths 2 2 |
|---|
[
{
"content": "Prints a currency symbol position value.\n\n@param value CurrencySymbolPosition instance\n@return currency symbol position",
"role": "user"
},
{
"content": "public static final String printCurrencySymbolPosition(CurrencySymbolPosition value)\n {\n String result;\n\n switch ... |
[
{
"content": "Parse a currency symbol position value.\n\n@param value currency symbol position\n@return CurrencySymbolPosition instance",
"role": "user"
},
{
"content": "public static final CurrencySymbolPosition parseCurrencySymbolPosition(String value)\n {\n CurrencySymbolPosition result = ... |
[
{
"content": "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value",
"role": "user"
},
{
"content": "public static final String printAccrueType(AccrueType value)\n {\n return (Integer.toString(value == null ? AccrueType.PRORATED.getValue() : value.getValue()));... |
[
{
"content": "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value",
"role": "user"
},
{
"content": "public static final String printResourceType(ResourceType value)\n {\n return (Integer.toString(value == null ? ResourceType.WORK.getValue() : value.getVal... |
[
{
"content": "Print a work group.\n\n@param value WorkGroup instance\n@return work group value",
"role": "user"
},
{
"content": "public static final String printWorkGroup(WorkGroup value)\n {\n return (Integer.toString(value == null ? WorkGroup.DEFAULT.getValue() : value.getValue()));\n }",... |
[
{
"content": "Print a work contour.\n\n@param value WorkContour instance\n@return work contour value",
"role": "user"
},
{
"content": "public static final String printWorkContour(WorkContour value)\n {\n return (Integer.toString(value == null ? WorkContour.FLAT.getValue() : value.getValue()))... |
[
{
"content": "Print a booking type.\n\n@param value BookingType instance\n@return booking type value",
"role": "user"
},
{
"content": "public static final String printBookingType(BookingType value)\n {\n return (Integer.toString(value == null ? BookingType.COMMITTED.getValue() : value.getValu... |
[
{
"content": "Print a task type.\n\n@param value TaskType instance\n@return task type value",
"role": "user"
},
{
"content": "public static final String printTaskType(TaskType value)\n {\n return (Integer.toString(value == null ? TaskType.FIXED_UNITS.getValue() : value.getValue()));\n }",
... |
[
{
"content": "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value",
"role": "user"
},
{
"content": "public static final BigInteger printEarnedValueMethod(EarnedValueMethod value)\n {\n return (value == null ? BigInteger.valueOf(EarnedVal... |
[
{
"content": "Print units.\n\n@param value units value\n@return units value",
"role": "user"
},
{
"content": "public static final BigDecimal printUnits(Number value)\n {\n return (value == null ? BIGDECIMAL_ONE : new BigDecimal(value.doubleValue() / 100));\n }",
"role": "assistant"
}
... |
[
{
"content": "Parse units.\n\n@param value units value\n@return units value",
"role": "user"
},
{
"content": "public static final Number parseUnits(Number value)\n {\n return (value == null ? null : NumberHelper.getDouble(value.doubleValue() * 100));\n }",
"role": "assistant"
}
] |
[
{
"content": "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value",
"role": "user"
},
{
"content": "public static final BigInteger printTimeUnit(TimeUnit value)\n {\n return (BigInteger.valueOf(value == null ? TimeUnit.DAYS.getValue() + 1 : value.getValue() + 1));\n ... |
[
{
"content": "Parse work units.\n\n@param value work units value\n@return TimeUnit instance",
"role": "user"
},
{
"content": "public static final TimeUnit parseWorkUnits(BigInteger value)\n {\n TimeUnit result = TimeUnit.HOURS;\n\n if (value != null)\n {\n switch (value.intV... |
[
{
"content": "Print work units.\n\n@param value TimeUnit instance\n@return work units value",
"role": "user"
},
{
"content": "public static final BigInteger printWorkUnits(TimeUnit value)\n {\n int result;\n\n if (value == null)\n {\n value = TimeUnit.HOURS;\n }\n\n ... |
[
{
"content": "Parse currency.\n\n@param value currency value\n@return currency value",
"role": "user"
},
{
"content": "public static final Double parseCurrency(Number value)\n {\n return (value == null ? null : NumberHelper.getDouble(value.doubleValue() / 100));\n }",
"role": "assistant... |
[
{
"content": "Print currency.\n\n@param value currency value\n@return currency value",
"role": "user"
},
{
"content": "public static final BigDecimal printCurrency(Number value)\n {\n return (value == null || value.doubleValue() == 0 ? null : new BigDecimal(value.doubleValue() * 100));\n }"... |
[
{
"content": "Parse duration time units.\n\nNote that we don't differentiate between confirmed and unconfirmed\ndurations. Unrecognised duration types are default the supplied default value.\n\n@param value BigInteger value\n@param defaultValue if value is null, use this value as the result\n@return Duration un... |
[
{
"content": "Parse priority.\n\n\n@param priority priority value\n@return Priority instance",
"role": "user"
},
{
"content": "public static final Priority parsePriority(BigInteger priority)\n {\n return (priority == null ? null : Priority.getInstance(priority.intValue()));\n }",
"role"... |
[
{
"content": "Print priority.\n\n@param priority Priority instance\n@return priority value",
"role": "user"
},
{
"content": "public static final BigInteger printPriority(Priority priority)\n {\n int result = Priority.MEDIUM;\n\n if (priority != null)\n {\n result = priority.... |
[
{
"content": "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance",
"role": "user"
},
{
"content": "public static final Duration parseDurationInThousant... |
[
{
"content": "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes",
"role": "user"
},
{
"content": "public static final BigDecimal printDurationInDecimalThousandthsOfMinutes(Duration duration)\n {\n BigDecimal result = nul... |
[
{
"content": "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes",
"role": "user"
},
{
"content": "public static final BigInteger printDurationInIntegerTenthsOfMinutes(Duration duration)\n {\n BigInteger result = null;\n\n if ... |
[
{
"content": "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance",
"role": "user"
},
{
"content": "public static final UUID parseUUID(String value)\n {\n return value == null || value.isEmpty() ? null : UUID.fromString(... |
[
{
"content": "Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param factor required fraction of a minute\n@return Duration instance",
"role": "user"
},
{
"content"... |
[
{
"content": "Print a duration represented by an arbitrary fraction of minutes.\n\n@param duration Duration instance\n@param factor required factor\n@return duration represented as an arbitrary fraction of minutes",
"role": "user"
},
{
"content": "private static final double printDurationFractionsOf... |
[
{
"content": "Print rate.\n\n@param rate Rate instance\n@return rate value",
"role": "user"
},
{
"content": "public static final BigDecimal printRate(Rate rate)\n {\n BigDecimal result = null;\n if (rate != null && rate.getAmount() != 0)\n {\n result = new BigDecimal(rate.ge... |
[
{
"content": "Parse rate.\n\n@param value rate value\n@return Rate instance",
"role": "user"
},
{
"content": "public static final Rate parseRate(BigDecimal value)\n {\n Rate result = null;\n\n if (value != null)\n {\n result = new Rate(value, TimeUnit.HOURS);\n }\n\n ... |
[
{
"content": "Print a day.\n\n@param day Day instance\n@return day value",
"role": "user"
},
{
"content": "public static final BigInteger printDay(Day day)\n {\n return (day == null ? null : BigInteger.valueOf(day.getValue() - 1));\n }",
"role": "assistant"
}
] |
[
{
"content": "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value",
"role": "user"
},
{
"content": "public static final BigInteger printConstraintType(ConstraintType value)\n {\n return (value == null ? null : BigInteger.valueOf(value.getValue()));\... |
[
{
"content": "Print a task UID.\n\n@param value task UID\n@return task UID string",
"role": "user"
},
{
"content": "public static final String printTaskUID(Integer value)\n {\n ProjectFile file = PARENT_FILE.get();\n if (file != null)\n {\n file.getEventManager().fireTaskWri... |
[
{
"content": "Print a resource UID.\n\n@param value resource UID value\n@return resource UID string",
"role": "user"
},
{
"content": "public static final String printResourceUID(Integer value)\n {\n ProjectFile file = PARENT_FILE.get();\n if (file != null)\n {\n file.getEven... |
[
{
"content": "Parse a boolean.\n\n@param value boolean\n@return Boolean value",
"role": "user"
},
{
"content": "public static final Boolean parseBoolean(String value)\n {\n return (value == null || value.charAt(0) != '1' ? Boolean.FALSE : Boolean.TRUE);\n }",
"role": "assistant"
}
] |
[
{
"content": "Print a date time value.\n\n@param value date time value\n@return string representation",
"role": "user"
},
{
"content": "public static final String printDateTime(Date value)\n {\n return (value == null ? null : DATE_FORMAT.get().format(value));\n }",
"role": "assistant"
... |
[
{
"content": "Detect numbers using comma as a decimal separator and replace with period.\n\n@param value original numeric value\n@return corrected numeric value",
"role": "user"
},
{
"content": "private static final String correctNumberFormat(String value)\n {\n String result;\n int inde... |
[
{
"content": "Convenience method which locates the first P3 database in a directory\nand opens it.\n\n@param directory directory containing a P3 database\n@return ProjectFile instance",
"role": "user"
},
{
"content": "public static final ProjectFile setProjectNameAndRead(File directory) throws MPXJE... |
[
{
"content": "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names",
"role": "user"
},
{
"content": "public static final List<String> listProjectNames(File directory)\n {\n List<String> result = ne... |
[
{
"content": "Read general project properties.",
"role": "user"
},
{
"content": "private void readProjectHeader()\n {\n Table table = m_tables.get(\"DIR\");\n MapRow row = table.find(\"\");\n if (row != null)\n {\n setFields(PROJECT_FIELDS, row, m_projectFile.getProject... |
[
{
"content": "Read tasks representing the WBS.",
"role": "user"
},
{
"content": "private void readWBS()\n {\n Map<Integer, List<MapRow>> levelMap = new HashMap<Integer, List<MapRow>>();\n for (MapRow row : m_tables.get(\"STR\"))\n {\n Integer level = row.getInteger(\"LEVEL_N... |
[
{
"content": "Read task relationships.",
"role": "user"
},
{
"content": "private void readRelationships()\n {\n for (MapRow row : m_tables.get(\"REL\"))\n {\n Task predecessor = m_activityMap.get(row.getString(\"PREDECESSOR_ACTIVITY_ID\"));\n Task successor = m_activityMa... |
[
{
"content": "Set the value of one or more fields based on the contents of a database row.\n\n@param map column to field map\n@param row database row\n@param container field container",
"role": "user"
},
{
"content": "private void setFields(Map<String, FieldType> map, MapRow row, FieldContainer cont... |
[
{
"content": "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type",
"role": "user"
},
{
"content": "private static void defineField(Map<String, FieldType> container, String name, FieldType type)\n {\n... |
[
{
"content": "This method recursively descends the directory structure, dumping\ndetails of any files it finds to the output file.\n\n@param pw Output PrintWriter\n@param dir DirectoryEntry to dump\n@param prefix prefix used to identify path to this object\n@param showData flag indicating if data is dumped, or ... |
[
{
"content": "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors",
"role": "user"
},
{
"content": "private static long he... |
[
{
"content": "This method dumps the entire contents of a file to an output\nprint writer as ascii data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors",
"role": "user"
},
{
"content": "private static long asciidump(... |
[
{
"content": "This method merges together assignment data for the same cost.\n\n@param list assignment data",
"role": "user"
},
{
"content": "protected void mergeSameCost(LinkedList<TimephasedCost> list)\n {\n LinkedList<TimephasedCost> result = new LinkedList<TimephasedCost>();\n\n Time... |
[
{
"content": "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream",
"role": "user"
},
{
"content": "@Override public void write(ProjectFile projectFile, OutputStream out) throws IOException\n {\n m_projectFile = project... |
[
{
"content": "Write project properties.\n\n@param record project properties\n@throws IOException",
"role": "user"
},
{
"content": "private void writeProjectProperties(ProjectProperties record) throws IOException\n {\n // the ProjectProperties class from MPXJ has the details of how many days p... |
[
{
"content": "This will create a line in the SDEF file for each calendar\nif there are more than 9 calendars, you'll have a big error,\nas USACE numbers them 0-9.\n\n@param records list of ProjectCalendar instances",
"role": "user"
},
{
"content": "private void writeCalendars(List<ProjectCalendar> r... |
[
{
"content": "Write calendar exceptions.\n\n@param records list of ProjectCalendars\n@throws IOException",
"role": "user"
},
{
"content": "private void writeExceptions(List<ProjectCalendar> records) throws IOException\n {\n for (ProjectCalendar record : records)\n {\n if (!record... |
[
{
"content": "Write each predecessor for a task.\n\n@param record Task instance",
"role": "user"
},
{
"content": "private void writeTaskPredecessors(Task record)\n {\n m_buffer.setLength(0);\n //\n // Write the task predecessor\n //\n if (!record.getSummary() && !record.ge... |
[
{
"content": "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration",
"role": "user"
},
{
"content": "private Duration getAssignmentWork(ProjectCalendar calendar, TimephasedWork assignment)... |
[
{
"content": "Create the work pattern assignment map.\n\n@param rows calendar rows\n@return work pattern assignment map",
"role": "user"
},
{
"content": "private Map<Integer, List<Row>> createWorkPatternAssignmentMap(List<Row> rows) throws ParseException\n {\n Map<Integer, List<Row>> map = ne... |
[
{
"content": "Extract a list of work pattern assignments.\n\n@param workPatterns string representation of work pattern assignments\n@return list of work pattern assignment rows",
"role": "user"
},
{
"content": "private List<Row> createWorkPatternAssignmentRowList(String workPatterns) throws ParseExc... |
[
{
"content": "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map",
"role": "user"
},
{
"content": "private Map<Integer, List<Row>> createExceptionAssignmentMap(List<Row> rows)\n {\n Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>(... |
[
{
"content": "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows",
"role": "user"
},
{
"content": "private List<Row> createExceptionAssignmentRowList(String exceptionData)\n {\n List<Row> l... |
[
{
"content": "Create the time entry map.\n\n@param rows work pattern rows\n@return time entry map",
"role": "user"
},
{
"content": "private Map<Integer, List<Row>> createTimeEntryMap(List<Row> rows) throws ParseException\n {\n Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>();\n... |
[
{
"content": "Extract a list of time entries.\n\n@param shiftData string representation of time entries\n@return list of time entry rows",
"role": "user"
},
{
"content": "private List<Row> createTimeEntryRowList(String shiftData) throws ParseException\n {\n List<Row> list = new ArrayList<Row>... |
[
{
"content": "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure",
"role": "user"
},
{
"content": "public Map<Integer, TableDefinition> tableDefinitions()\n {\n ... |
[
{
"content": "Generate an ordered set of column definitions from an ordered set of column names.\n\n@param columns column definitions\n@param order column names\n@return ordered set of column definitions",
"role": "user"
},
{
"content": "private ColumnDefinition[] columnDefinitions(ColumnDefinition[... |
[
{
"content": "Convert an array of column definitions into a map keyed by column name.\n\n@param columns array of column definitions\n@return map of column definitions",
"role": "user"
},
{
"content": "private Map<String, ColumnDefinition> makeColumnMap(ColumnDefinition[] columns)\n {\n Map<St... |
[
{
"content": "This method writes project extended attribute data into an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void writeProjectExtendedAttributes(Project project)\n {\n Project.ExtendedAttributes attributes = m_factory.createProje... |
[
{
"content": "This method writes calendar data to an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void writeCalendars(Project project)\n {\n //\n // Create the new MSPDI calendar list\n //\n Project.Calendars calendars = m_... |
[
{
"content": "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance",
"role": "user"
},
{
"content": "private Project.Calendars.Calendar writeCalendar(ProjectCalendar bc)\n {\n //\n // Create a calendar\n ... |
[
{
"content": "Main entry point used to determine the format used to write\ncalendar exceptions.\n\n@param calendar parent calendar\n@param dayList list of calendar days\n@param exceptions list of exceptions",
"role": "user"
},
{
"content": "private void writeExceptions(Project.Calendars.Calendar cal... |
[
{
"content": "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions",
"role": "user"
},
{
"content": "private void writeExceptions9(List<Project.Calendars.Calendar.WeekDays.WeekDay> dayList, List<Projec... |
[
{
"content": "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions",
"role": "user"
},
{
"content": "private void writeExceptions12(Project.Calendars.Calendar calendar, List<ProjectCalendarException>... |
[
{
"content": "Writes the details of a recurring exception.\n\n@param mpxjException source MPXJ calendar exception\n@param xmlException target MSPDI exception",
"role": "user"
},
{
"content": "private void populateRecurringException(ProjectCalendarException mpxjException, Exceptions.Exception xmlExce... |
[
{
"content": "Converts days of the week into a bit field.\n\n@param data recurring data\n@return bit field",
"role": "user"
},
{
"content": "private BigInteger getDaysOfTheWeek(RecurringData data)\n {\n int value = 0;\n for (Day day : Day.values())\n {\n if (data.getWeeklyDa... |
[
{
"content": "Write the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar instance\n@param mpxjCalendar MPXJ calendar instance",
"role": "user"
},
{
"content": "private void writeWorkWeeks(Project.Calendars.Calendar xmlCalendar, ProjectCalendar mpxjCalendar)\n {\n L... |
[
{
"content": "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void writeResources(Project project)\n {\n Project.Resources resources = m_factory.createProjectResources();\n project.setResources(res... |
[
{
"content": "Writes resource baseline data.\n\n@param xmlResource MSPDI resource\n@param mpxjResource MPXJ resource",
"role": "user"
},
{
"content": "private void writeResourceBaselines(Project.Resources.Resource xmlResource, Resource mpxjResource)\n {\n Project.Resources.Resource.Baseline b... |
[
{
"content": "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource",
"role": "user"
},
{
"content": "private void writeResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx)\n {\n Project.Resources.Resource.Extende... |
[
{
"content": "Writes a resource's cost rate tables.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource",
"role": "user"
},
{
"content": "private void writeCostRateTables(Project.Resources.Resource xml, Resource mpx)\n {\n //Rates rates = m_factory.createProjectResourcesResourceRates();\n ... |
[
{
"content": "This method determines whether the cost rate table should be written.\nA default cost rate table should not be written to the file.\n\n@param entry cost rate table entry\n@param from from date\n@return boolean flag",
"role": "user"
},
{
"content": "private boolean costRateTableWriteReq... |
[
{
"content": "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource",
"role": "user"
},
{
"content": "private void writeAvailability(Project.Resources.Resource xml, Resource mpx)\n {\n AvailabilityPeriods periods = m_factory.createProjectRe... |
[
{
"content": "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void writeTasks(Project project)\n {\n Project.Tasks tasks = m_factory.createProjectTasks();\n project.setTasks(tasks);\n List<Project... |
[
{
"content": "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task",
"role": "user"
},
{
"content": "private void writeTaskBaselines(Project.Tasks.Task xmlTask, Task mpxjTask)\n {\n Project.Tasks.Task.Baseline baseline = m_factory.createProjectTasksTaskBaseline()... |
[
{
"content": "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task",
"role": "user"
},
{
"content": "private void writeTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx)\n {\n Project.Tasks.Task.ExtendedAttribute attrib;\n List<Proje... |
[
{
"content": "Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units",
"role": "user"
},
{
"content": "private BigInteger printExtendedAttributeDurationFormat(Object value)\n {\n BigInteger result = null;\n if (value instanceof Duration)\n... |
[
{
"content": "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID",
"role": "user"
},
{
"content": "private BigInteger getTaskCalendarID(Task mpx)\n {\n BigInteger result = null;\n ProjectCalendar cal = mpx.getCalenda... |
[
{
"content": "This method writes predecessor data to an MSPDI file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which mean... |
[
{
"content": "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file",
"role": "user"
},
{
"content": "private Project.Tasks.Task.PredecessorLink wr... |
[
{
"content": "This method writes assignment data to an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void writeAssignments(Project project)\n {\n Project.Assignments assignments = m_factory.createProjectAssignments();\n project.setAss... |
[
{
"content": "Writes assignment baseline data.\n\n@param xml MSPDI assignment\n@param mpxj MPXJ assignment",
"role": "user"
},
{
"content": "private void writeAssignmentBaselines(Project.Assignments.Assignment xml, ResourceAssignment mpxj)\n {\n Project.Assignments.Assignment.Baseline baselin... |
[
{
"content": "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment",
"role": "user"
},
{
"content": "private void writeAssignmentExtendedAttributes(Project.Assignments.Assignment xml, ResourceAssignment mpx)\n {\n Project.Ass... |
[
{
"content": "Writes the timephased data for a resource assignment.\n\n@param mpx MPXJ assignment\n@param xml MSDPI assignment",
"role": "user"
},
{
"content": "private void writeAssignmentTimephasedData(ResourceAssignment mpx, Project.Assignments.Assignment xml)\n {\n if (m_writeTimphasedDat... |
[
{
"content": "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)",
"role": "user"
},
{
"content": "private void wri... |
[
{
"content": "Retrieve list of assignment extended attributes.\n\n@return list of extended attributes",
"role": "user"
},
{
"content": "private List<AssignmentField> getAllAssignmentExtendedAttributes()\n {\n ArrayList<AssignmentField> result = new ArrayList<AssignmentField>();\n result.... |
[
{
"content": "Retrieve list of task extended attributes.\n\n@return list of extended attributes",
"role": "user"
},
{
"content": "private List<TaskField> getAllTaskExtendedAttributes()\n {\n ArrayList<TaskField> result = new ArrayList<TaskField>();\n result.addAll(Arrays.asList(TaskField... |
[
{
"content": "Retrieve list of resource extended attributes.\n\n@return list of extended attributes",
"role": "user"
},
{
"content": "private List<ResourceField> getAllResourceExtendedAttributes()\n {\n ArrayList<ResourceField> result = new ArrayList<ResourceField>();\n result.addAll(Arr... |
[
{
"content": "Process an individual UDF.\n\n@param udf UDF definition",
"role": "user"
},
{
"content": "private void processUDF(UDFTypeType udf)\n {\n FieldTypeClass fieldType = FIELD_TYPE_MAP.get(udf.getSubjectArea());\n if (fieldType != null)\n {\n UserFieldDataType dataTy... |
[
{
"content": "Map the Primavera UDF to a custom field.\n\n@param fieldType parent object type\n@param dataType UDF data type\n@param name UDF name\n@return FieldType instance",
"role": "user"
},
{
"content": "private FieldType addUserDefinedField(FieldTypeClass fieldType, UserFieldDataType dataType,... |
[
{
"content": "Render a zero Double as null.\n\n@param value double value\n@return null if the double value is zero",
"role": "user"
},
{
"content": "private Double zeroIsNull(Double value)\n {\n if (value != null && value.doubleValue() == 0)\n {\n value = null;\n }\n re... |
[
{
"content": "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance",
"role": "user"
},
{
"content": "private Duration getDuration(Double duration)\n {\n Duration result = null;\n\n if (duration != null)\n {\n ... |
[
{
"content": "Process UDFs for a specific object.\n\n@param mpxj field container\n@param udfs UDF values",
"role": "user"
},
{
"content": "private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs)\n {\n for (UDFAssignmentType udf : udfs)\n {\n FieldType fieldTy... |
[
{
"content": "Retrieve the value of a UDF.\n\n@param udf UDF value holder\n@return UDF value",
"role": "user"
},
{
"content": "private Object getUdfValue(UDFAssignmentType udf)\n {\n if (udf.getCostValue() != null)\n {\n return udf.getCostValue();\n }\n \n if (udf.... |
[
{
"content": "Deals with the case where we have had to map a task ID to a new value.\n\n@param id task ID from database\n@return mapped task ID",
"role": "user"
},
{
"content": "private Integer mapTaskID(Integer id)\n {\n Integer mappedID = m_clashMap.get(id);\n if (mappedID == null)\n ... |
[
{
"content": "This method evaluates a if a graphical indicator should\nbe displayed, given a set of Task or Resource data. The\nmethod will return -1 if no indicator should be displayed.\n\n@param container Task or Resource instance\n@return indicator index",
"role": "user"
},
{
"content": "public i... |
[
{
"content": "Write file creation record.\n\n@throws IOException",
"role": "user"
},
{
"content": "private void writeFileCreationRecord() throws IOException\n {\n ProjectProperties properties = m_projectFile.getProjectProperties();\n\n m_buffer.setLength(0);\n m_buffer.append(\"MPX\... |
[
{
"content": "Write a calendar.\n\n@param record calendar instance\n@throws IOException",
"role": "user"
},
{
"content": "private void writeCalendar(ProjectCalendar record) throws IOException\n {\n //\n // Test used to ensure that we don't write the default calendar used for the \"Unassi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.