public final class RecordCollection
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
RecordCollection() |
Modifier and Type | Method and Description |
---|---|
Record |
add()
Adds a new empty Record to the collection.
|
void |
add(Record rec)
Adds a given Record to the collection.
|
void |
add(RecordCollection rc)
Adds a
RecordCollection to the collection. |
Record |
add(java.lang.String recordType)
Adds a new Record with the given recordType to the collection.
|
void |
clear()
Removes all Records from this
RecordCollection . |
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object obj)
Returns true if obj is equal to this object in every aspect.
|
ifs.fnd.buffer.Buffer |
formatToBuffer()
Formats this object to a Buffer.
|
Record |
get(int index)
Gets the Record at the given index.
|
java.lang.String |
getTag()
Gets the Tag attribute.
|
boolean |
isDirty()
Returns
true if this RecordCollection is dirty. |
java.util.Iterator |
iterator()
Returns an iterator for this collection.
|
void |
parseBuffer(ifs.fnd.buffer.Buffer buf)
Parses a Buffer into this RecordCollection.
|
RecordIterator |
recordIterator()
Returns a
RecordIterator for iterating over this collection. |
void |
remove(int index)
Removes a Record from this object.
|
void |
setTag(java.lang.String tag)
Sets the Tag attribute.
|
int |
size()
Returns the number of Records in the collection.
|
java.lang.String |
toString()
Returns a string representation of the collection.
|
public Record add()
public Record add(java.lang.String recordType)
public void add(Record rec)
public void add(RecordCollection rc)
RecordCollection
to the collection.public void clear()
RecordCollection
.public java.lang.Object clone()
clone
in class java.lang.Object
Object
public int size()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ifs.fnd.buffer.Buffer formatToBuffer() throws APException
APException
Buffer
public Record get(int index)
public java.util.Iterator iterator()
RecordIterator
is returned.RecordIterator
public void remove(int index)
index
- the index of the Record to remove.public RecordIterator recordIterator()
RecordIterator
for iterating over this collection.RecordIterator
public void parseBuffer(ifs.fnd.buffer.Buffer buf) throws APException
APException
Buffer
public java.lang.String getTag()
public void setTag(java.lang.String tag)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDirty()
true
if this RecordCollection is dirty.