edu.washington.NVisF.dataIO
Class TypeInfo

java.lang.Object
  |
  +--edu.washington.NVisF.dataIO.TypeInfo

public class TypeInfo
extends java.lang.Object

The TypeInfo class provides meta-info regarding the data available from a given source. Data is assumed to be organized into objects that have a name and various fields, each of which has a name and is either a scalar or a vector field. The TypeInfo object mirrors this structure by maintaining a list of ObjectInfo objects that each contain DataField objects. TypeInfo also provides utility methods for accessing its information.

See Also:
ObjectInfo, DataField

Constructor Summary
TypeInfo()
          Constructs an empty TypeInfo object.
 
Method Summary
 void addObjectInfo(ObjectInfo objectInfo)
          Adds an ObjectInfo object to this TypeInfo.
 java.lang.String[] getDataFieldNames()
          Returns the names of every data field defined for any data object.
 java.lang.String[] getDataFieldNames(java.lang.String objectName)
          Returns the names of all data fields defined for the data object with the given name.
 ObjectInfo[] getObjectInfo()
          Returns all known ObjectInfo objects.
 ObjectInfo getObjectInfo(java.lang.String objectName)
          Returns the ObjectInfo object with the given name.
 java.lang.String[] getObjectNames()
          Returns the names of all known data object types.
 java.lang.String[] getScalarDataFieldNames()
          Returns the names of every scalar data field defined for any data object.
 java.lang.String[] getScalarDataFieldNames(java.lang.String objectName)
          Returns the names of all scalar data fields defined for the data object with the given name.
 java.lang.String[] getVectorDataFieldNames()
          Returns the names of every vector data field defined for any data object.
 java.lang.String[] getVectorDataFieldNames(java.lang.String objectName)
          Returns the names of all vector data fields defined for the data object with the given name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInfo

public TypeInfo()
Constructs an empty TypeInfo object.
Method Detail

addObjectInfo

public void addObjectInfo(ObjectInfo objectInfo)
Adds an ObjectInfo object to this TypeInfo.
See Also:
ObjectInfo

getObjectInfo

public ObjectInfo getObjectInfo(java.lang.String objectName)
Returns the ObjectInfo object with the given name.
Returns:
the requested object, or null if no matching ObjectInfo is found.
See Also:
ObjectInfo

getObjectInfo

public ObjectInfo[] getObjectInfo()
Returns all known ObjectInfo objects.
Returns:
ObjectInfo[] an array of all known Objectinfo objects
See Also:
ObjectInfo

getObjectNames

public java.lang.String[] getObjectNames()
Returns the names of all known data object types.
Returns:
String[] the names of the data objects

getDataFieldNames

public java.lang.String[] getDataFieldNames()
Returns the names of every data field defined for any data object.
Returns:
String[] the names of the data fields

getScalarDataFieldNames

public java.lang.String[] getScalarDataFieldNames()
Returns the names of every scalar data field defined for any data object.
Returns:
String[] the names of the scalar data fields
See Also:
DataField

getVectorDataFieldNames

public java.lang.String[] getVectorDataFieldNames()
Returns the names of every vector data field defined for any data object.
Returns:
String[] the names of the vector data fields
See Also:
DataField

getDataFieldNames

public java.lang.String[] getDataFieldNames(java.lang.String objectName)
Returns the names of all data fields defined for the data object with the given name.
Returns:
String[] the names of the data fields, or null if no data object exists with the given name

getScalarDataFieldNames

public java.lang.String[] getScalarDataFieldNames(java.lang.String objectName)
Returns the names of all scalar data fields defined for the data object with the given name.
Returns:
String[] the names of the scalar data fields, or null if no data object exists with the given name
See Also:
DataField

getVectorDataFieldNames

public java.lang.String[] getVectorDataFieldNames(java.lang.String objectName)
Returns the names of all vector data fields defined for the data object with the given name.
Returns:
String[] the names of the vector data fields, or null if no data object exists with the given name
See Also:
DataField