Package org.web3d.x3d.sai
Interface MFString
- All Known Implementing Classes:
MFString
MFString is an array of SFString values, each "quoted" and separated by whitespace. Individual SFString array values are optionally separated by commas in XML syntax.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Places a new value at the end of the existing value array, increasing the field length accordingly.get1Value
(int index) Get an individual value from the existing field array.void
Write out the current value of this field into the external valueDestination array.void
insertValue
(int index, String newValue) Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.void
Replace a single value at the appropriate location in the existing value array.void
Assign a new value to this field.
-
Method Details
-
getValue
Write out the current value of this field into the external valueDestination array.- Parameters:
valueDestination
- The array to be filled in with current field values.- Throws:
ArrayIndexOutOfBoundsException
- The provided valueDestination array was too small.
-
get1Value
Get an individual value from the existing field array.
If the index is outside the bounds of the current array of data values, an ArrayIndexOutOfBoundsException is thrown.
- Parameters:
index
- is position of selected value in current array- Returns:
- The selected value
- Throws:
ArrayIndexOutOfBoundsException
- The index was outside of the bounds of the current array.
-
setValue
Assign a new value to this field.- Parameters:
numStrings
- The number of strings in the newValue arraynewValue
- The newValue array of strings to set
-
set1Value
Replace a single value at the appropriate location in the existing value array. Size of the current underlying value array does not change.- Parameters:
index
- is position of selected value in current arraynewValue
- provides new value to apply
-
append
Places a new value at the end of the existing value array, increasing the field length accordingly.- Parameters:
newValue
- The newValue to append
-
insertValue
Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.- Parameters:
index
- The position for the inserted value in the current arraynewValue
- The newValue to insert
-