vrml.field
Class ConstMFBool

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

public class ConstMFBool
extends ConstMField

Represents a read-only VRML MFBool field in Java.


Constructor Summary
ConstMFBool(boolean[] values)
          Construct a read-only MFBool field.
ConstMFBool(int size, boolean[] values)
          Construct a read-only MFBool field.
 
Method Summary
 boolean get1Value(int index)
          Retrieve a particular element from an MFBool field.
 int getSize()
          Number of elements contained in the MField.
 void getValue(boolean[] values)
          Retrieves the complete list of booleans making up an MFBool 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

ConstMFBool

public ConstMFBool(int size,
                   boolean[] values)
Construct a read-only MFBool field.

Parameters:
size - Number of booleans to initialize object with.
values - List of booleans to initialize object with.

ConstMFBool

public ConstMFBool(boolean[] values)
Construct a read-only MFBool field.

Parameters:
values - List of booleans to initialize object with.
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(boolean[] values)
Retrieves the complete list of booleans making up an MFBool field.

Parameters:
values - Array to put resulting list of booleans in.

get1Value

public boolean get1Value(int index)
Retrieve a particular element from an MFBool field.

Parameters:
index - Position of desired element.
Returns:
Value at specified position.