|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.form.dummy.DummyRecordTemplate
public class DummyRecordTemplate
A dummy record template.
| Constructor Summary | |
|---|---|
DummyRecordTemplate()
A DummyRecordTemplate is empty. |
|
DummyRecordTemplate(RecordTemplate template)
|
|
| Method Summary | |
|---|---|
boolean |
checkDataRecord(DataRecord record)
Returns true if the data record is built on this template and all the constraints are ok. |
DataRecord |
getEmptyRecord()
Returns an empty DataRecord built on this template. |
int |
getFieldIndex(String fieldName)
Returns the field index of the named field. |
String[] |
getFieldNames()
Returns all the field names of the DataRecord built on this template. |
FieldTemplate |
getFieldTemplate(String fieldName)
Returns the FieldTemplate of the named field. |
FieldTemplate[] |
getFieldTemplates()
Returns all the field templates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyRecordTemplate()
public DummyRecordTemplate(RecordTemplate template)
throws FormException
FormException| Method Detail |
|---|
public String[] getFieldNames()
getFieldNames in interface RecordTemplatepublic FieldTemplate[] getFieldTemplates()
getFieldTemplates in interface RecordTemplate
public FieldTemplate getFieldTemplate(String fieldName)
throws FormException
getFieldTemplate in interface RecordTemplatefieldName -
FormException
public int getFieldIndex(String fieldName)
throws FormException
getFieldIndex in interface RecordTemplatefieldName -
FormException - if the field name is unknown.
public DataRecord getEmptyRecord()
throws FormException
getEmptyRecord in interface RecordTemplateFormExceptionpublic boolean checkDataRecord(DataRecord record)
checkDataRecord in interface RecordTemplaterecord -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||