com.silverpeas.form
Class MyRecordTemplate

java.lang.Object
  extended by com.silverpeas.form.MyRecordTemplate
All Implemented Interfaces:
RecordTemplate

public class MyRecordTemplate
extends Object
implements RecordTemplate

A record template implementation for testing purpose.


Constructor Summary
MyRecordTemplate(FieldTemplate... fieldTemplates)
           
 
Method Summary
 boolean checkDataRecord(DataRecord record)
           
 DataRecord getEmptyRecord()
           
 int getFieldIndex(String fieldName)
           
 String[] getFieldNames()
           
 FieldTemplate getFieldTemplate(String fieldName)
           
 FieldTemplate[] getFieldTemplates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyRecordTemplate

public MyRecordTemplate(FieldTemplate... fieldTemplates)
Method Detail

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.