com.silverpeas.form
Class MyRecordTemplate
java.lang.Object
com.silverpeas.form.MyRecordTemplate
- All Implemented Interfaces:
- RecordTemplate
public class MyRecordTemplate
- extends Object
- implements RecordTemplate
A record template implementation for testing purpose.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyRecordTemplate
public MyRecordTemplate(FieldTemplate... fieldTemplates)
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames in interface RecordTemplate
getFieldTemplates
public FieldTemplate[] getFieldTemplates()
throws FormException
- Specified by:
getFieldTemplates in interface RecordTemplate
- Throws:
FormException
getFieldTemplate
public FieldTemplate getFieldTemplate(String fieldName)
throws FormException
- Specified by:
getFieldTemplate in interface RecordTemplate
- Throws:
FormException
getFieldIndex
public int getFieldIndex(String fieldName)
throws FormException
- Specified by:
getFieldIndex in interface RecordTemplate
- Throws:
FormException
getEmptyRecord
public DataRecord getEmptyRecord()
throws FormException
- Specified by:
getEmptyRecord in interface RecordTemplate
- Throws:
FormException
checkDataRecord
public boolean checkDataRecord(DataRecord record)
- Specified by:
checkDataRecord in interface RecordTemplate
Copyright © 2016 Silverpeas. All Rights Reserved.