NetCharts Server

chartworks.es.plugin
Class NDSDataModel

java.lang.Object
  |
  +--netcharts.pro.datamodel.NFDataModelAdapter
        |
        +--chartworks.es.plugin.NDSDataModel
All Implemented Interfaces:
netcharts.pro.datamodel.NFDataModel

public class NDSDataModel
extends netcharts.pro.datamodel.NFDataModelAdapter

Defines a data model that can be used by NDS plugins. Accepts the notion of a column map which allows the user to select which columns to use in a given output.


Field Summary
 java.lang.Object[][] data
           
 int dimensions
           
 java.lang.String[] methods
           
 boolean orderByRow
           
 netcharts.pro.common.NFCDLGenerator template
           
 
Fields inherited from class netcharts.pro.datamodel.NFDataModelAdapter
dataObject, hasMoreData, userData
 
Constructor Summary
NDSDataModel(java.lang.Object[][] data)
          Constructs the data model using the given data.
NDSDataModel(java.lang.Object[][] data, boolean orderByRow, int maxDimensions)
          Constructs the data model using the given data and orientation
NDSDataModel(java.lang.Object[][] data, boolean orderByRow, netcharts.pro.common.NFCDLGenerator template, java.lang.String method, int maxDimensions)
          Constructs the data model using the given data and orientation
 
Method Summary
 java.lang.Object elementAt(int row)
          Returns the first element at the given row.
 java.lang.Object elementAt(int row, int col)
          Returns the first element at the given row and column.
 boolean getConditionalEscapeStrings()
          Returns the conditional escape strings property
 int getDataDimensions()
          Returns the number of columns.
 int getNRows()
          Returns the number of rows in the dataset.
 boolean getUnquoteStrings()
          Returns the unquote strings property
 java.lang.Object makeObject(java.lang.Object data)
           
 void setConditionalEscapeStrings(boolean conditionalEscapeStrings)
          Sets the conditional escape strings property
 void setUnquoteStrings(boolean unquoteStrings)
          Sets the unquote strings property
 
Methods inherited from class netcharts.pro.datamodel.NFDataModelAdapter
hasMoreData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public java.lang.Object[][] data

dimensions

public int dimensions

orderByRow

public boolean orderByRow

template

public netcharts.pro.common.NFCDLGenerator template

methods

public java.lang.String[] methods
Constructor Detail

NDSDataModel

public NDSDataModel(java.lang.Object[][] data)
Constructs the data model using the given data.
Parameters:
data - The 2D data object.

NDSDataModel

public NDSDataModel(java.lang.Object[][] data,
                    boolean orderByRow,
                    int maxDimensions)
Constructs the data model using the given data and orientation
Parameters:
data - The 2D data object.
orderByRow - if true the number of data rows is equal to data.length. If false the number of data rows is equal to data[0].length

NDSDataModel

public NDSDataModel(java.lang.Object[][] data,
                    boolean orderByRow,
                    netcharts.pro.common.NFCDLGenerator template,
                    java.lang.String method,
                    int maxDimensions)
Constructs the data model using the given data and orientation
Parameters:
data - The 2D data object.
orderByRow - if true the number of data rows is equal to data.length. If false the number of data rows is equal to data[0].length
Method Detail

getNRows

public int getNRows()
Returns the number of rows in the dataset.
Overrides:
getNRows in class netcharts.pro.datamodel.NFDataModelAdapter
Returns:
the number of rows in the dataset.

getDataDimensions

public int getDataDimensions()
Returns the number of columns.
Overrides:
getDataDimensions in class netcharts.pro.datamodel.NFDataModelAdapter
Returns:
the number of columns in the column map or the number of columns in the dataset if the map is not defined.

elementAt

public java.lang.Object elementAt(int row)
Returns the first element at the given row.
Overrides:
elementAt in class netcharts.pro.datamodel.NFDataModelAdapter
Parameters:
row - The row index.
Returns:
the object.

elementAt

public java.lang.Object elementAt(int row,
                                  int col)
Returns the first element at the given row and column.
Overrides:
elementAt in class netcharts.pro.datamodel.NFDataModelAdapter
Parameters:
row - The row index.
col - The row index.
Returns:
the object.

makeObject

public java.lang.Object makeObject(java.lang.Object data)

setConditionalEscapeStrings

public void setConditionalEscapeStrings(boolean conditionalEscapeStrings)
Sets the conditional escape strings property
Parameters:
conditionalEscapeStrings - When set to true the objects returned from getElement are checked to see if they are strings and if so quotes inside them are escaped if necessary

getConditionalEscapeStrings

public boolean getConditionalEscapeStrings()
Returns the conditional escape strings property

setUnquoteStrings

public void setUnquoteStrings(boolean unquoteStrings)
Sets the unquote strings property
Parameters:
unquoteStrings - When set to true the objects returned from getElement are checked to see if they are strings and if so quotes are removed from around the String if present

getUnquoteStrings

public boolean getUnquoteStrings()
Returns the unquote strings property

NetCharts Server


Visual Mining, Inc.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2006
All Rights Reserved.

NetCharts Server TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Nov 26, 2006