|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.tabular.impl.defaults.DefaultRecord
public class DefaultRecord
Default implementation of RecordIfc.
Modifications:
$Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
$Revision: 479 $
$Author: sfloess $
$HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/tabular/impl/defaults/DefaultRecord.java $
| Field Summary | |
|---|---|
private FieldFactoryIfc |
_fieldFactory
Used to create fields. |
private java.util.List<FieldIfc> |
_fieldList
Holds all fields that belong to a record. |
private org.apache.commons.logging.Log |
_log
Used for logging. |
| Constructor Summary | |
|---|---|
DefaultRecord()
Default constructor that uses a UnsynchronizedLinkedListFactory as
the list factory. |
|
DefaultRecord(FieldFactoryIfc fieldFactory)
This constructor sets the listFactory to create a
List to hold fields that are logically part of
a record. |
|
DefaultRecord(FieldFactoryIfc fieldFactory,
ListFactoryIfc<FieldIfc> listFactory)
This constructor sets the listFactory to create a
List to hold fields that are logically part of
a record. |
|
DefaultRecord(ListFactoryIfc<FieldIfc> listFactory)
This constructor sets the listFactory to create a
List to hold fields that are logically part of
a record. |
|
| Method Summary | |
|---|---|
void |
addField(FieldIfc field)
Create a field. |
FieldIfc |
createField()
|
java.util.List<FieldIfc> |
getFields()
Return the collection of fields. |
boolean |
removeField(FieldIfc field)
Remove field. |
void |
removeFields()
Removes all fields from the record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final transient org.apache.commons.logging.Log _log
private final FieldFactoryIfc _fieldFactory
private final java.util.List<FieldIfc> _fieldList
| Constructor Detail |
|---|
public DefaultRecord(FieldFactoryIfc fieldFactory,
ListFactoryIfc<FieldIfc> listFactory)
listFactory to create a
List to hold fields that are logically part of
a record.
listFactory - Used to create a list to hold associated fields.public DefaultRecord(FieldFactoryIfc fieldFactory)
listFactory to create a
List to hold fields that are logically part of
a record.
fieldFactory - Used to create fields.public DefaultRecord(ListFactoryIfc<FieldIfc> listFactory)
listFactory to create a
List to hold fields that are logically part of
a record.
listFactory - Used to create a list to hold associated fields.public DefaultRecord()
UnsynchronizedLinkedListFactory as
the list factory.
| Method Detail |
|---|
public FieldIfc createField()
createField in interface RecordIfc
public void removeFields()
throws RemoveException
removeFields in interface RecordIfcRemoveException - if any issues arise removing field.
public boolean removeField(FieldIfc field)
throws RemoveException
field.
removeField in interface RecordIfcfield - The field to remove.
field was removed or false if not.
RemoveException - if any issues arise removing field.
public void addField(FieldIfc field)
throws AddException
addField in interface RecordIfcfield - tThe field to add.
AddException - if any issues arise adding a field.public java.util.List<FieldIfc> getFields()
getFields in interface RecordIfc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||