com.aspose.cells

Interface ICustomParser

  • public interface ICustomParser 

Allows users to add their custom value parser for parsing string values to other proper cell value object.

Method Summary
abstract java.lang.StringgetFormat()
Gets the formatting pattern corresponding to the parsed value by last invocation of parseObject(java.lang.String).
abstract java.lang.ObjectparseObject(java.lang.String value)
Parses given string to proper value object.
 

    • Method Detail

      • parseObject

        public abstract java.lang.Object parseObject(java.lang.String value)
        Parses given string to proper value object.
        Parameters:
        value - The string value to be parsed
        Returns:
        Parsed value object from given string. If given string cannot be parsed to proper value object, returns null.
      • getFormat

        public abstract java.lang.String getFormat()
        Gets the formatting pattern corresponding to the parsed value by last invocation of parseObject(java.lang.String). The returned formatting pattern may be used to format corresponding cell(set to Style.Custom for the cell).