conversation listlengths 2 2 |
|---|
[
{
"content": "Sets ID field value.\n\n@param val value",
"role": "user"
},
{
"content": "@Override public void setID(Integer val)\n {\n ProjectFile parent = getParentFile();\n Integer previous = getID();\n if (previous != null)\n {\n parent.getResources().unmapID(previo... |
[
{
"content": "Retrieve a flag value.\n\n@param index flag index (1-20)\n@return flag value",
"role": "user"
},
{
"content": "public boolean getFlag(int index)\n {\n return BooleanHelper.getBoolean((Boolean) getCachedValue(selectField(ResourceFieldLists.CUSTOM_FLAG, index)));\n }",
"role... |
[
{
"content": "Maps a field index to a ResourceField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return ResourceField instance",
"role": "user"
},
{
"content": "private ResourceField selectField(ResourceField[] fields, int index)\... |
[
{
"content": "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data",
"role": "user"
},
{
"content": "protected void mergeSameWork(LinkedList<TimephasedWork> list)\n {\n LinkedList<TimephasedWork> result = new LinkedList<Ti... |
[
{
"content": "Converts assignment duration values from minutes to hours.\n\n@param list assignment data",
"role": "user"
},
{
"content": "protected void convertToHours(LinkedList<TimephasedWork> list)\n {\n for (TimephasedWork assignment : list)\n {\n Duration totalWork = assignm... |
[
{
"content": "Add data for a column to this table.\n\n@param column column data",
"role": "user"
},
{
"content": "public void addColumn(FastTrackColumn column)\n {\n FastTrackField type = column.getType();\n Object[] data = column.getData();\n for (int index = 0; index < data.length... |
[
{
"content": "Retrieve a specific row by index number, creating a blank row if this row does not exist.\n\n@param index index number\n@return MapRow instance",
"role": "user"
},
{
"content": "private MapRow getRow(int index)\n {\n MapRow result;\n\n if (index == m_rows.size())\n {\n... |
[
{
"content": "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record",
"role": "user"
},
{
"content": "private void setRecordNumber(LinkedList<String> list)\n {\n try\n {\n String number = list.remove(0);\n ... |
[
{
"content": "Accessor method used to retrieve a String object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},
{
... |
[
{
"content": "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},... |
[
{
"content": "Accessor method used to retrieve a Float object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},
{
... |
[
{
"content": "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},
{
... |
[
{
"content": "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally th... |
[
{
"content": "Accessor method used to retrieve an Duration object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normall... |
[
{
"content": "Accessor method used to retrieve a Number instance representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally... |
[
{
"content": "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},
{
"content": "public CodePage getCodePage(int field)\n {\n CodePage result;\n\n if ((field < m_fields.... |
[
{
"content": "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field",
"role": "user"
},
{
"content": "public AccrueType getAccrueType(int field)\n {\n AccrueType result;\n\n if ((field <... |
[
{
"content": "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field",
"role": "user"
},
{
"content": "public Boolean getBoolean(int field, String... |
[
{
"content": "This method converts an offset value into an array index, which in\nturn allows the data present in the fixed block to be retrieved. Note\nthat if the requested offset is not found, then this method returns -1.\n\n@param offset Offset of the data in the fixed block\n@return Index of data item with... |
[
{
"content": "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data",
"role": "... |
[
{
"content": "Gets the value of the resourceRequestCriterion property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the... |
[
{
"content": "Generate a map of UUID values to field types.\n\n@return UUID field value map",
"role": "user"
},
{
"content": "private Map<UUID, FieldType> populateCustomFieldMap()\n {\n byte[] data = m_taskProps.getByteArray(Props.CUSTOM_FIELDS);\n int length = MPPUtility.getInt(data, 0)... |
[
{
"content": "Delete a file ignoring failures.\n\n@param file file to delete",
"role": "user"
},
{
"content": "public static final void deleteQuietly(File file)\n {\n if (file != null)\n {\n if (file.isDirectory())\n {\n File[] children = file.listFiles();\n ... |
[
{
"content": "Extracts the data for a single file from the input stream and writes\nit to a target directory.\n\n@param stream input stream\n@param dir target directory",
"role": "user"
},
{
"content": "private void extractFile(InputStream stream, File dir) throws IOException\n {\n byte[] hea... |
[
{
"content": "Determine if the start of the buffer matches a fingerprint byte array.\n\n@param buffer bytes from file\n@param fingerprint fingerprint bytes\n@return true if the file matches the fingerprint",
"role": "user"
},
{
"content": "private boolean matchesFingerprint(byte[] buffer, byte[] fin... |
[
{
"content": "Determine if the buffer, when expressed as text, matches a fingerprint regular expression.\n\n@param buffer bytes from file\n@param fingerprint fingerprint regular expression\n@return true if the file matches the fingerprint",
"role": "user"
},
{
"content": "private boolean matchesFing... |
[
{
"content": "Adds listeners and reads from a stream.\n\n@param reader reader for file type\n@param stream schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile readProjectFile(ProjectReader reader, InputStream stream) throws MPXJException\n {\n add... |
[
{
"content": "Adds listeners and reads from a file.\n\n@param reader reader for file type\n@param file schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile readProjectFile(ProjectReader reader, File file) throws MPXJException\n {\n addListeners(rea... |
[
{
"content": "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile handleOleCompoundDocument(InputStream stream) throws Exception\n {\n POIFSFileSystem fs = new POIFSFi... |
[
{
"content": "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"content"... |
[
{
"content": "We have identified that we have a SQLite file. This could be a Primavera Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"conten... |
[
{
"content": "We have identified that we have a zip file. Extract the contents into\na temporary directory and process.\n\n@param stream schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile handleZipFile(InputStream stream) throws Exception\n {\n F... |
[
{
"content": "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return... |
[
{
"content": "Given a directory, determine if it contains a multi-file database whose format\nwe can process.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null",
"role": "user"
},
{
"content": "private ProjectFile handleDatabaseInDirectory(Fil... |
[
{
"content": "The file we are working with has a byte order mark. Skip this and try again to read the file.\n\n@param stream schedule data\n@param length length of the byte order mark\n@param charset charset indicated by byte order mark\n@return ProjectFile instance",
"role": "user"
},
{
"content": ... |
[
{
"content": "This could be a self-extracting archive. If we understand the format, expand\nit and check the content for files we can read.\n\n@param stream schedule data\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile handleDosExeFile(InputStream stream) throws E... |
[
{
"content": "XER files can contain multiple projects when there are cross-project dependencies.\nAs the UniversalProjectReader is designed just to read a single project, we need\nto select one project from those available in the XER file.\nThe original project selected for export by the user will have its \"ex... |
[
{
"content": "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names",
"role": "user"
},
{
"content": "private Set<String> populateTableNames(String url) throws SQLException\n {\n Set<String> tableNames = new HashSet<String>();\n Co... |
[
{
"content": "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip",
"role": "user"
},
{
"conte... |
[
{
"content": "Retrieve any task field value lists defined in the MPP file.",
"role": "user"
},
{
"content": "private void processCustomValueLists() throws IOException\n {\n CustomFieldValueReader9 reader = new CustomFieldValueReader9(m_projectDir, m_file.getProjectProperties(), m_projectProps... |
[
{
"content": "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data",
"role": "user"
},
{
"content": "private void processFieldNameAliases(Map<Integer, FieldType> map, byte[] data)\n {\n if (data != null)\n ... |
[
{
"content": "This method maps the resource unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param rscFixedMeta resource fixed meta data\n@param rscFixedData resource fixed data\n@return map of resource IDs to resource data",
"role": "user"
},
{
"c... |
[
{
"content": "This method is called to try to catch any invalid tasks that may have sneaked past all our other checks.\nThis is done by validating the tasks by task ID.",
"role": "user"
},
{
"content": "private void postProcessTasks()\n {\n List<Task> allTasks = m_file.getTasks();\n if (... |
[
{
"content": "Dump data for all non-summary tasks to stdout.\n\n@param name file name",
"role": "user"
},
{
"content": "public void process(String name) throws Exception\n {\n ProjectFile file = new UniversalProjectReader().read(name);\n for (Task task : file.getTasks())\n {\n ... |
[
{
"content": "Extracts project properties from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file",
"role": "user"
},
{
"content": "private void readProjectProperties(Document cdp)\n {\n WorkspaceProperties props = cdp.getWorkspaceProperties();\n ProjectProperties mpxjPro... |
[
{
"content": "Extracts calendar data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file",
"role": "user"
},
{
"content": "private void readCalendars(Document cdp)\n {\n for (Calendar calendar : cdp.getCalendars().getCalendar())\n {\n readCalendar(calendar);\n... |
[
{
"content": "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day",
"role": "user"
},
{
"content": "private void readWeekDay(ProjectCalendar mpxjCalendar, WeekDay day)\n {\n if (day.isIsDayWorking())\n {\n Pr... |
[
{
"content": "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day",
"role": "user"
},
{
"content": "private void readExceptionDay(ProjectCalendar mpxjCalendar, ExceptedDay day)\n {\n ProjectCalendarException mpxjE... |
[
{
"content": "Reads resource data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file",
"role": "user"
},
{
"content": "private void readResources(Document cdp)\n {\n for (Document.Resources.Resource resource : cdp.getResources().getResource())\n {\n readResou... |
[
{
"content": "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource",
"role": "user"
},
{
"content": "private void readResource(Document.Resources.Resource resource)\n {\n Resource mpxjResource = m_projectFile.addResource();\n mpxjResour... |
[
{
"content": "Read the projects from a ConceptDraw PROJECT file as top level tasks.\n\n@param cdp ConceptDraw PROJECT file",
"role": "user"
},
{
"content": "private void readTasks(Document cdp)\n {\n //\n // Sort the projects into the correct order\n //\n List<Project> projects... |
[
{
"content": "Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project",
"role": "user"
},
{
"content": "private void readProject(Project project)\n {\n Task mpxjTask = m_projectFile.addTask();\n //project.getAuthor()\n mpxjTask.setBaselineCost(p... |
[
{
"content": "Read a task from a ConceptDraw PROJECT file.\n\n@param projectIdentifier parent project identifier\n@param map outline number to task map\n@param task ConceptDraw PROJECT task",
"role": "user"
},
{
"content": "private void readTask(String projectIdentifier, Map<String, Task> map, Docum... |
[
{
"content": "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file",
"role": "user"
},
{
"content": "private void readRelationships(Document cdp)\n {\n for (Link link : cdp.getLinks().getLink())\n {\n readRelationship(link);\n }... |
[
{
"content": "Read a task relationship.\n\n@param link ConceptDraw PROJECT task link",
"role": "user"
},
{
"content": "private void readRelationship(Link link)\n {\n Task sourceTask = m_taskIdMap.get(link.getSourceTaskID());\n Task destinationTask = m_taskIdMap.get(link.getDestinationTas... |
[
{
"content": "Read a duration.\n\n@param units duration units\n@param duration duration value\n@return Duration instance",
"role": "user"
},
{
"content": "private Duration getDuration(TimeUnit units, Double duration)\n {\n Duration result = null;\n if (duration != null)\n {\n ... |
[
{
"content": "Return the parent outline number, or an empty string if\nwe have a root task.\n\n@param outlineNumber child outline number\n@return parent outline number",
"role": "user"
},
{
"content": "private String getParentOutlineNumber(String outlineNumber)\n {\n String result;\n int... |
[
{
"content": "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance",
"role": "user"
},
{
"content": "public static ConstraintField getInstance(int value)\n {\n Constra... |
[
{
"content": "Called to update the cached formats when something changes.",
"role": "user"
},
{
"content": "public void update()\n {\n ProjectProperties properties = m_projectFile.getProjectProperties();\n char decimalSeparator = properties.getDecimalSeparator();\n char thousandsSep... |
[
{
"content": "Update the currency format.\n\n@param properties project properties\n@param decimalSeparator decimal separator\n@param thousandsSeparator thousands separator",
"role": "user"
},
{
"content": "private void updateCurrencyFormats(ProjectProperties properties, char decimalSeparator, char t... |
[
{
"content": "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes",
"role": "user"
},
{
"content": "private String quoteFormatCharacter... |
[
{
"content": "Updates the date and time formats.\n\n@param properties project properties",
"role": "user"
},
{
"content": "private void updateDateTimeFormats(ProjectProperties properties)\n {\n String[] timePatterns = getTimePatterns(properties);\n String[] datePatterns = getDatePatterns... |
[
{
"content": "Generate date patterns based on the project configuration.\n\n@param properties project properties\n@return date patterns",
"role": "user"
},
{
"content": "private String[] getDatePatterns(ProjectProperties properties)\n {\n String pattern = \"\";\n\n char datesep = propert... |
[
{
"content": "Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns",
"role": "user"
},
{
"content": "private List<String> generateDateTimePatterns(String datePattern, Strin... |
[
{
"content": "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers",
"role": "user"
},
{
"content": "@Override public Integer[] getUniqueIdentifierArray()\n {\n Integer[] result = ne... |
[
{
"content": "This method retrieves the offset of a given entry in the Var2Data block.\nEach entry can be uniquely located by the identifier of the object to\nwhich the data belongs, and the type of the data.\n\n@param id unique identifier of an entity\n@param type data type identifier\n@return offset of reques... |
[
{
"content": "Add the value to list of values to be used as part of the\nevaluation of this indicator.\n\n@param index position in the list\n@param value evaluation value",
"role": "user"
},
{
"content": "public void setRightValue(int index, Object value)\n {\n m_definedRightValues[index] = v... |
[
{
"content": "Evaluate the criteria and return a boolean result.\n\n@param container field container\n@param promptValues responses to prompts\n@return boolean flag",
"role": "user"
},
{
"content": "public boolean evaluate(FieldContainer container, Map<GenericCriteriaPrompt, Object> promptValues)\n ... |
[
{
"content": "Evalutes AND and OR operators.\n\n@param container data context\n@param promptValues responses to prompts\n@return operator result",
"role": "user"
},
{
"content": "private boolean evaluateLogicalOperator(FieldContainer container, Map<GenericCriteriaPrompt, Object> promptValues)\n {\... |
[
{
"content": "Reads data from the SP file.\n\n@return Project File instance",
"role": "user"
},
{
"content": "private ProjectFile read() throws Exception\n {\n m_project = new ProjectFile();\n m_eventManager = m_project.getEventManager();\n\n m_project.getProjectProperties().setFile... |
[
{
"content": "Extract calendar data.",
"role": "user"
},
{
"content": "private void processCalendars() throws IOException\n {\n CalendarReader reader = new CalendarReader(m_data.getTableData(\"Calendars\"));\n reader.read();\n\n for (MapRow row : reader.getRows())\n {\n ... |
[
{
"content": "Extract data for a single calendar.\n\n@param row calendar data",
"role": "user"
},
{
"content": "private void processCalendar(MapRow row)\n {\n ProjectCalendar calendar = m_project.addCalendar();\n\n Map<UUID, List<DateRange>> dayTypeMap = processDayTypes(row.getRows(\"DAY... |
[
{
"content": "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container",
"role": "user"
},
{
"content": "private void processRanges(List<DateRange> ranges, ProjectCalendarDateRanges container)\n {\n if (ranges != null)\n {\n f... |
[
{
"content": "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID",
"role": "user"
},
{
"content": "private Map<UUID, List<DateRange>> processDayTypes(List<MapRow> types)\n {\n Map<UUID, List<DateRange>> map = new HashMap<UUID, List<DateRange>... |
[
{
"content": "Extract resource data.",
"role": "user"
},
{
"content": "private void processResources() throws IOException\n {\n CompanyReader reader = new CompanyReader(m_data.getTableData(\"Companies\"));\n reader.read();\n for (MapRow companyRow : reader.getRows())\n {\n ... |
[
{
"content": "Extract data for a single resource.\n\n@param row Synchro resource data",
"role": "user"
},
{
"content": "private void processResource(MapRow row) throws IOException\n {\n Resource resource = m_project.addResource();\n resource.setName(row.getString(\"NAME\"));\n resou... |
[
{
"content": "Extract task data.",
"role": "user"
},
{
"content": "private void processTasks() throws IOException\n {\n TaskReader reader = new TaskReader(m_data.getTableData(\"Tasks\"));\n reader.read();\n for (MapRow row : reader.getRows())\n {\n processTask(m_project... |
[
{
"content": "Extract data for a single task.\n\n@param parent task parent\n@param row Synchro task data",
"role": "user"
},
{
"content": "private void processTask(ChildTaskContainer parent, MapRow row) throws IOException\n {\n Task task = parent.addTask();\n task.setName(row.getString(\... |
[
{
"content": "Extract child task data.\n\n@param task MPXJ task\n@param row Synchro task data",
"role": "user"
},
{
"content": "private void processChildTasks(Task task, MapRow row) throws IOException\n {\n List<MapRow> tasks = row.getRows(\"TASKS\");\n if (tasks != null)\n {\n ... |
[
{
"content": "Extract predecessor data.",
"role": "user"
},
{
"content": "private void processPredecessors()\n {\n for (Map.Entry<Task, List<MapRow>> entry : m_predecessorMap.entrySet())\n {\n Task task = entry.getKey();\n List<MapRow> predecessors = entry.getValue();\n ... |
[
{
"content": "Extract data for a single predecessor.\n\n@param task parent task\n@param row Synchro predecessor data",
"role": "user"
},
{
"content": "private void processPredecessor(Task task, MapRow row)\n {\n Task predecessor = m_taskMap.get(row.getUUID(\"PREDECESSOR_UUID\"));\n if (p... |
[
{
"content": "Extract resource assignments for a task.\n\n@param task parent task\n@param assignments list of Synchro resource assignment data",
"role": "user"
},
{
"content": "private void processResourceAssignments(Task task, List<MapRow> assignments)\n {\n for (MapRow row : assignments)\n ... |
[
{
"content": "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment",
"role": "user"
},
{
"content": "private void processResourceAssignment(Task task, MapRow row)\n {\n Resource resource = m_resourceMap.get(row.getUUID(\"RESOURCE_UU... |
[
{
"content": "Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data",
"role": "user"
},
{
"content": "private void setConstraints(Task task, MapRow row)\n {\n ConstraintType constraintType = null;\n Date constraintDate = null;\n Date la... |
[
{
"content": "Common mechanism to convert Synchro commentary recorss into notes.\n\n@param rows commentary table rows\n@return note text",
"role": "user"
},
{
"content": "private String getNotes(List<MapRow> rows)\n {\n String result = null;\n if (rows != null && !rows.isEmpty())\n ... |
[
{
"content": "Sort MapRows based on a named attribute.\n\n@param rows map rows to sort\n@param attribute attribute to sort on\n@return list argument (allows method chaining)",
"role": "user"
},
{
"content": "private List<MapRow> sort(List<MapRow> rows, final String attribute)\n {\n Collection... |
[
{
"content": "Recursively update parent task dates.\n\n@param parentTask parent task",
"role": "user"
},
{
"content": "private void updateDates(Task parentTask)\n {\n if (parentTask.hasChildTasks())\n {\n Date plannedStartDate = null;\n Date plannedFinishDate = null;\n\n ... |
[
{
"content": "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance",
"role": "user"
},
{
"content": "protected Date parseNonNullDate(String str, ParsePosition pos)\n {\n D... |
[
{
"content": "This method can be called to ensure that the IDs of all\nentities are sequential, and start from an\nappropriate point. If entities are added to and removed from\nthis list, then the project is loaded into Microsoft\nproject, if the ID values have gaps in the sequence, there will\nbe blank rows sh... |
[
{
"content": "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance",
"role": "user"
},
{
"content": "pu... |
[
{
"content": "Tokenizes the input file and extracts the required data.\n\n@param is input stream\n@throws MPXJException",
"role": "user"
},
{
"content": "private void processFile(InputStream is) throws MPXJException\n {\n try\n {\n InputStreamReader reader = new InputStreamReader... |
[
{
"content": "Reads the file version and configures the expected file format.\n\n@param token token containing the file version\n@throws MPXJException",
"role": "user"
},
{
"content": "private void processFileType(String token) throws MPXJException\n {\n String version = token.substring(2).sp... |
[
{
"content": "Extract calendar data from the file.\n\n@throws SQLException",
"role": "user"
},
{
"content": "private void processCalendars() throws SQLException\n {\n List<Row> rows = getTable(\"EXCEPTIONN\");\n Map<Integer, DayType> exceptionMap = m_reader.createExceptionTypeMap(rows);\... |
[
{
"content": "Very basic implementation of an inner join between two result sets.\n\n@param leftRows left result set\n@param leftColumn left foreign key column\n@param rightTable right table name\n@param rightRows right result set\n@param rightColumn right primary key column\n@return joined result set",
"ro... |
[
{
"content": "Retrieve table data, return an empty result set if no table data is present.\n\n@param name table name\n@return table data",
"role": "user"
},
{
"content": "private List<Row> getTable(String name)\n {\n List<Row> result = m_tables.get(name);\n if (result == null)\n {\n... |
[
{
"content": "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file",
"role": "user"
},
{
"content": "private void readProjectProperties(Project ganttProject)\n {\n ProjectProperties mpxjProperties = m_projectFile.getProjectProperties();\n ... |
[
{
"content": "This method extracts calendar data from a GanttProject file.\n\n@param ganttProject Root node of the GanttProject file",
"role": "user"
},
{
"content": "private void readCalendars(Project ganttProject)\n {\n m_mpxjCalendar = m_projectFile.addCalendar();\n m_mpxjCalendar.set... |
[
{
"content": "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar",
"role": "user"
},
{
"content": "private void setWorkingDays(ProjectCalendar mpxjCalendar, Calendars gpCalendar)\n {\n DayTypes dayTypes = gpCalendar.g... |
[
{
"content": "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar",
"role": "user"
},
{
"content": "private void setExceptions(ProjectCalendar mpxjCalendar, Calendars gpCalendar)\n {\n List<net.sf.mpxj.ganttproject.schema.Date> dates =... |
[
{
"content": "Add a single exception to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param date calendar exception",
"role": "user"
},
{
"content": "private void addException(ProjectCalendar mpxjCalendar, net.sf.mpxj.ganttproject.schema.Date date)\n {\n String year = date.getYear();\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.