Xj3D 2.0 VRML/X3D Code API

org.web3d.x3d.sai
Interface SFNode

All Superinterfaces:
X3DField

public interface SFNode
extends X3DField

Representation of a SFNode field.

Get the value of a node. The java null reference is treated to be equivalent to the VRML NULL field values. If the node field contains a NULL reference then reading this eventOut will result in a java null being returned.

Version:
1.0 30 April 1998

Method Summary
 X3DNode getValue()
          Get the node value in the given eventOut.
 void setValue(X3DNode value)
          Set the node value in the given eventIn.
 
Methods inherited from interface org.web3d.x3d.sai.X3DField
addX3DEventListener, getDefinition, getUserData, isReadable, isWritable, removeX3DEventListener, setUserData
 

Method Detail

getValue

X3DNode getValue()
Get the node value in the given eventOut. If no node reference is set then null is returned to the user.

Returns:
The new node reference set.

setValue

void setValue(X3DNode value)
              throws InvalidNodeException
Set the node value in the given eventIn.

If the node reference passed to this method has already had the dispose method called then an InvalidNodeException will be generated.

Parameters:
value - The new node reference to be used.
Throws:
InvalidNodeException - The node reference passed has already been disposed.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium