conversation
listlengths
2
2
[ { "content": "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable.", "role": "user" }, { "content...
[ { "content": "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass.", "role": "user" }, { "content": "private int getItemViewType(Class prototypeClass) {...
[ { "content": "Return the index associated to the Renderer.\n\n@param renderer used to search in the prototypes collection.\n@return the prototype index associated to the renderer passed as argument.", "role": "user" }, { "content": "private int getPrototypeIndex(Renderer renderer) {\n int index =...
[ { "content": "Throws one RendererException if the content parent or layoutInflater are null.", "role": "user" }, { "content": "private void validateAttributes() {\n if (content == null) {\n throw new NullContentException(\"RendererBuilder needs content to create Renderer instances\");\n }...
[ { "content": "Throws one RendererException if the viewType, layoutInflater or parent are null.", "role": "user" }, { "content": "private void validateAttributesToCreateANewRendererViewHolder() {\n if (viewType == null) {\n throw new NullContentException(\n \"RendererBuilder needs a ...
[ { "content": "Method to be implemented by the RendererBuilder subtypes. In this method the library user will\ndefine the mapping between content and renderer class.\n\n@param content used to map object to Renderers.\n@return the class associated to the renderer.", "role": "user" }, { "content": "pro...
[ { "content": "Inflate the main layout used to render videos in the list view.\n\n@param inflater LayoutInflater service to inflate.\n@param parent ViewGroup used to inflate xml.\n@return view inflated.", "role": "user" }, { "content": "@Override protected View inflate(LayoutInflater inflater, ViewGr...
[ { "content": "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label.", "role": "user" }, { "content": "@Override public void render() {\n Video video = getContent();\n renderThumbnail(video);\n renderTitle(video);\n renderMarker(vid...
[ { "content": "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "role": "user" }, { "content": "private void renderThumbnail(Video video) {\n Picasso.with(getContext()).cancelRequest(thumbnail);\n ...
[ { "content": "Method called when the renderer is going to be created. This method has the responsibility of\ninflate the xml layout using the layoutInflater and the parent ViewGroup, set itself to the\ntag and call setUpView and hookListeners methods.\n\n@param content to render. If you are using Renderers with...
[ { "content": "Create a clone of the Renderer. This method is the base of the prototype mechanism implemented\nto avoid create new objects from RendererBuilder. Pay an special attention implementing clone\nmethod in Renderer subtypes.\n\n@return a copy of the current renderer.", "role": "user" }, { "...
[ { "content": "Main method of RendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ListView...
[ { "content": "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPa...
[ { "content": "Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.", "role": "user" }, { "content": "pub...
[ { "content": "Initialize VIDEO_INFO data.", "role": "user" }, { "content": "private void initializeVideoInfo() {\n VIDEO_INFO.put(\"The Big Bang Theory\", \"http://thetvdb.com/banners/_cache/posters/80379-9.jpg\");\n VIDEO_INFO.put(\"Breaking Bad\", \"http://thetvdb.com/banners/_cache/posters/...
[ { "content": "Create a random video.\n\n@return random video.", "role": "user" }, { "content": "private Video generateRandomVideo() {\n Video video = new Video();\n configureFavoriteStatus(video);\n configureLikeStatus(video);\n configureLiveStatus(video);\n configureTitleAndThumbnail...
[ { "content": "Parses the buffer into body content\n@param in ByteBuffer to parse\n@return a ByteBuffer with the parsed body content. Buffer in may not be depleted. If more data is\nneeded, null is returned. In the case of content complete, an empty ByteBuffer is returned.\n@throws BaseExceptions.ParserException...
[ { "content": "Store the char in the internal buffer", "role": "user" }, { "content": "final protected void putChar(char c) {\n final int clen = _internalBuffer.length;\n if (clen == _bufferPosition) {\n final char[] next = new char[2 * clen + 1];\n\n System.arrayc...
[ { "content": "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "role": "user" }, { "content": "final protected String getTrimmedString() throws BadMessage {\n if (_bufferPosition == 0) return \"\";\n\n int start = 0;\n boolean quoted = false;\...
[ { "content": "Removes CRs but returns LFs", "role": "user" }, { "content": "final protected char next(final ByteBuffer buffer, boolean allow8859) throws BaseExceptions.BadMessage {\n\n if (!buffer.hasRemaining()) return HttpTokens.EMPTY_BUFF;\n\n if (_segmentByteLimit <= _segmentBytePo...
[ { "content": "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "role": "user" }, { "content": "protected int mapGanttBarHeight(int height)\n {\n switch (height)\n {\n case 0:\n {\n ...
[ { "content": "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "role": "user" }, { "content": "protected TableFontStyle getColumnFontStyle(byte[] d...
[ { "content": "If the file is compressed, handle this so that the stream is ready to read.\n\n@param stream input stream\n@return uncompressed input stream", "role": "user" }, { "content": "private InputStream prepareInputStream(InputStream stream) throws IOException\n {\n InputStream result;\...
[ { "content": "Read the header from the Phoenix file.\n\n@param stream input stream\n@return raw header data", "role": "user" }, { "content": "private String readHeaderString(BufferedInputStream stream) throws IOException\n {\n int bufferSize = 100;\n stream.mark(bufferSize);\n byte[...
[ { "content": "Read properties from the raw header data.\n\n@param stream input stream", "role": "user" }, { "content": "private void readHeaderProperties(BufferedInputStream stream) throws IOException\n {\n String header = readHeaderString(stream);\n for (String property : header.split(\...
[ { "content": "This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException", "role": "user" }, { "content": "@Override p...
[ { "content": "The way calendars are stored in an MPP8 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now...
[ { "content": "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "role": "user" }, { "content": "private voi...
[ { "content": "This method is used to extract the task hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param task task instance\n@param data hyperlink data block", "role": "user" }, { "content": "private void processHyp...
[ { "content": "Extract Primavera project data and export in another format.\n\n@param driverClass JDBC driver class name\n@param connectionString JDBC connection string\n@param projectID project ID\n@param outputFile output file\n@throws Exception", "role": "user" }, { "content": "public void process...
[ { "content": "Process a single project.\n\n@param reader Primavera reader\n@param projectID required project ID\n@param outputFile output file name", "role": "user" }, { "content": "private void processProject(PrimaveraDatabaseReader reader, int projectID, String outputFile) throws Exception\n {\n...
[ { "content": "Retrieve an instance of the ResourceField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ResourceField instance", "role": "user" }, { "content": "public static ResourceField getInstance(int value)\n {\n ResourceField...
[ { "content": "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied", "role": "user" }, { "content": "public void update(Record record, boolean isText) thr...
[ { "content": "This method is called from the task class each time an attribute\nis added, ensuring that all of the attributes present in each task\nrecord are present in the resource model.\n\n@param field field identifier", "role": "user" }, { "content": "private void add(int field)\n {\n if...
[ { "content": "Determine if a task field contains data.\n\n@param task task instance\n@param field target field\n@return true if the field contains data", "role": "user" }, { "content": "@SuppressWarnings(\"unchecked\") private boolean isFieldPopulated(Task task, TaskField field)\n {\n boolean...
[ { "content": "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name", "role": "user" }, { "content": "private String getTaskField(int key)\n {\n String result = null;\n\n if ((key > 0) && (key < m_taskNames.length))\n {...
[ { "content": "Returns code number of Task field supplied.\n\n@param field - name\n@return - code no", "role": "user" }, { "content": "private int getTaskCode(String field) throws MPXJException\n {\n Integer result = m_taskNumbers.get(field.trim());\n\n if (result == null)\n {\n ...
[ { "content": "Parse a string.\n\n@param value string representation\n@return String value", "role": "user" }, { "content": "public static String parseString(String value)\n {\n if (value != null)\n {\n // Strip angle brackets if present\n if (!value.isEmpty() && value.cha...
[ { "content": "Parse the string representation of a double.\n\n@param value string representation\n@return Java representation\n@throws ParseException", "role": "user" }, { "content": "public static Number parseDouble(String value) throws ParseException\n {\n\n Number result = null;\n val...
[ { "content": "Parse a string representation of a Boolean value.\n\n@param value string representation\n@return Boolean value", "role": "user" }, { "content": "public static Boolean parseBoolean(String value) throws ParseException\n {\n Boolean result = null;\n Integer number = parseInteg...
[ { "content": "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "role": "user" }, { "content": "public static Integer parseInteger(String value) throws ParseException\n {\n Integer result = null;\n\n if (value.length() > 0 &...
[ { "content": "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation", "role": "user" }, { "content": "public static Date parseEpochTimestamp(String value)\n {\n Date result = null;\n\n if (value.length() > 0)\n {\n ...
[ { "content": "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database", "role": "user" }, { "content": "protected void processProjectListItem(Map<Integer, String> result, Row row)\n {\n ...
[ { "content": "Read calendar hours and exception data.\n\n@param calendar parent calendar\n@param row calendar hours and exception data", "role": "user" }, { "content": "protected void processCalendarData(ProjectCalendar calendar, Row row)\n {\n int dayIndex = row.getInt(\"CD_DAY_OR_EXCEPTION\...
[ { "content": "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "role": "user" }, { "content": "private void processCalendarException(ProjectCalendar calendar, Row row)\n {\n Date fromDate = row.getDate(\"CD_FROM_DATE\");\n Date toDate...
[ { "content": "Process calendar hours.\n\n@param calendar parent calendar\n@param row calendar hours data\n@param dayIndex day index", "role": "user" }, { "content": "private void processCalendarHours(ProjectCalendar calendar, Row row, int dayIndex)\n {\n Day day = Day.getInstance(dayIndex);\n...
[ { "content": "Read resource baseline values.\n\n@param row result set row", "role": "user" }, { "content": "protected void processResourceBaseline(Row row)\n {\n Integer id = row.getInteger(\"RES_UID\");\n Resource resource = m_project.getResourceByUniqueID(id);\n if (resource != nu...
[ { "content": "Read a single duration field extended attribute.\n\n@param row field data", "role": "user" }, { "content": "protected void processDurationField(Row row)\n {\n processField(row, \"DUR_FIELD_ID\", \"DUR_REF_UID\", MPDUtility.getAdjustedDuration(m_project, row.getInt(\"DUR_VALUE\")...
[ { "content": "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "role": "user" }, { "content": "protected void processOutlineCodeField(Integer entityID, Row row)\n {\n processField(row, \"OC_FIELD_ID\", entityID, row.getString(\"OC_...
[ { "content": "Read task baseline values.\n\n@param row result set row", "role": "user" }, { "content": "protected void processTaskBaseline(Row row)\n {\n Integer id = row.getInteger(\"TASK_UID\");\n Task task = m_project.getTaskByUniqueID(id);\n if (task != null)\n {\n ...
[ { "content": "Process a relationship between two tasks.\n\n@param row relationship data", "role": "user" }, { "content": "protected void processLink(Row row)\n {\n Task predecessorTask = m_project.getTaskByUniqueID(row.getInteger(\"LINK_PRED_UID\"));\n Task successorTask = m_project.getT...
[ { "content": "Read resource assignment baseline values.\n\n@param row result set row", "role": "user" }, { "content": "protected void processAssignmentBaseline(Row row)\n {\n Integer id = row.getInteger(\"ASSN_UID\");\n ResourceAssignment assignment = m_assignmentMap.get(id);\n if (...
[ { "content": "Carry out any post-processing required to tidy up\nthe data read from the database.", "role": "user" }, { "content": "protected void postProcessing()\n {\n //\n // Update the internal structure. We'll take this opportunity to\n // generate outline numbers for the tasks...
[ { "content": "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "role": "user" }, { "content": "private Integer getNullOnValu...
[ { "content": "Main entry point when called to process constraint data.\n\n@param projectDir project directory\n@param file parent project file\n@param inputStreamFactory factory to create input stream", "role": "user" }, { "content": "public void process(DirectoryEntry projectDir, ProjectFile file, ...
[ { "content": "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation...
[ { "content": "Gets the value of the callout 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 callout property...
[ { "content": "Parse a duration in minutes form a number of hours.\n\n@param value String representation\n@return Integer instance", "role": "user" }, { "content": "public static final Integer parseMinutesFromHours(String value)\n {\n Integer result = null;\n if (value != null)\n {\n...
[ { "content": "Parse a currency symbol position from a string representation.\n\n@param value String representation\n@return CurrencySymbolPosition instance", "role": "user" }, { "content": "public static final CurrencySymbolPosition parseCurrencySymbolPosition(String value)\n {\n CurrencySymb...
[ { "content": "Parse a date value.\n\n@param value String representation\n@return Date instance", "role": "user" }, { "content": "public static final Date parseDate(String value)\n {\n Date result = null;\n\n try\n {\n if (value != null && !value.isEmpty())\n {\n ...
[ { "content": "Parse a date time value.\n\n@param value String representation\n@return Date instance", "role": "user" }, { "content": "public static final Date parseDateTime(String value)\n {\n Date result = null;\n\n try\n {\n if (value != null && !value.isEmpty())\n ...
[ { "content": "Read a four byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "role": "user" }, { "content": "public static final int getInt(byte[] data, int offset)\n {\n int result = 0;\n int i = offset;\n for (int shiftBy = 0; shiftBy...
[ { "content": "Read a two byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "role": "user" }, { "content": "public static final int getShort(byte[] data, int offset)\n {\n int result = 0;\n int i = offset;\n for (int shiftBy = 0; shiftB...
[ { "content": "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value", "role": "user" }, { "content": "public static final String getString(byte[] data, int offset)\n {\n return getString(data, offset, data.length - offset);\n }", ...
[ { "content": "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "role": "user" }, { "content": "public static final Date getFinishDate(byte[] data, int offset)\n {\n Date result;\n long days = getShort(data, offset);\n\n i...
[ { "content": "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "role": "user" }, { "content": "public void setDefaultCalendarName(String calendarName)\n {\n if (calendarName == null || calendarName.length() == 0)\n {\n calendarName = D...
[ { "content": "Retrieves the project start date. If an explicit start date has not been\nset, this method calculates the start date by looking for\nthe earliest task start date.\n\n@return project start date", "role": "user" }, { "content": "public Date getStartDate()\n {\n Date result = (Date...
[ { "content": "Retrieves the project finish date. If an explicit finish date has not been\nset, this method calculates the finish date by looking for\nthe latest task finish date.\n\n@return Finish Date", "role": "user" }, { "content": "public Date getFinishDate()\n {\n Date result = (Date) ge...
[ { "content": "Sets currency symbol.\n\n@param symbol currency symbol", "role": "user" }, { "content": "public void setCurrencySymbol(String symbol)\n {\n if (symbol == null)\n {\n symbol = DEFAULT_CURRENCY_SYMBOL;\n }\n\n set(ProjectField.CURRENCY_SYMBOL, symbol);\n }...
[ { "content": "Sets the position of the currency symbol.\n\n@param posn currency symbol position.", "role": "user" }, { "content": "public void setSymbolPosition(CurrencySymbolPosition posn)\n {\n if (posn == null)\n {\n posn = DEFAULT_CURRENCY_SYMBOL_POSITION;\n }\n set...
[ { "content": "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "role": "user" }, { "content": "public void setCurrencyDigits(Integer currDigs)\n {\n if (currDigs == null)\n {\n currDigs = DEFAULT_CURRENCY_DIGITS;\n }\n set(ProjectField.CURRENCY_D...
[ { "content": "Retrieve the default number of minutes per month.\n\n@return minutes per month", "role": "user" }, { "content": "public Number getMinutesPerMonth()\n {\n return Integer.valueOf(NumberHelper.getInt(getMinutesPerDay()) * NumberHelper.getInt(getDaysPerMonth()));\n }", "role":...
[ { "content": "Retrieve the default number of minutes per year.\n\n@return minutes per year", "role": "user" }, { "content": "public Number getMinutesPerYear()\n {\n return Integer.valueOf(NumberHelper.getInt(getMinutesPerDay()) * NumberHelper.getInt(getDaysPerMonth()) * 12);\n }", "role...
[ { "content": "Retrieve a map of custom document properties.\n\n@return the Document Summary Information Map", "role": "user" }, { "content": "@SuppressWarnings(\"unchecked\") public Map<String, Object> getCustomProperties()\n {\n return (Map<String, Object>) getCachedValue(ProjectField.CUSTOM...
[ { "content": "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "role": "user" }, { "content": "private char getCachedCharValue(FieldType field, char defaultValue)\n {\n Character c = (Characte...
[ { "content": "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value", "role": "user" }, { "content": "private void set(FieldType field, boolean value)\n {\n set(field, (value ? Boolean.TRUE : Boolean.FALSE));\n }", "role": ...
[ { "content": "Retrieve a number of rows matching the supplied query.\n\n@param sql query statement\n@return result set\n@throws SQLException", "role": "user" }, { "content": "private List<Row> getRows(String sql) throws SQLException\n {\n allocateConnection();\n\n try\n {\n ...
[ { "content": "Releases a database connection, and cleans up any resources\nassociated with that connection.", "role": "user" }, { "content": "private void releaseConnection()\n {\n if (m_rs != null)\n {\n try\n {\n m_rs.close();\n }\n\n catch (S...
[ { "content": "Retrieves basic meta data from the result set.\n\n@throws SQLException", "role": "user" }, { "content": "private void populateMetaData() throws SQLException\n {\n m_meta.clear();\n\n ResultSetMetaData meta = m_rs.getMetaData();\n int columnCount = meta.getColumnCount()...
[ { "content": "Set the name of the schema containing the schedule tables.\n\n@param schema schema name.", "role": "user" }, { "content": "public void setSchema(String schema)\n {\n if (schema.charAt(schema.length() - 1) != '.')\n {\n schema = schema + '.';\n }\n m_schema...
[ { "content": "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "role": "user" }, { "content": "public ActivityCodeValue addValue(Integer uniqueID, String name, String description)...
[ { "content": "Read a long int from a byte array.\n\n@param data byte array\n@param offset start offset\n@return long value", "role": "user" }, { "content": "public static final long getLong(byte[] data, int offset)\n {\n long result = 0;\n int i = offset;\n for (int shiftBy = 0; shi...
[ { "content": "Read an int from an input stream.\n\n@param is input stream\n@return int value", "role": "user" }, { "content": "public static final int getInt(InputStream is) throws IOException\n {\n byte[] data = new byte[4];\n is.read(data);\n return getInt(data, 0);\n }", "r...
[ { "content": "Read a short int from an input stream.\n\n@param is input stream\n@return int value", "role": "user" }, { "content": "public static final int getShort(InputStream is) throws IOException\n {\n byte[] data = new byte[2];\n is.read(data);\n return getShort(data, 0);\n }...
[ { "content": "Read a long int from an input stream.\n\n@param is input stream\n@return long value", "role": "user" }, { "content": "public static final long getLong(InputStream is) throws IOException\n {\n byte[] data = new byte[8];\n is.read(data);\n return getLong(data, 0);\n }"...
[ { "content": "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance", "role": "user" }, { "content": "public static final String getString(InputStream is) throws IOException\n {\n int type = is.read();\n if (type != 1)\n {\n throw new...
[ { "content": "Retrieve a UUID from an input stream.\n\n@param is input stream\n@return UUID instance", "role": "user" }, { "content": "public static final UUID getUUID(InputStream is) throws IOException\n {\n byte[] data = new byte[16];\n is.read(data);\n\n long long1 = 0;\n lo...
[ { "content": "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance", "role": "user" }, { "content": "public static final Date getDate(InputStream is) throws IOException\n {\n long timeInSeconds = getInt(is);\n if (timeInSeconds == 0x93406FFF)\n ...
[ { "content": "Read a Synchro time from an input stream.\n\n@param is input stream\n@return Date instance", "role": "user" }, { "content": "public static final Date getTime(InputStream is) throws IOException\n {\n int timeValue = getInt(is);\n timeValue -= 86400;\n timeValue /= 60;\n...
[ { "content": "Retrieve a Synchro Duration from an input stream.\n\n@param is input stream\n@return Duration instance", "role": "user" }, { "content": "public static final Duration getDuration(InputStream is) throws IOException\n {\n double durationInSeconds = getInt(is);\n durationInSeco...
[ { "content": "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "role": "user" }, { "content": "public static final Double getDouble(InputStream is) throws IOException\n {\n double result = Double.longBitsToDouble(getLong(is));\n if (Double.isNa...
[ { "content": "Process field aliases.", "role": "user" }, { "content": "public void process()\n {\n if (m_data != null)\n {\n int index = 0;\n int offset = 0;\n // First the length (repeated twice)\n int length = MPPUtility.getInt(m_data, offset);\n ...
[ { "content": "Gets the value of the project 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 project property...
[ { "content": "Print an extended attribute currency value.\n\n@param value currency value\n@return string representation", "role": "user" }, { "content": "public static final String printExtendedAttributeCurrency(Number value)\n {\n return (value == null ? null : NUMBER_FORMAT.get().format(val...
[ { "content": "Parse an extended attribute currency value.\n\n@param value string representation\n@return currency value", "role": "user" }, { "content": "public static final Number parseExtendedAttributeCurrency(String value)\n {\n Number result;\n\n if (value == null)\n {\n ...
[ { "content": "Parse an extended attribute boolean value.\n\n@param value string representation\n@return boolean value", "role": "user" }, { "content": "public static final Boolean parseExtendedAttributeBoolean(String value)\n {\n return ((value.equals(\"1\") ? Boolean.TRUE : Boolean.FALSE));\...
[ { "content": "Print an extended attribute date value.\n\n@param value date value\n@return string representation", "role": "user" }, { "content": "public static final String printExtendedAttributeDate(Date value)\n {\n return (value == null ? null : DATE_FORMAT.get().format(value));\n }", ...
[ { "content": "Parse an extended attribute date value.\n\n@param value string representation\n@return date value", "role": "user" }, { "content": "public static final Date parseExtendedAttributeDate(String value)\n {\n Date result = null;\n\n if (value != null)\n {\n try\n ...
[ { "content": "Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation", "role": "user" }, { "content": "public static final String printExtendedAttribute(MSPDIWriter write...
[ { "content": "Parse an extended attribute value.\n\n@param file parent file\n@param mpx parent entity\n@param value string value\n@param mpxFieldID field ID\n@param durationFormat duration format associated with the extended attribute", "role": "user" }, { "content": "public static final void parseE...