public class MFBool extends MField
Constructor and Description |
---|
MFBool()
Default constructor
|
MFBool(boolean[] values)
Construct an MFBool field.
|
MFBool(int size,
boolean[] values)
Construct an MFBool field.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(boolean b)
Add a new element at the end of the list.
|
void |
addValue(ConstSFBool b)
Add a new element at the end of the list.
|
void |
addValue(SFBool b)
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.
|
boolean |
get1Value(int index)
Retrieve a particular element from an MFBool field.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(boolean[] values)
Retrieves the complete list of booleans making up an MFBool field.
|
void |
insertValue(int index,
boolean b)
Insert a new element at the specified position.
|
void |
insertValue(int index,
ConstSFBool b)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFBool b)
Insert a new element at the specified position.
|
void |
set1Value(int index,
boolean b)
Set a specified element in the field.
|
void |
set1Value(int index,
ConstSFBool b)
Set a specified element in the field.
|
void |
set1Value(int index,
SFBool b)
Set a specified element in the field.
|
void |
setValue(boolean[] values)
Set the value of the field.
|
void |
setValue(ConstMFBool value)
Set the value of the field.
|
void |
setValue(int size,
boolean[] values)
Set the value of the field.
|
void |
setValue(MFBool value)
Set the value of the field.
|
public MFBool()
public MFBool(int size, boolean[] values)
size
- Number of booleans to initialize object with.values
- List of booleans to initialize object with.public MFBool(boolean[] values)
values
- List of booleans to initialize object with.public int getSize()
MField
public void clear()
MField
public void delete(int index)
MField
public void getValue(boolean[] values)
values
- Array to put resulting list of booleans in.public boolean get1Value(int index)
index
- Position of desired element.public void setValue(boolean[] values)
values
- New value for field.public void setValue(int size, boolean[] values)
size
- Size of new value for field.values
- New value for field.public void setValue(MFBool value)
value
- New value for field.public void setValue(ConstMFBool value)
value
- New value for field.public void set1Value(int index, boolean b)
index
- Position of element to update.b
- New value for element.public void set1Value(int index, ConstSFBool b)
index
- Position of element to update.b
- New value for element.public void set1Value(int index, SFBool b)
index
- Position of element to update.b
- New value for element.public void addValue(boolean b)
b
- Element to add.public void addValue(ConstSFBool b)
b
- Element to add.public void addValue(SFBool b)
b
- Element to add.public void insertValue(int index, boolean b)
index
- Position to insert new element at.b
- Value to insert.public void insertValue(int index, ConstSFBool b)
index
- Position to insert new element at.b
- Value to insert.public void insertValue(int index, SFBool b)
index
- Position to insert new element at.b
- Value to insert.