Interface SAINodeFactory
public interface SAINodeFactory
SAINodeFactory is the intermediary intended to break what would be two
dependency loops in the SAI implementation--between EventIn*NodeWrapper
and SimpleWrappingNode and between SimpleWrappingNode and
EventOut*Node Wrapper.
Given a VRMLNodeType or X3DNode, this class can produce or locate the corresponding instance. Whether the instance returned is unique or simply equivalent between subsequent calls is implementation dependent.
- Author:
- Brad Vender
-
Method Summary
Modifier and TypeMethodDescriptiongetSAINode
(VRMLNodeType vrmlNode) Create or locate a X3DNode instance corresponding to this VRMLNodeType instance.getSAIProtoNode
(VRMLNodeType node, X3DProtoDeclaration template) Create or locate an X3DProtoInstance node corresponding to this VRMLNodeType instance.getVRMLNode
(X3DNode aNode) Create or locate a VRMLNodeType corresponding to this vrml.eai.Node.
-
Method Details
-
getSAINode
Create or locate a X3DNode instance corresponding to this VRMLNodeType instance.- Parameters:
vrmlNode
- the VRMLNodeType instance- Returns:
- The X3DNode instance
-
getVRMLNode
Create or locate a VRMLNodeType corresponding to this vrml.eai.Node.- Parameters:
aNode
- the X3DNode instance- Returns:
- The underlying VRMLNodeType instance
-
getSAIProtoNode
Create or locate an X3DProtoInstance node corresponding to this VRMLNodeType instance.- Parameters:
node
- The VRMLNodeType instancetemplate
- The originating template- Returns:
- The X3DProtoInstance instance
-