vrml.field
Class ConstMFNode

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.ConstMField
              extended by vrml.field.ConstMFNode
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFNode
extends ConstMField

Represents a read-only VRML MFNode field in Java.


Constructor Summary
ConstMFNode(BaseNode[] nodes)
          Construct a read-only MFNode field.
ConstMFNode(int size, BaseNode[] nodes)
          Construct a read-only MFNode field.
 
Method Summary
 BaseNode get1Value(int index)
          Retrieves a specific BaseNode from an MFNode.
 int getSize()
          Number of elements contained in the MField.
 void getValue(BaseNode[] nodes)
          Retrieves the value of an MFNode field.
 
Methods inherited from class vrml.ConstField
clone
 
Methods inherited from class vrml.Field
dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstMFNode

public ConstMFNode(int size,
                   BaseNode[] nodes)
Construct a read-only MFNode field.

Parameters:
size - Number of elements passed in.
nodes - Array of BaseNodes.

ConstMFNode

public ConstMFNode(BaseNode[] nodes)
Construct a read-only MFNode field.

Parameters:
nodes - Array of BaseNodes.
Method Detail

getSize

public int getSize()
Description copied from class: ConstMField
Number of elements contained in the MField.

Specified by:
getSize in class ConstMField
Returns:
the number of elements.

getValue

public void getValue(BaseNode[] nodes)
Retrieves the value of an MFNode field.

Parameters:
nodes - Array of BaseNodes to be returned.

get1Value

public BaseNode get1Value(int index)
Retrieves a specific BaseNode from an MFNode.

Parameters:
index - Position of desired BaseNode.
Returns:
Value of BaseNode at index.