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
RecordCollectionto 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)
RecordCollectionto the collection.public void clear()
RecordCollection.public java.lang.Object clone()
clone in class java.lang.ObjectObjectpublic int size()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ifs.fnd.buffer.Buffer formatToBuffer()
throws APException
APExceptionBufferpublic Record get(int index)
public java.util.Iterator iterator()
RecordIterator
is returned.RecordIteratorpublic void remove(int index)
index - the index of the Record to remove.public RecordIterator recordIterator()
RecordIterator for iterating over this collection.RecordIteratorpublic void parseBuffer(ifs.fnd.buffer.Buffer buf)
throws APException
APExceptionBufferpublic java.lang.String getTag()
public void setTag(java.lang.String tag)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDirty()
true if this RecordCollection is dirty.