conversation listlengths 2 2 |
|---|
[
{
"content": "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance",
"role": "user"
},
{
"content": "private void readPage(byte[] buffer, Table table)\n {\n int magicNumber = getShort(buffer, 0);\n if (magicNumber =... |
[
{
"content": "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset",
"role": "user"
},
{
"content": ... |
[
{
"content": "Command to select a document from the POIFS for viewing.\n\n@param entry document to view",
"role": "user"
},
{
"content": "public void viewDocument(DocumentEntry entry)\n {\n InputStream is = null;\n\n try\n {\n is = new DocumentInputStream(entry);\n b... |
[
{
"content": "Update the content of the tables.",
"role": "user"
},
{
"content": "protected void updateTables()\n {\n byte[] data = m_model.getData();\n int columns = m_model.getColumns();\n int rows = (data.length / columns) + 1;\n int offset = m_model.getOffset();\n\n St... |
[
{
"content": "Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance",
"role": "user"
},
{
"content": "public static final FieldType getInstance(int fieldID)\n {\n FieldType result;\n int prefix = fieldID & 0... |
[
{
"content": "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder",
"role": "user"
},
{
"content": "private static FieldType getPlaceholder(final Class<?> type, final int fieldID)\n {\n return new FieldType()\n {\n ... |
[
{
"content": "Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default",
"role": "user"
},
{
"content": "public static final boolean valueIsNotDefault(FieldType type, Object value)\n {\n boo... |
[
{
"content": "This is a convenience method which allows all projects in an\nXER file to be read in a single pass.\n\n@param is input stream\n@param linkCrossProjectRelations add Relation links that cross ProjectFile boundaries\n@return list of ProjectFile instances\n@throws MPXJException",
"role": "user"
... |
[
{
"content": "Reads the XER file table and row structure ready for processing.\n\n@param is input stream\n@throws MPXJException",
"role": "user"
},
{
"content": "private void processFile(InputStream is) throws MPXJException\n {\n int line = 1;\n\n try\n {\n //\n // T... |
[
{
"content": "Retrieve the Charset used to read the file.\n\n@return Charset instance",
"role": "user"
},
{
"content": "private Charset getCharset()\n {\n Charset result = m_charset;\n if (result == null)\n {\n // We default to CP1252 as this seems to be the most common enco... |
[
{
"content": "If the user has not specified a project ID, this method\nretrieves the ID of the first project in the file.",
"role": "user"
},
{
"content": "private void processProjectID()\n {\n if (m_projectID == null)\n {\n List<Row> rows = getRows(\"project\", null, null);\n ... |
[
{
"content": "Process a currency definition.\n\n@param row record from XER file",
"role": "user"
},
{
"content": "private void processCurrency(Row row)\n {\n String currencyName = row.getString(\"curr_short_name\");\n DecimalFormatSymbols symbols = new DecimalFormatSymbols();\n symb... |
[
{
"content": "Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException",
"role": "user"
},
{
"content": "public Map<Integer, String> li... |
[
{
"content": "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases.",
"role": "user"
},
{
"content": "private void processScheduleOptions()\n {\n List<Row> rows = getRows(\"schedoptions\", \"proj_id\", m_projectID);\n if (rows.isEmpty... |
[
{
"content": "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException",
"role": "user"
},
{
"content": "private void readRecord(Tokenizer tk, List<String> record) throws IOException\n {\n record.clear();\n whi... |
[
{
"content": "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException",
"role": "user"
},
{
"content": "private boolean proce... |
[
{
"content": "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered lis... |
[
{
"content": "Convert raw value as read from the MPP file into a Java type.\n\n@param type MPP value type\n@param value raw value data\n@return Java object",
"role": "user"
},
{
"content": "protected Object getTypedValue(int type, byte[] value)\n {\n Object result;\n\n switch (type)\n ... |
[
{
"content": "Add a row to the table. We have a limited understanding of the way\nBtrieve handles outdated rows, so we use what we think is a version number\nto try to ensure that we only have the latest rows.\n\n@param primaryKeyColumnName primary key column name\n@param map Map containing row data",
"role... |
[
{
"content": "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@ret... |
[
{
"content": "Internal method used to retrieve a integer from an\nembedded data block.\n\n@param blocks list of data blocks\n@return int value",
"role": "user"
},
{
"content": "private int getInt(List<byte[]> blocks)\n {\n int result;\n if (blocks.isEmpty() == false)\n {\n b... |
[
{
"content": "Internal method used to retrieve a byte array from one\nor more embedded data blocks. Consecutive data blocks may\nneed to be concatenated by this method in order to retrieve\nthe complete set of data.\n\n@param blocks list of data blocks\n@param length expected length of the data\n@return byte ar... |
[
{
"content": "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return... |
[
{
"content": "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RTF document\n@return new offset",
"role": "user"
},
{
"content": "private static int sk... |
[
{
"content": "Calculates the length of the next block of RTF data.\n\n@param text RTF data\n@param offset current offset into this data\n@return block length",
"role": "user"
},
{
"content": "private static int getBlockLength(String text, int offset)\n {\n int startIndex = offset;\n bool... |
[
{
"content": "Reads a data block and adds it to the list of blocks.\n\n@param text RTF data\n@param offset current offset\n@param length next block length\n@param blocks list of blocks\n@return next offset",
"role": "user"
},
{
"content": "private static int readDataBlock(String text, int offset, in... |
[
{
"content": "Method used to read the sub project details from a byte array.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id off... |
[
{
"content": "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table",
"role": "user"
},
{
"content": "private void readRecord(byte[] buffer, Table table)\n {\n //System.out.println(ByteArrayHelper.hexdump(buffer, true, 16, \"\"));\n int deletedFlag... |
[
{
"content": "This method decodes a byte array with the given encryption code\nusing XOR encryption.\n\n@param data Source data\n@param encryptionCode Encryption code",
"role": "user"
},
{
"content": "public static final void decodeBuffer(byte[] data, byte encryptionCode)\n {\n for (int i = 0... |
[
{
"content": "Decode the password from the given data. Will decode the data block as well.\n\n@param data encrypted data block\n@param encryptionCode encryption code\n\n@return password",
"role": "user"
},
{
"content": "public static final String decodePassword(byte[] data, byte encryptionCode)\n ... |
[
{
"content": "This method extracts a portion of a byte array and writes it into\nanother byte array.\n\n@param data Source data\n@param offset Offset into source data\n@param size Required size to be extracted from the source data\n@param buffer Destination buffer\n@param bufferOffset Offset into destination bu... |
[
{
"content": "This method reads a six byte long 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 getLong6(byte[] data, int offset)\n {\n long result = 0;\n ... |
[
{
"content": "Reads a time value. The time is represented as tenths of a\nminute since midnight.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value",
"role": "user"
},
{
"content": "public static final Date getTime(byte[] data, int offset)\... |
[
{
"content": "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value",
"role": "user"
},
{
"content": "public static final Date getTimestamp(byte[] data, int offset)\n {\n Date result;\n\n long ... |
[
{
"content": "Reads a combined date and time value expressed in tenths of a minute.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value",
"role": "user"
},
{
"content": "public static final Date getTimestampFromTenths(byte[] data, int offset... |
[
{
"content": "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start ... |
[
{
"content": "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes",
"role": "user"
},
{
"content": "private static final int getUnicodeStringLengthInBytes(byte[] data, int offset)\n {\n in... |
[
{
"content": "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the ar... |
[
{
"content": "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance",
"role": "us... |
[
{
"content": "Utility method to remove ampersands embedded in names.\n\n@param name name text\n@return name text without embedded ampersands",
"role": "user"
},
{
"content": "public static final String removeAmpersands(String name)\n {\n if (name != null)\n {\n if (name.indexOf('... |
[
{
"content": "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value",
"role": "user"
},
{
"content": "public static final Double getPercentage(byte[] data, int offset)\n {\n int value = MPPUtility.getShort(data, of... |
[
{
"content": "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied data",
"role": "user"
},
{
"content": "public static final byte[]... |
[
{
"content": "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block",
"role": "user"
},
{
"content": "public static void dumpBlockData(int headerSize, int blockSize, byte[] data)\n... |
[
{
"content": "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\n@param startDate start of the period\n@pa... |
[
{
"content": "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@par... |
[
{
"content": "Find the earliest task start date. We treat this as the\nstart date for the project.\n\n@return start date",
"role": "user"
},
{
"content": "public Date getStartDate()\n {\n Date startDate = null;\n\n for (Task task : m_tasks)\n {\n //\n // If a hidden ... |
[
{
"content": "Find the latest task finish date. We treat this as the\nfinish date for the project.\n\n@return finish date",
"role": "user"
},
{
"content": "public Date getFinishDate()\n {\n Date finishDate = null;\n\n for (Task task : m_tasks)\n {\n //\n // If a hidd... |
[
{
"content": "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@re... |
[
{
"content": "Retrieve the calendar used internally for timephased baseline calculation.\n\n@return baseline calendar",
"role": "user"
},
{
"content": "public ProjectCalendar getBaselineCalendar()\n {\n //\n // Attempt to locate the calendar normally used by baselines\n // If this i... |
[
{
"content": "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data",
"role": "user"
},
{
"content": "public void process(CustomFieldContainer indicators, ProjectPro... |
[
{
"content": "Processes graphical indicator definitions for each column.",
"role": "user"
},
{
"content": "private void processColumns()\n {\n int fieldID = MPPUtility.getInt(m_data, m_headerOffset);\n m_headerOffset += 4;\n\n m_dataOffset = MPPUtility.getInt(m_data, m_headerOffset)... |
[
{
"content": "Process a graphical indicator definition for a known type.\n\n@param type field type",
"role": "user"
},
{
"content": "private void processKnownType(FieldType type)\n {\n //System.out.println(\"Header: \" + type);\n //System.out.println(ByteArrayHelper.hexdump(m_data, m_dat... |
[
{
"content": "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data",
"role": "user"
},
{
"content": "private GraphicalIndicatorCriteria processCriteria(FieldType type)\n {\n GraphicalIndicatorCriteria criteria = new Graphical... |
[
{
"content": "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria",
"role": "user"
},
{
"content": "private void processOperandValue(int index, FieldType type, Graph... |
[
{
"content": "Creates a new GridLines instance.\n\n@param data data block\n@param offset offset into data block\n@return new GridLines instance",
"role": "user"
},
{
"content": "private GridLines getGridLines(byte[] data, int offset)\n {\n Color normalLineColor = ColorType.getInstance(data[of... |
[
{
"content": "This method retrieves a byte array containing the data at the\ngiven offset in the block. If no data is found at the given offset\nthis method returns null.\n\n@param offset offset of required data\n@return byte array containing required data",
"role": "user"
},
{
"content": "public by... |
[
{
"content": "This method retrieves a byte array of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return byte array containing required data",
"role": "user"
},
{
"content": "pu... |
[
{
"content": "This method retrieves a String of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return string containing required data",
"role": "user"
},
{
"content": "public Str... |
[
{
"content": "This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data",
"role": "user"
},
{
"content": "public String getStri... |
[
{
"content": "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data",
"role": "user"
},
{
"content": "public String getStri... |
[
{
"content": "This method retrieves an integer of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required integer data",
"role": "user"
},
{
"content": "public int getShor... |
[
{
"content": "This method retrieves a double of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required double data",
"role": "user"
},
{
"content": "public double getDoub... |
[
{
"content": "Retrieve the date range at the specified index.\nThe index is zero based, and this method will return\nnull if the requested date range does not exist.\n\n@param index range index\n@return date range instance",
"role": "user"
},
{
"content": "public DateRange getRange(int index)\n {\... |
[
{
"content": "Main entry point to read criteria data.\n\n@param properties project properties\n@param data criteria data block\n@param dataOffset offset of the data start within the larger data block\n@param entryOffset offset of start node for walking the tree\n@param prompts optional list to hold prompts\n@pa... |
[
{
"content": "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block",
"role": "user"
},
{
"content": "private void processBlock(List<GenericCriteria> list, byte[] block)\n {\n if (block != null)\n {\n if (MPPUtility.getShort(block, 0) > ... |
[
{
"content": "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block",
"role": "user"
},
{
"content": "private void addCriteria(List<GenericCriteria> list, byte[] block)\n {\n byte[] leftBlock = getChildBlock(block);\n byte[] rightBlock1 = ge... |
[
{
"content": "Adds a logical operator block.\n\n@param list parent criteria list\n@param block current block\n@param operator logical operator represented by this block",
"role": "user"
},
{
"content": "private void addBlock(List<GenericCriteria> list, byte[] block, TestOperator operator)\n {\n ... |
[
{
"content": "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value",
"role": "user"
},
{
"content": "private Object getValue(FieldType field, byte[] block)\n {\n Object result = null;\n\n switch (block[0])\n ... |
[
{
"content": "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value",
"role": "user"
},
{
"content": "private Object getConstantValue(FieldType type, byte[] block)\n {\n Object value;\n DataType dataType = type.getDataType();\n\n ... |
[
{
"content": "Retrieves a prompt value.\n\n@param field field type\n@param block criteria data block\n@return prompt value",
"role": "user"
},
{
"content": "private GenericCriteriaPrompt getPromptValue(FieldType field, byte[] block)\n {\n int textOffset = getPromptOffset(block);\n String... |
[
{
"content": "Convert an integer to a RelationType instance.\n\n@param type integer value\n@return RelationType instance",
"role": "user"
},
{
"content": "private RelationType getRelationType(int type)\n {\n RelationType result;\n if (type > 0 && type < RELATION_TYPES.length)\n {\n ... |
[
{
"content": "This method retrieves a byte array containing the data at the\ngiven index in the block. If no data is found at the given index\nthis method returns null.\n\n@param index index of the data item to be retrieved\n@return byte array containing the requested data",
"role": "user"
},
{
"con... |
[
{
"content": "Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value",
"role": "user"
},
{
"content": "public byte getByte(Integer type)\n {\n byte result = 0;\n\n byte[] item = m_map.get(type);\n if (item != null)\n {\n result... |
[
{
"content": "Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp",
"role": "user"
},
{
"content": "public Date getTime(Integer type)\n {\n Date result = null;\n\n byte[] item = m_map.get(type);\n if (item != null)\n {\n resul... |
[
{
"content": "Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value",
"role": "user"
},
{
"content": "public String getUnicodeString(Integer type)\n {\n String result = null;\n\n byte[] item = m_map.get(type);\n if (item != null)\n ... |
[
{
"content": "Begin writing a named object attribute.\n\n@param name attribute name",
"role": "user"
},
{
"content": "public void writeStartObject(String name) throws IOException\n {\n writeComma();\n writeNewLineIndent();\n\n if (name != null)\n {\n writeName(name);\n ... |
[
{
"content": "Begin writing a named list attribute.\n\n@param name attribute name",
"role": "user"
},
{
"content": "public void writeStartList(String name) throws IOException\n {\n writeComma();\n writeNewLineIndent();\n writeName(name);\n writeNewLineIndent();\n m_writer.... |
[
{
"content": "Write a string attribute.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "public void writeNameValuePair(String name, String value) throws IOException\n {\n internalWriteNameValuePair(name, escapeString(value));\n }",
"role": "... |
[
{
"content": "Write an int attribute.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "public void writeNameValuePair(String name, int value) throws IOException\n {\n internalWriteNameValuePair(name, Integer.toString(value));\n }",
"role": "a... |
[
{
"content": "Write a long attribute.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "public void writeNameValuePair(String name, long value) throws IOException\n {\n internalWriteNameValuePair(name, Long.toString(value));\n }",
"role": "ass... |
[
{
"content": "Write a double attribute.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "public void writeNameValuePair(String name, double value) throws IOException\n {\n internalWriteNameValuePair(name, Double.toString(value));\n }",
"role"... |
[
{
"content": "Write a Date attribute.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "public void writeNameValuePair(String name, Date value) throws IOException\n {\n internalWriteNameValuePair(name, m_format.format(value));\n }",
"role": "a... |
[
{
"content": "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value",
"role": "user"
},
{
"content": "private void internalWriteNameValuePair(String name, String value) throws IOException\n {\n writeComma();\n writeNewLineIndent();\n writeN... |
[
{
"content": "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value",
"role": "user"
},
{
"content": "private String escapeString(String value)\n {\n m_buffer.setLength(0);\n m_buffer.append('\"');\n for (int index = 0; index < value.length(); index++)\n ... |
[
{
"content": "Write a comma to the output stream if required.",
"role": "user"
},
{
"content": "private void writeComma() throws IOException\n {\n if (m_firstNameValuePair.peek().booleanValue())\n {\n m_firstNameValuePair.pop();\n m_firstNameValuePair.push(Boolean.FALSE);... |
[
{
"content": "Write a new line and indent.",
"role": "user"
},
{
"content": "private void writeNewLineIndent() throws IOException\n {\n if (m_pretty)\n {\n if (!m_indent.isEmpty())\n {\n m_writer.write('\\n');\n m_writer.write(m_indent);\n }\... |
[
{
"content": "Write an attribute name.\n\n@param name attribute name",
"role": "user"
},
{
"content": "private void writeName(String name) throws IOException\n {\n m_writer.write('\"');\n m_writer.write(name);\n m_writer.write('\"');\n m_writer.write(\":\");\n }",
"role":... |
[
{
"content": "Decrease the indent level.",
"role": "user"
},
{
"content": "private void decreaseIndent() throws IOException\n {\n if (m_pretty)\n {\n m_writer.write('\\n');\n m_indent = m_indent.substring(0, m_indent.length() - INDENT.length());\n m_writer.write(m... |
[
{
"content": "Populates a resource availability table.\n\n@param table resource availability table\n@param data file data",
"role": "user"
},
{
"content": "public void process(AvailabilityTable table, byte[] data)\n {\n if (data != null)\n {\n Calendar cal = DateHelper.popCalenda... |
[
{
"content": "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"role": "user"
},
{
"content": "public static final Object getObject(Locale locale, String key)\n {\n ResourceBundle bundle = ResourceBundl... |
[
{
"content": "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"role": "user"
},
{
"content": "@SuppressWarnings(\"rawtypes\") public static final Map getMap(Locale locale, String key)\n {\n ResourceBundle ... |
[
{
"content": "Convenience method for retrieving an Integer resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"role": "user"
},
{
"content": "public static final Integer getInteger(Locale locale, String key)\n {\n ResourceBundle bundle = ResourceBu... |
[
{
"content": "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value",
"role": "user"
},
{
"content": "public static final char getChar(Locale locale, String key)\n {\n ResourceBundle bundle = ResourceBundle.getBu... |
[
{
"content": "Retrieves the overallocated flag.\n\n@return overallocated flag",
"role": "user"
},
{
"content": "public boolean getOverAllocated()\n {\n Boolean overallocated = (Boolean) getCachedValue(ResourceField.OVERALLOCATED);\n if (overallocated == null)\n {\n Number pe... |
[
{
"content": "Retrieves the earliest start date for all assigned tasks.\n\n@return start date",
"role": "user"
},
{
"content": "public Date getStart()\n {\n Date result = null;\n for (ResourceAssignment assignment : m_assignments)\n {\n if (result == null || DateHelper.compa... |
[
{
"content": "Retrieves the work variance.\n\n@return work variance",
"role": "user"
},
{
"content": "public Duration getWorkVariance()\n {\n Duration variance = (Duration) getCachedValue(ResourceField.WORK_VARIANCE);\n if (variance == null)\n {\n Duration work = getWork();\... |
[
{
"content": "Retrieves the notes text for this resource.\n\n@return notes text",
"role": "user"
},
{
"content": "public String getNotes()\n {\n String notes = (String) getCachedValue(ResourceField.NOTES);\n return (notes == null ? \"\" : notes);\n }",
"role": "assistant"
}
] |
[
{
"content": "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar",
"role": "user"
},
{
"content": "public void setResourceCalendar(ProjectCalendar calendar)\n {\n set(ResourceField.CALENDAR, calendar);\n if (calendar ==... |
[
{
"content": "This method allows a resource calendar to be added to a resource.\n\n@return ResourceCalendar\n@throws MPXJException if more than one calendar is added",
"role": "user"
},
{
"content": "public ProjectCalendar addResourceCalendar() throws MPXJException\n {\n if (getResourceCalend... |
[
{
"content": "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name",
"role": "user"
},
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.