vrml.eai.field
Class BaseField

java.lang.Object
  extended by vrml.eai.field.BaseField
Direct Known Subclasses:
EventIn, EventOut

public abstract class BaseField
extends java.lang.Object

Abstract ancestor of all VRML fields. This class simply defines the getType() method and symbolic constants for all values returned by that method. This is an abstract class, i.e. you cannot create instances of this class. The only way to retrieve instances of this class are the Node.getEventIn(java.lang.String) and Node.getEventOut(java.lang.String) methods.


Field Summary
static int MFColor
          Symbolic name for the MFColor field type.
static int MFFloat
          Symbolic name for the MFFloat field type.
static int MFInt32
          Symbolic name for the MFInt32 field type.
static int MFNode
          Symbolic name for the MFNode field type.
static int MFRotation
          Symbolic name for the MFRotation field type.
static int MFString
          Symbolic name for the MFString field type.
static int MFTime
          Symbolic name for the MFTime field type.
static int MFVec2f
          Symbolic name for the MFVec2f field type.
static int MFVec3f
          Symbolic name for the MFVec3f field type.
static int SFBool
          Symbolic name for the SFBool field type.
static int SFColor
          Symbolic name for the SFColor field type.
static int SFFloat
          Symbolic name for the SFFloat field type.
static int SFImage
          Symbolic name for the SFImage field type.
static int SFInt32
          Symbolic name for the SFInt32 field type.
static int SFMatrix4f
          Symbolic name for the SFMatrix4f field type.
static int SFNode
          Symbolic name for the SFNode field type.
static int SFRotation
          Symbolic name for the SFRotation field type.
static int SFString
          Symbolic name for the SFString field type.
static int SFTime
          Symbolic name for the SFTime field type.
static int SFVec2f
          Symbolic name for the SFVec2f field type.
static int SFVec3f
          Symbolic name for the SFVec3f field type.
 
Method Summary
 int getType()
          Returns the type of field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SFBool

public static final int SFBool
Symbolic name for the SFBool field type. This is the return value of the getType() method for SFBool fields.

The following example demonstrates how to check if a field is a SFBool field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFBool)
 {
     ...
 }
 

See Also:
Constant Field Values

SFColor

public static final int SFColor
Symbolic name for the SFColor field type. This is the return value of the getType() method for SFColor fields.

The following example demonstrates how to check if a field is a SFColor field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFColor)
 {
     ...
 }
 

See Also:
Constant Field Values

SFFloat

public static final int SFFloat
Symbolic name for the SFFloat field type. This is the return value of the getType() method for SFFloat fields.

The following example demonstrates how to check if a field is a SFFloat field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFFloat)
 {
     ...
 }
 

See Also:
Constant Field Values

SFImage

public static final int SFImage
Symbolic name for the SFImage field type. This is the return value of the getType() method for SFImage fields.

The following example demonstrates how to check if a field is a SFImage field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFImage)
 {
     ...
 }
 

See Also:
Constant Field Values

SFInt32

public static final int SFInt32
Symbolic name for the SFInt32 field type. This is the return value of the getType() method for SFInt32 fields.

The following example demonstrates how to check if a field is a SFInt32 field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFInt32)
 {
     ...
 }
 

See Also:
Constant Field Values

SFNode

public static final int SFNode
Symbolic name for the SFNode field type. This is the return value of the getType() method for SFNode fields.

The following example demonstrates how to check if a field is a SFNode field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFNode)
 {
     ...
 }
 

See Also:
Constant Field Values

SFRotation

public static final int SFRotation
Symbolic name for the SFRotation field type. This is the return value of the getType() method for SFRotation fields.

The following example demonstrates how to check if a field is a SFRotation field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFRotation)
 {
     ...
 }
 

See Also:
Constant Field Values

SFString

public static final int SFString
Symbolic name for the SFString field type. This is the return value of the getType() method for SFString fields.

