Interface FieldFactory
- All Known Implementing Classes:
ECMAFieldFactory
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.2 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptioncreateField
(VRMLNodeType node, String field, boolean checkEventIn) Create a field given a name from the node.updateField
(Object field, VRMLNodeType node, String name, boolean checkEventIn) Update a field given a name from the node.
-
Method Details
-
createField
Create a field given a name from the node.- Parameters:
node
- The node to create the field fromfield
- The name of the field to fetchcheckEventIn
- true if we should check for an event in- Returns:
- An instance of the field class representing the field
-
updateField
Update a field given a name from the node. Will return an updated field or a new object as needed.- Parameters:
field
- The field to updatenode
- The node to create the field fromname
- The name of the field to fetchcheckEventIn
- true if we should check for an event in- Returns:
- An instance of the field class representing the field
-