com.spss.psapi.content

Interface TableContentModel

  • All Superinterfaces:
    ContentModel


    public interface TableContentModel
    extends ContentModel
    An interface that provides a mechanism for accessing the tabular content of a ContentContainer. Values are arranged in rows and named columns where values in a particular column have the same storage type.
    Since:
    PSAPI 17.0
    See Also:
    ContentContainer
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getColumnCount()
      Returns the number of columns in this content model.
      java.lang.String getColumnName(int columnIndex)
      Returns the name of a specified column in this content model.
      int getRowCount()
      Returns the number of rows in this content model.
      StorageType getStorageType(int columnIndex)
      Returns the storage type of objects in a specified column of this content model.
      java.lang.Object getValueAt(int rowIndex, int columnIndex)
      Returns the value from a specified row and column in this content model.
    • Method Detail

      • getRowCount

        int getRowCount()
        Returns the number of rows in this content model.
        Returns:
        the number of rows in this content model
      • getColumnCount

        int getColumnCount()
        Returns the number of columns in this content model.
        Returns:
        the number of columns in this content model
      • getColumnName

        java.lang.String getColumnName(int columnIndex)
        Returns the name of a specified column in this content model. Returns the empty string if the column does not have a name. The column index must be in the range: 0 <= index < getColumnCount()
        Parameters:
        columnIndex - the column index
        Returns:
        the column name
        Throws:
        java.lang.IndexOutOfBoundsException - unless the column index is in range
      • getStorageType

        StorageType getStorageType(int columnIndex)
        Returns the storage type of objects in a specified column of this content model. The column index must be in the range: 0 <= index < getColumnCount()
        Parameters:
        columnIndex - the column index
        Returns:
        the column storage type
        Throws:
        java.lang.IndexOutOfBoundsException - unless the column index is in range
      • getValueAt

        java.lang.Object getValueAt(int rowIndex,
                                  int columnIndex)
        Returns the value from a specified row and column in this content model. The row and column indexes must be in the range: 0 <= rowIndex < getRowCount() && 0 <= columnIndex < getColumnCount() The returned value will either be null or an instance of the class returned by getColumnClass for the same column index.
        Parameters:
        rowIndex - the row index
        columnIndex - the column index
        Returns:
        the value at the specified row and column
        Throws:
        java.lang.IndexOutOfBoundsException - unless the row and column indexes are in range

Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.