Documentation of 'cc.redberry.core.context.defaults.IndexWithStrokeConverter' Java class
IndexWithStrokeConverter
cc.redberry.core.context.defaults

Class IndexWithStrokeConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean applicableToSymbol(java.lang.String symbol)
      Returns true if this converter can convert index string to integer representation
      int getCode(java.lang.String symbol)
      Returns integer representation from specified string representation of single index.
      java.lang.String getSymbol(int code, OutputFormat mode)
      Returns string representation from specified integer representation of single index in the specified outputFormat.
      byte getType()
      Returns the type of indices, which this converter processes.
      int maxNumberOfSymbols()
      Returns the number of symbols, supported by this converter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexWithStrokeConverter

        public IndexWithStrokeConverter(IndexSymbolConverter converter,
                                        byte numberOfStrokes)
        Creates IndexSymbolConverter for subscripted symbols from specified converter.
        Parameters:
        converter - converter to be extended with symbols with strokes
        numberOfStrokes - number of strokes to be appended after symbol
    • Method Detail

      • applicableToSymbol

        public boolean applicableToSymbol(java.lang.String symbol)
        Description copied from interface: IndexSymbolConverter
        Returns true if this converter can convert index string to integer representation
        Specified by:
        applicableToSymbol in interface IndexSymbolConverter
        Parameters:
        symbol - index string representation
        Returns:
        true, if this converter can convert index string to integer representation
      • getSymbol

        public java.lang.String getSymbol(int code,
                                          OutputFormat mode)
                                   throws IndexConverterException
        Description copied from interface: IndexSymbolConverter
        Returns string representation from specified integer representation of single index in the specified outputFormat.
        Specified by:
        getSymbol in interface IndexSymbolConverter
        Parameters:
        code - index integer representation
        mode - output format
        Returns:
        string representation of specified integer index, according to the specified output format
        Throws:
        IndexConverterException - if code does not corresponds to this converter
        See Also:
        OutputFormat
      • getType

        public byte getType()
        Description copied from interface: IndexSymbolConverter
        Returns the type of indices, which this converter processes. The type value is unique for each converter.
        Specified by:
        getType in interface IndexSymbolConverter
        Returns:
        type of indices, which this converter process

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.