vrml.field
Class ConstMFString

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

public class ConstMFString
extends ConstMField

Represents a read-only VRML MFString field in Java.


Constructor Summary
ConstMFString(int size, java.lang.String[] s)
          Construct a read-only MFString field.
ConstMFString(java.lang.String[] s)
          Construct a read-only MFString field.
 
Method Summary
 java.lang.String get1Value(int index)
          Retrieves a specific SFString element in an MFString and returns it as a String.
 int getSize()
          Number of elements contained in the MField.
 void getValue(java.lang.String[] values)
          Retrieves the value of an MFString 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

ConstMFString

public ConstMFString(int size,
                     java.lang.String[] s)
Construct a read-only MFString field.

Parameters:
size - Number of Strings passed in.
s - Arrays of strings.

ConstMFString

public ConstMFString(java.lang.String[] s)
Construct a read-only MFString field.

Parameters:
s - Arrays of strings.
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(java.lang.String[] values)
Retrieves the value of an MFString field.

Parameters:
values - Array of strings to be returned.

get1Value

public java.lang.String get1Value(int index)
Retrieves a specific SFString element in an MFString and returns it as a String.

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