Interface MFNode
- All Known Implementing Classes:
MFNode
MFNode specifies zero or more nodes; the default value of an MFNode field is the empty list.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
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 a single value from the existing field array.void
Write the current value of the field out to the provided copiedNodes array.void
insertValue
(int imageIndex, X3DNode newValue) Insert a new value prior to the imageIndex 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 an array subset to this field.
-
Method Details
-
getValue
Write the current value of the field out to the provided copiedNodes array.- Parameters:
copiedNodes
- The array to be filled in with current field values.- Throws:
ArrayIndexOutOfBoundsException
- The provided copiedNodes array was too small
-
get1Value
Get a single 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
- index outside bounds of current array.
-
setValue
Assign an array subset to this field.- Parameters:
size
- indicates size of result to copy (i.e. the number of typed singleton values) from beginning of newValue array.newValue
- The replacement value array to (potentially) slice and then assign.
-
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:
imageIndex
- the index of the selected imagenewValue
- 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 imageIndex location in the existing value array, increasing the field length accordingly.- Parameters:
imageIndex
- the index of the selected imagenewValue
- The newValue to insert
-