|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFString
public class MFString
Represents a VRML MFString field in Java.
Constructor Summary | |
---|---|
MFString()
Default constructor. |
|
MFString(int size,
java.lang.String[] s)
Construct an MFString field. |
|
MFString(java.lang.String[] s)
Construct an MFString field. |
Method Summary | |
---|---|
void |
addValue(ConstSFString s)
Add a new element at the end of the list. |
void |
addValue(SFString s)
Add a new element at the end of the list. |
void |
addValue(java.lang.String s)
Add a new element at the end of the list. |
void |
clear()
Removes all fields from the MField. |
void |
delete(int index)
Deletes a field from the MField. |
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[] s)
Retrieves the value of an MFString field. |
void |
insertValue(int index,
ConstSFString s)
Insert a new element at the specified position. |
void |
insertValue(int index,
SFString s)
Insert a new element at the specified position. |
void |
insertValue(int index,
java.lang.String s)
Insert a new element at the specified position. |
void |
set1Value(int index,
ConstSFString s)
Set a specified element in the field. |
void |
set1Value(int index,
SFString s)
Set a specified element in the field. |
void |
set1Value(int index,
java.lang.String s)
Set a specified element in the field. |
void |
setValue(ConstMFString s)
Set the value of the field. |
void |
setValue(int size,
java.lang.String[] s)
Set the value of the field. |
void |
setValue(MFString s)
Set the value of the field. |
void |
setValue(java.lang.String[] s)
Set the value of the field. |
Methods inherited from class vrml.Field |
---|
clone, dispose, finalize, getPeer, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MFString()
public MFString(int size, java.lang.String[] s)
size
- Number of Strings passed in.s
- Arrays of strings.public MFString(java.lang.String[] s)
s
- Arrays of strings.Method Detail |
---|
public int getSize()
MField
getSize
in class MField
public void clear()
MField
clear
in class MField
public void delete(int index)
MField
delete
in class MField
index
- Index of field to delete.public void getValue(java.lang.String[] s)
s
- Array of strings to be returned.public java.lang.String get1Value(int index)
index
- Position of desired SFString
public void setValue(java.lang.String[] s)
s
- New value for field.public void setValue(int size, java.lang.String[] s)
size
- Size of new value for field.s
- New value for field.public void setValue(MFString s)
s
- New value for field.public void setValue(ConstMFString s)
s
- New value for field.public void set1Value(int index, java.lang.String s)
index
- Position of element to update.s
- New value for element.public void set1Value(int index, ConstSFString s)
index
- Position of element to update.s
- New value for element.public void set1Value(int index, SFString s)
index
- Position of element to update.s
- New value for element.public void addValue(java.lang.String s)
s
- Element to add.public void addValue(ConstSFString s)
s
- Element to add.public void addValue(SFString s)
s
- Element to add.public void insertValue(int index, java.lang.String s)
index
- Position to insert new element at.s
- Value to insert.public void insertValue(int index, ConstSFString s)
index
- Position to insert new element at.s
- Value to insert.public void insertValue(int index, SFString s)
index
- Position to insert new element at.s
- Value to insert.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |