|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MFString
Representation of a MFString field.
Strings are represented using standard java.lang.String representations. The implementation of this class will provide any necessary conversions to the UTF8 format required for VRML support.
| Method Summary | |
|---|---|
void |
append(java.lang.String value)
Places a new value at the end of the existing value, increasing the field length accordingly. |
void |
clear()
Removes all values in the field and changes the field size to zero. |
java.lang.String |
get1Value(int index)
Get a particular string value in the given eventOut array. |
void |
getValue(java.lang.String[] value)
Write the value of the array of the strings to the given array. |
void |
insertValue(int index,
java.lang.String value)
Inserts a value into an existing index of the field. |
void |
removeValue(int index)
Removes one value from the field. |
void |
set1Value(int index,
java.lang.String value)
Set a particular string value in the given eventIn array. |
void |
setValue(int numStrings,
java.lang.String[] value)
Set the value of the array of strings. |
| Methods inherited from interface org.web3d.x3d.sai.MField |
|---|
getSize |
| Methods inherited from interface org.web3d.x3d.sai.X3DField |
|---|
addX3DEventListener, getDefinition, getUserData, isReadable, isWritable, removeX3DEventListener, setUserData |
| Method Detail |
|---|
void append(java.lang.String value)
value - The value to appendvoid clear()
void getValue(java.lang.String[] value)
value - The string array to be filled in
java.lang.ArrayIndexOutOfBoundsException - The provided array was too smalljava.lang.String get1Value(int index)
If the index is out of the bounds of the current array of data values an ArrayIndexOutOfBoundsException will be generated. If the array reference was null when set, an empty string will be returned to the caller.
index - The position to get the string value from
java.lang.ArrayIndexOutOfBoundsException - The index value was out of bounds of
the current array.
void insertValue(int index,
java.lang.String value)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position at which to insertvalue - The new element to insert
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void removeValue(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position of the value to remove.
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void setValue(int numStrings,
java.lang.String[] value)
numStrings - The number of items to be copied from this arrayvalue - The array of strings.
void set1Value(int index,
java.lang.String value)
If the index is out of the bounds of the current array of data values an ArrayIndexOutOfBoundsException will be generated. If the value reference is null then the result is implementation specific in terms of the array reference that reaches the eventIn. In any case, an event will reach the destination eventIn, but the values in that array are implementation specific. No exception will be generated in this case.
index - The position to set the string valuevalue - The string value
java.lang.ArrayIndexOutOfBoundsException - The index value was out of bounds of
the current array.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||