The following example demonstrates how to check if a field is a SFString field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFString)
 {
     ...
 }
 

See Also:
Constant Field Values

SFTime

public static final int SFTime
Symbolic name for the SFTime field type. This is the return value of the getType() method for SFTime fields.

The following example demonstrates how to check if a field is a SFTime field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFTime)
 {
     ...
 }
 

See Also:
Constant Field Values

SFVec2f

public static final int SFVec2f
Symbolic name for the SFVec2f field type. This is the return value of the getType() method for SFVec2f fields.

The following example demonstrates how to check if a field is a SFVec2f field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFVec2f)
 {
     ...
 }
 

See Also:
Constant Field Values

SFVec3f

public static final int SFVec3f
Symbolic name for the SFVec3f field type. This is the return value of the getType() method for SFVec3f fields.

The following example demonstrates how to check if a field is a SFVec3f field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFVec3f)
 {
     ...
 }
 

See Also:
Constant Field Values

MFColor

public static final int MFColor
Symbolic name for the MFColor field type. This is the return value of the getType() method for MFColor fields.

The following example demonstrates how to check if a field is a MFColor field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFColor)
 {
     ...
 }
 

See Also:
Constant Field Values

MFFloat

public static final int MFFloat
Symbolic name for the MFFloat field type. This is the return value of the getType() method for MFFloat fields.

The following example demonstrates how to check if a field is a MFFloat field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFFloat)
 {
     ...
 }
 

See Also:
Constant Field Values

MFInt32

public static final int MFInt32
Symbolic name for the MFInt32 field type. This is the return value of the getType() method for MFInt32 fields.

The following example demonstrates how to check if a field is a MFInt32 field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFInt32)
 {
     ...
 }
 

See Also:
Constant Field Values

MFNode

public static final int MFNode
Symbolic name for the MFNode field type. This is the return value of the getType() method for MFNode fields.

The following example demonstrates how to check if a field is a MFNode field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFNode)
 {
     ...
 }
 

See Also:
Constant Field Values

MFRotation

public static final int MFRotation
Symbolic name for the MFRotation field type. This is the return value of the getType() method for MFRotation fields.

The following example demonstrates how to check if a field is a MFRotation field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFRotation)
 {
     ...
 }
 

See Also:
Constant Field Values

MFString

public static final int MFString
Symbolic name for the MFString field type. This is the return value of the getType() method for MFString fields.

The following example demonstrates how to check if a field is a MFString field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFString)
 {
     ...
 }
 

See Also:
Constant Field Values

MFTime

public static final int MFTime
Symbolic name for the MFTime field type. This is the return value of the getType() method for MFTime fields.

The following example demonstrates how to check if a field is a MFTime field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFTime)
 {
     ...
 }
 

See Also:
Constant Field Values

MFVec2f

public static final int MFVec2f
Symbolic name for the MFVec2f field type. This is the return value of the getType() method for MFVec2f fields.

The following example demonstrates how to check if a field is a MFVec2f field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFVec2f)
 {
     ...
 }
 

See Also:
Constant Field Values

MFVec3f

public static final int MFVec3f
Symbolic name for the MFVec3f field type. This is the return value of the getType() method for MFVec3f fields.

The following example demonstrates how to check if a field is a MFVec3f field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.MFVec3f)
 {
     ...
 }
 

See Also:
Constant Field Values

SFMatrix4f

public static final int SFMatrix4f
Symbolic name for the SFMatrix4f field type. This is the return value of the getType() method for SFMatrix4f fields.

The following example demonstrates how to check if a field is a SFMatrix4f field:

 vrml.eai.field.BaseField field = ...;
 if (field.getType() == vrml.eai.field.BaseField.SFMatrix4f)
 {
     ...
 }
 

See Also:
Constant Field Values
Method Detail

getType

public int getType()
Returns the type of field. This is a numerical value that is one of the constants defined in this class.

The following example demonstrates how to print the type of a field to the console:

 

Returns:
The type of field.