public class MFNode extends MField
| Constructor and Description |
|---|
MFNode()
Default constructor.
|
MFNode(BaseNode[] nodes)
Construct an MFNode field.
|
MFNode(int size,
BaseNode[] nodes)
Construct an MFNode field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(BaseNode node)
Add a new element at the end of the list.
|
void |
addValue(ConstSFNode node)
Add a new element at the end of the list.
|
void |
addValue(SFNode node)
Add a new element at the end of the list.
|
void |
clear()
Removes all fields from the MField.
|
java.lang.Object |
clone()
Create a shallow copy of the MFNode; the underlying BaseNodes are
not copied.
|
void |
delete(int index)
Deletes a field from the MField.
|
BaseNode |
get1Value(int index)
Retrieves a specific BaseNode from an MFNode.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(BaseNode[] nodes)
Retrieves the value of an MFNode field.
|
void |
insertValue(int index,
BaseNode node)
Insert a new element at the specified position.
|
void |
insertValue(int index,
ConstSFNode node)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFNode node)
Insert a new element at the specified position.
|
void |
set1Value(int index,
BaseNode node)
Set a specified element in the field.
|
void |
set1Value(int index,
ConstSFNode node)
Set a specified element in the field.
|
void |
set1Value(int index,
SFNode node)
Set a specified element in the field.
|
void |
setValue(BaseNode[] node)
Set the value of the field.
|
void |
setValue(ConstMFNode nodes)
Set the value of the field.
|
void |
setValue(int size,
BaseNode[] nodes)
Set the value of the field.
|
void |
setValue(MFNode nodes)
Set the value of the field.
|
public MFNode()
public MFNode(int size,
BaseNode[] nodes)
size - Number of elements passed in.nodes - Array of BaseNodes.public MFNode(BaseNode[] nodes)
nodes - Array of BaseNodes.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public int getSize()
MFieldpublic void clear()
MFieldpublic void delete(int index)
MFieldpublic void getValue(BaseNode[] nodes)
nodes - Array of BaseNodes to be returned.public BaseNode get1Value(int index)
index - Position of desired BaseNode.public void setValue(BaseNode[] node)
node - New value for field.public void setValue(int size,
BaseNode[] nodes)
size - Size of new value for field.nodes - New value for field.public void setValue(MFNode nodes)
nodes - New value for field.public void setValue(ConstMFNode nodes)
node - New value for field.public void set1Value(int index,
BaseNode node)
index - Position of element to update.node - New value for element.public void set1Value(int index,
ConstSFNode node)
index - Position of element to update.node - New value for element.public void set1Value(int index,
SFNode node)
index - Position of element to update.node - New value for element.public void addValue(BaseNode node)
node - Element to add.public void addValue(ConstSFNode node)
node - Element to add.public void addValue(SFNode node)
node - Element to add.public void insertValue(int index,
BaseNode node)
index - Position to insert new element at.node - Value to insert.public void insertValue(int index,
ConstSFNode node)
index - Position to insert new element at.node - Value to insert.public void insertValue(int index,
SFNode node)
index - Position to insert new element at.node - Value to insert.