dods.clients.matlab
Class MatlabList

java.lang.Object
  extended by dods.dap.BaseType
      extended by dods.dap.DVector
          extended by dods.dap.DList
              extended by dods.clients.matlab.MatlabList
All Implemented Interfaces:
ClientIO, Cloneable

public class MatlabList
extends DList

An extention of the DList class which provides methods to return the data held inside the list as atomic types, limiting the necessary interaction between matlab and java.

See Also:
DList

Constructor Summary
MatlabList()
          Constructs a new MatlabList.
MatlabList(String name)
          Constructs a new MatlabList with name name.
 
Method Summary
 String getArrayTypeName()
          Returns the type of data held in the array as a String.
 Object getData()
          If the data held inside the list is either an atomic type or a String, this function will return that data as a single-dimensional array (or a two-dimensional char array in the case of String).
 
Methods inherited from class dods.dap.DList
getTypeName
 
Methods inherited from class dods.dap.DVector
addVariable, clone, deserialize, externalize, getLength, getPrimitiveVector, printDecl, printVal, setLength
 
Methods inherited from class dods.dap.BaseType
checkSemantics, checkSemantics, elementCount, elementCount, getLongName, getName, getParent, newPrimitiveVector, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, setName, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatlabList

public MatlabList()
Constructs a new MatlabList.


MatlabList

public MatlabList(String name)
Constructs a new MatlabList with name name.

Parameters:
name - The name of the array
Method Detail

getArrayTypeName

public String getArrayTypeName()
Returns the type of data held in the array as a String.

Returns:
The type of data held in the array.

getData

public Object getData()
If the data held inside the list is either an atomic type or a String, this function will return that data as a single-dimensional array (or a two-dimensional char array in the case of String).

Returns:
The data.