com.silverpeas.form
Interface RecordTemplate

All Known Implementing Classes:
DummyRecordTemplate, GenericRecordTemplate, IdentifiedRecordTemplate, ProcessInstanceRecordTemplate, ProcessInstanceRowTemplate

public interface RecordTemplate

A RecordTemplate describes DataRecord and gives the field names and type informations.

See Also:
DataRecord

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.
 

Method Detail

getFieldNames

String[] getFieldNames()
Returns all the field names of the DataRecord built on this template.


getFieldTemplates

FieldTemplate[] getFieldTemplates()
                                  throws FormException
Returns all the field templates.

Throws:
FormException

getFieldTemplate

FieldTemplate getFieldTemplate(String fieldName)
                               throws FormException
Returns the FieldTemplate of the named field.

Throws:
FormException

getFieldIndex

int getFieldIndex(String fieldName)
                  throws FormException
Returns the Field index of the named field.

Throws:
FormException

getEmptyRecord

DataRecord getEmptyRecord()
                          throws FormException
Returns an empty DataRecord built on this template.

Throws:
FormException

checkDataRecord

boolean checkDataRecord(DataRecord record)
Returns true if the data record is built on this template and all the constraints are ok.



Copyright © 2016 Silverpeas. All Rights Reserved.