Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.sai
Interface FieldFactory

All Known Implementing Classes:
DefaultFieldFactory

public interface FieldFactory

Factory abstract interface for generating field objects from a given node.

The idea of this factory is to break a circular compile dependency between SF/MFNode and all the field classes.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Method Summary
 org.web3d.vrml.scripting.sai.BaseField createField(VRMLNodeType node, java.lang.String field, boolean checkEventIn, boolean internal, java.lang.ref.ReferenceQueue fieldQueue, BaseNodeFactory baseNodeFac)
          Create a field given a name from the node.
 

Method Detail

createField

org.web3d.vrml.scripting.sai.BaseField createField(VRMLNodeType node,
                                                   java.lang.String field,
                                                   boolean checkEventIn,
                                                   boolean internal,
                                                   java.lang.ref.ReferenceQueue fieldQueue,
                                                   BaseNodeFactory baseNodeFac)
Create a field given a name from the node.

Parameters:
node - The node to create the field from
field - The name of the field to fetch
checkEventIn - true if we should check for an event in
internal - true if this represents an internal field definition
fieldQueue - The access listener for propogating s2 requests
baseNodeFac - The factory used to create node wrappers
Returns:
An instance of the field class representing the field
Throws:
InvalidEventInException - The field is not an eventIn
InvalidExposedFieldException - The field is not an exposedField

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium