Xj3D VRML/X3D Code API

vrml.field
Class ConstMFString

java.lang.Object
  extended byvrml.Field
      extended byvrml.ConstField
          extended byvrml.ConstMField
              extended byvrml.field.ConstMFString
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFString
extends ConstMField

Constant VRML JSAI type class containing multiple String fields.

Version:
$Revision: 1.6 $
Author:
Alan Hudson, Justin Couch

Field Summary
protected  java.lang.String[] data
          The data that the field contains
 
Fields inherited from class vrml.ConstMField
numElements
 
Fields inherited from class vrml.Field
valueChanged
 
Constructor Summary
protected ConstMFString()
          Construct an instance with default values.
  ConstMFString(int size, java.lang.String[] values)
          Construct new constant field based on the subset of the given values.
  ConstMFString(java.lang.String[] values)
          Construct a new constant field based on all the given values.
 
Method Summary
 java.lang.Object clone()
          Make a clone of this object.
 java.lang.String get1Value(int index)
          Fetch the value at the given array index position
 void getValue(java.lang.String[] values)
          Copy the values of this array into the user provided array.
 java.lang.String toString()
          Create a string representation of the field values.
 
Methods inherited from class vrml.ConstMField
getSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected java.lang.String[] data
The data that the field contains

Constructor Detail

ConstMFString

protected ConstMFString()
Construct an instance with default values. Not available to mere mortals.


ConstMFString

public ConstMFString(java.lang.String[] values)
Construct a new constant field based on all the given values.

Parameters:
values - The values to copy

ConstMFString

public ConstMFString(int size,
                     java.lang.String[] values)
Construct new constant field based on the subset of the given values.

Parameters:
size - The number of items to copy
values - The source values to copy
Method Detail

getValue

public void getValue(java.lang.String[] values)
Copy the values of this array into the user provided array.

Parameters:
values - The array to copy data into

get1Value

public java.lang.String get1Value(int index)
Fetch the value at the given array index position

Parameters:
index - The position to ask the value of
Returns:
The value at that position

toString

public java.lang.String toString()
Create a string representation of the field values.

Returns:
A string representing the values.

clone

public java.lang.Object clone()
Make a clone of this object.

Specified by:
clone in class Field
Returns:
A copy of the field and its data

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium