Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.sai
Class DefaultFieldFactory

java.lang.Object
  extended by org.web3d.vrml.scripting.sai.DefaultFieldFactory
All Implemented Interfaces:
FieldFactory

public class DefaultFieldFactory
extends java.lang.Object
implements FieldFactory

Factory class for generating fields from a given node.

Version:
$Revision: 1.7 $
Author:
Justin Couch

Constructor Summary
DefaultFieldFactory()
           
 
Method Summary
 org.web3d.vrml.scripting.sai.BaseField createField(VRMLNodeType node, java.lang.String name, boolean checkEventIn, boolean internal, java.lang.ref.ReferenceQueue fieldQueue, BaseNodeFactory baseNodeFac)
          Create a field given a name from the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFieldFactory

public DefaultFieldFactory()
Method Detail

createField

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

Specified by:
createField in interface FieldFactory
Parameters:
node - The node to create the field from
name - 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 or null
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