edu.washington.NVisF.dataIO
Class DataField

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

public class DataField
extends java.lang.Object

A DataField object represents meta-info regarding a field for a particular data object. Currently this includes the name and type of the field, and the only known types are scalars and vectors.

See Also:
TypeInfo, ObjectInfo

Field Summary
static int SCALAR_FIELD_ELEMENT
          identifies scalar data fields.
static int VECTOR_FIELD_ELEMENT
          identifies vector data fields.
 
Constructor Summary
DataField(java.lang.String name, int varType)
          Constructs a DataField from the given name and type, where varType is one of the constants defined in this class.
 
Method Summary
 java.lang.String getName()
          Returns the name of this data field.
 int getvarType()
          Returns the type of this data field.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALAR_FIELD_ELEMENT

public static final int SCALAR_FIELD_ELEMENT
identifies scalar data fields.

VECTOR_FIELD_ELEMENT

public static final int VECTOR_FIELD_ELEMENT
identifies vector data fields.
Constructor Detail

DataField

public DataField(java.lang.String name,
                 int varType)
Constructs a DataField from the given name and type, where varType is one of the constants defined in this class.
Throws:
NullPointerException - if name is null
java.lang.IndexOutOfBoundsException - if varType is invalid
See Also:
SCALAR_FIELD_ELEMENT, VECTOR_FIELD_ELEMENT
Method Detail

getName

public java.lang.String getName()
Returns the name of this data field.
Returns:
String the name

getvarType

public int getvarType()
Returns the type of this data field.
Returns:
int either SCALAR_FIELD_ELEMENT or VECTOR_FIELD_ELEMENT