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
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 |
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.
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 nulljava.lang.IndexOutOfBoundsException
- if varType is invalid- See Also:
SCALAR_FIELD_ELEMENT
,
VECTOR_FIELD_ELEMENT
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