conversation
listlengths
2
2
[ { "content": "This method extracts resource data from a GanttProject file.\n\n@param ganttProject parent node for resources", "role": "user" }, { "content": "private void readResources(Project ganttProject)\n {\n Resources resources = ganttProject.getResources();\n readResourceCustomProp...
[ { "content": "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources", "role": "user" }, { "content": "private void readResourceCustomPropertyDefinitions(Resources gpResources)\n {\n CustomField field = m_projectFile.getCustomFields().getCustomField(Resou...
[ { "content": "Read custom property definitions for tasks.\n\n@param gpTasks GanttProject tasks", "role": "user" }, { "content": "private void readTaskCustomPropertyDefinitions(Tasks gpTasks)\n {\n for (Taskproperty definition : gpTasks.getTaskproperties().getTaskproperty())\n {\n ...
[ { "content": "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project", "role": "user" }, { "content": "private void readRoleDefinitions(Project gpProject)\n {\n m_roleDefinitions.put(\"Default:1\", \"project manager\");\n\n for (Roles roles : gpPr...
[ { "content": "This method extracts data for a single resource from a GanttProject file.\n\n@param gpResource resource data", "role": "user" }, { "content": "private void readResource(net.sf.mpxj.ganttproject.schema.Resource gpResource)\n {\n Resource mpxjResource = m_projectFile.addResource()...
[ { "content": "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance", "role": "user" }, { "content": "private void readResourceCustomFields(net.sf.mpxj.ganttproject.schema.Resource gpResource, Resource mpxjResource)\n ...
[ { "content": "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "role": "user" }, { "content": "private void readTaskCustomFields(net.sf.mpxj.ganttproject.schema.Task gpTask, Task mpxjTask)\n {\n //\n // Populate custom f...
[ { "content": "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project", "role": "user" }, { "content": "private void readTasks(Project gpProject)\n {\n Tasks tasks = gpProject.getTasks();\n readTaskCustomPropertyDefinitions(tasks);\n for (net.sf.mpxj.gan...
[ { "content": "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task", "role": "user" }, { "content": "private void readTask(ChildTaskContainer mpxjParent, net.sf.mpxj.ganttproject.schema.Task gpTask)\n {\n Task mpxjTask = m...
[ { "content": "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance", "role": "user" }, { "content": "private Priority getPriority(Integer gpPriority)\n {\n int result;\n if (gpPriority == null...
[ { "content": "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "role": "user" }, { "content": "private void readRelationships(Project gpProject)\n {\n for (net.sf.mpxj.ganttproject.schema.Task gpTask : gpProject.getTasks().getTask())\n {\n ...
[ { "content": "Read the relationships for an individual GanttProject task.\n\n@param gpTask GanttProject task", "role": "user" }, { "content": "private void readRelationships(net.sf.mpxj.ganttproject.schema.Task gpTask)\n {\n for (Depend depend : gpTask.getDepend())\n {\n Task tas...
[ { "content": "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "role": "user" }, { "content": "private RelationType getRelationType(Integer gpType)\n {\n RelationType result = nu...
[ { "content": "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "role": "user" }, { "content": "private void readResourceAssignments(Project gpProject)\n {\n Allocations allocations = gpProject.getAllocations();\n if (allocations != nul...
[ { "content": "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment.", "role": "user" }, { "content": "private void readResourceAssignment(Allocation gpAllocation)\n {\n Integer taskID = Integer.valueOf(NumberHelper.getInt(gpAllocation.ge...
[ { "content": "Write a list of custom field attributes.", "role": "user" }, { "content": "private void writeCustomFields() throws IOException\n {\n m_writer.writeStartList(\"custom_fields\");\n for (CustomField field : m_projectFile.getCustomFields())\n {\n writeCustomField(f...
[ { "content": "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException", "role": "u...
[ { "content": "This method writes project property data to a JSON file.", "role": "user" }, { "content": "private void writeProperties() throws IOException\n {\n writeAttributeTypes(\"property_types\", ProjectField.values());\n writeFields(\"property_values\", m_projectFile.getProjectProp...
[ { "content": "This method writes resource data to a JSON file.", "role": "user" }, { "content": "private void writeResources() throws IOException\n {\n writeAttributeTypes(\"resource_types\", ResourceField.values());\n\n m_writer.writeStartList(\"resources\");\n for (Resource resour...
[ { "content": "This method writes task data to a JSON file.\nNote that we write the task hierarchy in order to make rebuilding the hierarchy easier.", "role": "user" }, { "content": "private void writeTasks() throws IOException\n {\n writeAttributeTypes(\"task_types\", TaskField.values());\n\n...
[ { "content": "This method is called recursively to write a task and its child tasks\nto the JSON file.\n\n@param task task to write", "role": "user" }, { "content": "private void writeTask(Task task) throws IOException\n {\n writeFields(null, task, TaskField.values());\n for (Task child ...
[ { "content": "This method writes assignment data to a JSON file.", "role": "user" }, { "content": "private void writeAssignments() throws IOException\n {\n writeAttributeTypes(\"assignment_types\", AssignmentField.values());\n\n m_writer.writeStartList(\"assignments\");\n for (Resou...
[ { "content": "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write", "role": "user" }, { "content": "private void writeAttributeTypes(String name, FieldType[] types) throws IOException\n {\n m_writer.writeStartObject(name);\n ...
[ { "content": "Write a set of fields from a field container to a JSON file.\n@param objectName name of the object, or null if no name required\n@param container field container\n@param fields fields to write", "role": "user" }, { "content": "private void writeFields(String objectName, FieldContainer ...
[ { "content": "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeIntegerField(String fieldName, Object value) throws IOException\n {\n int val = ((Number) value).intValue();\n if (val != 0)...
[ { "content": "Write an double field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeDoubleField(String fieldName, Object value) throws IOException\n {\n double val = ((Number) value).doubleValue();\n if (val !...
[ { "content": "Write a boolean field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeBooleanField(String fieldName, Object value) throws IOException\n {\n boolean val = ((Boolean) value).booleanValue();\n if (v...
[ { "content": "Write a duration field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeDurationField(String fieldName, Object value) throws IOException\n {\n if (value instanceof String)\n {\n m_writer.w...
[ { "content": "Write a date field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeDateField(String fieldName, Object value) throws IOException\n {\n if (value instanceof String)\n {\n m_writer.writeName...
[ { "content": "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeTimeUnitsField(String fieldName, Object value) throws IOException\n {\n TimeUnit val = (TimeUnit) value;\n if (val != m_pr...
[ { "content": "Write a priority field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writePriorityField(String fieldName, Object value) throws IOException\n {\n m_writer.writeNameValuePair(fieldName, ((Priority) value)....
[ { "content": "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeMap(String fieldName, Object value) throws IOException\n {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> map = (Map<St...
[ { "content": "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeStringField(String fieldName, Object value) throws IOException\n {\n String val = value.toString();\n if (!val.isEmpty())\n ...
[ { "content": "Write a relation list field to the JSON file.\n\n@param fieldName field name\n@param value field value", "role": "user" }, { "content": "private void writeRelationList(String fieldName, Object value) throws IOException\n {\n @SuppressWarnings(\"unchecked\")\n List<Relation>...
[ { "content": "Retrieve an instance of the ResourceField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return instance of this class", "role": "user" }, { "content": "public static ResourceField getMpxjField(int value)\n {\n ResourceField resul...
[ { "content": "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "role": "user" }, { "content": "public boolean evaluate(FieldContaine...
[ { "content": "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "role": "user" }, { "content": "public void parseRawValue(String value)\n {\n int valueIndex = 0;\n int elementIndex = 0;\n m_elements.cle...
[ { "content": "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "role": "user" }, { "content": "public String getFormattedParentValue()\n {\n String result = null;\n if (m_elements.size() > 2)\n {\n result = joinElements(m_elements.size() - 2)...
[ { "content": "Joins the individual WBS elements to make the formated value.\n\n@param length number of elements to join\n@return formatted WBS value", "role": "user" }, { "content": "private String joinElements(int length)\n {\n StringBuilder sb = new StringBuilder();\n for (int index = ...
[ { "content": "Add tasks to the tree.\n\n@param parentNode parent tree node\n@param parent parent task container", "role": "user" }, { "content": "private void addTasks(MpxjTreeNode parentNode, ChildTaskContainer parent)\n {\n for (Task task : parent.getChildTasks())\n {\n final T...
[ { "content": "Add resources to the tree.\n\n@param parentNode parent tree node\n@param file resource container", "role": "user" }, { "content": "private void addResources(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (Resource resource : file.getResources())\n {\n final Re...
[ { "content": "Add calendars to the tree.\n\n@param parentNode parent tree node\n@param file calendar container", "role": "user" }, { "content": "private void addCalendars(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (ProjectCalendar calendar : file.getCalendars())\n {\n a...
[ { "content": "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "role": "user" }, { "content": "private void addCalendar(MpxjTreeNode parentNode, final ProjectCalendar calendar)\n {\n MpxjTreeNode calendarNode = new MpxjTreeNode(calendar, CALENDAR_EXCLUDED_METH...
[ { "content": "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day", "role": "user" }, { "content": "private void addCalendarDay(MpxjTreeNode parentNode, ProjectCalendar calendar, final Day day)\n {\n MpxjTreeNode dayNode...
[ { "content": "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "role": "user" }, { "content": "private void addHours(MpxjTreeNode parentNode, ProjectCalendarDateRanges hours)\n {\n for (DateRange range : hours)\n {\n final DateRange r ...
[ { "content": "Add an exception to a calendar.\n\n@param parentNode parent node\n@param exception calendar exceptions", "role": "user" }, { "content": "private void addCalendarException(MpxjTreeNode parentNode, final ProjectCalendarException exception)\n {\n MpxjTreeNode exceptionNode = new Mp...
[ { "content": "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "role": "user" }, { "content": "private void addGroups(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (Group group : file.getGroups())\n {\n final Group g = group;\n ...
[ { "content": "Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container", "role": "user" }, { "content": "private void addCustomFields(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (CustomField field : file.getCustomFields())\n {\n ...
[ { "content": "Add views to the tree.\n\n@param parentNode parent tree node\n@param file views container", "role": "user" }, { "content": "private void addViews(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (View view : file.getViews())\n {\n final View v = view;\n ...
[ { "content": "Add tables to the tree.\n\n@param parentNode parent tree node\n@param file tables container", "role": "user" }, { "content": "private void addTables(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (Table table : file.getTables())\n {\n final Table t = table;\n ...
[ { "content": "Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container", "role": "user" }, { "content": "private void addColumns(MpxjTreeNode parentNode, Table table)\n {\n for (Column column : table.getColumns())\n {\n final Column c = colum...
[ { "content": "Add filters to the tree.\n\n@param parentNode parent tree node\n@param filters list of filters", "role": "user" }, { "content": "private void addFilters(MpxjTreeNode parentNode, List<Filter> filters)\n {\n for (Filter field : filters)\n {\n final Filter f = field;\n...
[ { "content": "Add assignments to the tree.\n\n@param parentNode parent tree node\n@param file assignments container", "role": "user" }, { "content": "private void addAssignments(MpxjTreeNode parentNode, ProjectFile file)\n {\n for (ResourceAssignment assignment : file.getResourceAssignments()...
[ { "content": "Save the current file as the given type.\n\n@param file target file\n@param type file type", "role": "user" }, { "content": "public void saveFile(File file, String type)\n {\n try\n {\n Class<? extends ProjectWriter> fileClass = WRITER_MAP.get(type);\n if (f...
[ { "content": "Generates a set of excluded method names.\n\n@param methodNames method names\n@return set of method names", "role": "user" }, { "content": "private static Set<String> excludedMethods(String... methodNames)\n {\n Set<String> set = new HashSet<String>(MpxjTreeNode.DEFAULT_EXCLUDED...
[ { "content": "Closing will only skip to the end of this fixed length input stream and\nnot call the parent's close method.\n@throws IOException if an I/O error occurs while closing stream", "role": "user" }, { "content": "@Override public void close() throws IOException\n {\n long skippedLast...
[ { "content": "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale", "role": "user" }, { "content": "public static void setL...
[ { "content": "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "role": "user" }, { "content": "public String getTitle(Locale locale)\n {\n String result = null;\n\n if (m_title != null)\n {\n ...
[ { "content": "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "role": "us...
[ { "content": "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "role": "user" }, { "content": "public void process(Connection connection, String directory) throws Exception\n {\n ...
[ { "content": "Quick and dirty XML text escape.\n\n@param sb working string buffer\n@param text input text\n@return escaped text", "role": "user" }, { "content": "private String escapeText(StringBuilder sb, String text)\n {\n int length = text.length();\n char c;\n\n sb.setLength(0);...
[ { "content": "Another method to force an input string into a fixed width field\nand set it on the right with the left side filled with space ' ' characters.\n\n@param input input string\n@param width required width\n@return formatted string", "role": "user" }, { "content": "public static String rset...
[ { "content": "This method takes a calendar of MPXJ library type, then returns a String of the\ngeneral working days USACE format. For example, the regular 5-day work week is\nNYYYYYN\n\nIf you get Fridays off work, then the String becomes NYYYYNN\n\n@param input ProjectCalendar instance\n@return work days stri...
[ { "content": "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance", "role": "user" }, { "content": "public static File writeStreamToTempFile(InputStream inputStream, String tempFileSuffix) throw...
[ { "content": "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "role": "user" }, { "content": "public static Record getRecord(String text)\n {\n Record root;\n\n ...
[ { "content": "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "role": "user" }, { "content": "public Record getChild(String key)\n {\n Record result = null;\n if (key != null)\n {\n for (Record record : m_records)\n {\n ...
[ { "content": "Look for the closing parenthesis corresponding to the one at position\nrepresented by the opening index.\n\n@param text input expression\n@param opening opening parenthesis index\n@return closing parenthesis index", "role": "user" }, { "content": "private int getClosingParenthesisPosit...
[ { "content": "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "role": "user" }, { "content": "public static final long getLong(byte[] data, int offset)\n {\n if (data.lengt...
[ { "content": "Convert an integer value into a TimeUnit instance.\n\n@param value time unit value\n@return TimeUnit instance", "role": "user" }, { "content": "public static final TimeUnit getTimeUnit(int value)\n {\n TimeUnit result = null;\n\n switch (value)\n {\n case 1:\n ...
[ { "content": "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern", "role": "user" }, { "content": "public static int skipToNextMatchingShort(byte[] buffer, int offs...
[ { "content": "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n@param length length of data to dump\n@param ascii true if ASCII should also be printed\n@param columns number of columns\n@param prefix prefix when printing\n@return hex dump", "role": "user" }, { "conten...
[ { "content": "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "role": "user" }, { "content": "public void generateWBS(Task parent)\n {\n String wbs;\n\n if (parent == null)\n {\n if (NumberHelper.getInt(ge...
[ { "content": "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "role": "user" }, { "content": "public void generateOutlineNumber(Task parent)\n {\n String outline;\n\n if (parent == null)\n {\n i...
[ { "content": "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "role": "user" }, { "content": "@Override public Task addTask()\n {\n ProjectFile parent = getParentFile();\n\n Task task = new Task(parent, this);\n\n m_chi...
[ { "content": "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline ...
[ { "content": "This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task", "role": "user" }, { "content": "...
[ { "content": "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "role": "user" }, { "content": "public void addChildTaskBefore(Task child, Task previousSibling)\n {\n int index = m_children.indexOf(previousSibling);\n ...
[ { "content": "Removes a child task.\n\n@param child child task instance", "role": "user" }, { "content": "public void removeChildTask(Task child)\n {\n if (m_children.remove(child))\n {\n child.m_parent = null;\n }\n setSummary(!m_children.isEmpty());\n }", "role"...
[ { "content": "This method allows a resource assignment to be added to the\ncurrent task.\n\n@param resource the resource to assign\n@return ResourceAssignment object", "role": "user" }, { "content": "public ResourceAssignment addResourceAssignment(Resource resource)\n {\n ResourceAssignment a...
[ { "content": "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "role": "user" }, { "content": "public void addResourceAssignment(ResourceAssignment assignment)\n {\n if (getExistingResourceAssignment(assignment.getResource()) == null)\n ...
[ { "content": "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment", "role": "user" }, { "content": "private ResourceAssignment getExistingResourceAssignment(...
[ { "content": "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship", "role": "user" }, { "content": "@SuppressWarnings(\"unchecked\") public Relation addPr...
[ { "content": "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID", "role": "user" }, { "content": "@Override public void setID(...
[ { "content": "The Baseline Duration field shows the original span of time planned\nto complete a task.\n\n@return - duration string", "role": "user" }, { "content": "public Duration getBaselineDuration()\n {\n Object result = getCachedValue(TaskField.BASELINE_DURATION);\n if (result == ...
[ { "content": "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "role": "user" }, { "content": "public String getBaselineDurationText()\n {\n Object result = getCachedValue(TaskField.BASELINE_DURATION);\n if (result == null)\n {\n result...
[ { "content": "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "role": "user" }, { "content": "public Date getBaselineFinish()\n {\n Obje...
[ { "content": "The Baseline Start field shows the planned beginning date for a task at\nthe time you saved a baseline. Information in this field becomes available\nwhen you set a baseline.\n\n@return Date", "role": "user" }, { "content": "public Date getBaselineStart()\n {\n Object result = ge...
[ { "content": "The Cost Variance field shows the difference between the baseline cost\nand total cost for a task. The total cost is the current estimate of costs\nbased on actual costs and remaining costs.\n\n@return amount", "role": "user" }, { "content": "public Number getCostVariance()\n {\n ...
[ { "content": "The Critical field indicates whether a task has any room in the schedule\nto slip, or if a task is on the critical path. The Critical field contains\nYes if the task is critical and No if the task is not critical.\n\n@return boolean", "role": "user" }, { "content": "public boolean getC...
[ { "content": "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "role": "user" }, { "content": "public void setOutlineCode(int index, String value)\n {\n set(selectField(TaskFieldLists.CUSTOM_OUTLINE_CODE, index), value);\n }", "role...
[ { "content": "The Total Slack field contains the amount of time a task can be\ndelayed without delaying the project's finish date.\n\n@return string representing duration", "role": "user" }, { "content": "public Duration getTotalSlack()\n {\n Duration totalSlack = (Duration) getCachedValue(Ta...
[ { "content": "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "role": "user" }, { "content": "public void setCalendar(ProjectCalendar calendar)\n {\n set(TaskField.CALENDAR, calenda...
[ { "content": "Retrieve the start slack.\n\n@return start slack", "role": "user" }, { "content": "public Duration getStartSlack()\n {\n Duration startSlack = (Duration) getCachedValue(TaskField.START_SLACK);\n if (startSlack == null)\n {\n Duration duration = getDuration();\n...
[ { "content": "Retrieve the finish slack.\n\n@return finish slack", "role": "user" }, { "content": "public Duration getFinishSlack()\n {\n Duration finishSlack = (Duration) getCachedValue(TaskField.FINISH_SLACK);\n if (finishSlack == null)\n {\n Duration duration = getDuratio...
[ { "content": "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value", "role": "user" }, { "content": "public Object getFieldByAlias(String alias)\n {\n return getCachedValue(getParentFile().getCustomFields().getFieldByAlias(FieldTypeClass.TASK, alias)...
[ { "content": "Set the value of a field using its alias.\n\n@param alias field alias\n@param value field value", "role": "user" }, { "content": "public void setFieldByAlias(String alias, Object value)\n {\n set(getParentFile().getCustomFields().getFieldByAlias(FieldTypeClass.TASK, alias), valu...
[ { "content": "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "role": "user" }, { "content": "public boolean getEnterpriseFlag(int index)\n {\n return (BooleanHelper.getBoolean((Boolean) getCachedValue(selectField(TaskFieldLists.ENTERPRISE_FLAG, index)))...
[ { "content": "Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value", "role": "user" }, { "content": "public String getBaselineDurationText(int baselineNumber)\n {\n Object result = getCachedValue(selectField(TaskFieldLists....
[ { "content": "Sets the baseline duration text value.\n\n@param baselineNumber baseline number\n@param value baseline duration text value", "role": "user" }, { "content": "public void setBaselineDurationText(int baselineNumber, String value)\n {\n set(selectField(TaskFieldLists.BASELINE_DURATI...
[ { "content": "Sets the baseline finish text value.\n\n@param baselineNumber baseline number\n@param value baseline finish text value", "role": "user" }, { "content": "public void setBaselineFinishText(int baselineNumber, String value)\n {\n set(selectField(TaskFieldLists.BASELINE_FINISHES, ba...