|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.record.GenericRecordTemplate
public class GenericRecordTemplate
A GenericRecordTemplate builds GenericDataRecord. It use a map : Map (FieldName -> (index,GenericFieldTemplate))
Constructor Summary | |
---|---|
GenericRecordTemplate()
A GenericRecordTemplate is built empty : use addFieldTemplate for each field. |
Method Summary | |
---|---|
void |
addFieldTemplate(FieldTemplate fieldTemplate)
Adds a new field template at the end of this record template. |
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. |
List<FieldTemplate> |
getFieldList()
|
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. |
void |
setFieldList(List<FieldTemplate> fieldList)
|
void |
setTemplateName(String templateName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericRecordTemplate()
addFieldTemplate
Method Detail |
---|
public List<FieldTemplate> getFieldList()
public void setFieldList(List<FieldTemplate> fieldList)
public void addFieldTemplate(FieldTemplate fieldTemplate)
public String[] getFieldNames()
getFieldNames
in interface RecordTemplate
public FieldTemplate[] getFieldTemplates()
getFieldTemplates
in interface RecordTemplate
public FieldTemplate getFieldTemplate(String fieldName) throws FormException
getFieldTemplate
in interface RecordTemplate
FormException
public int getFieldIndex(String fieldName) throws FormException
getFieldIndex
in interface RecordTemplate
FormException
public DataRecord getEmptyRecord() throws FormException
getEmptyRecord
in interface RecordTemplate
FormException
public boolean checkDataRecord(DataRecord record)
checkDataRecord
in interface RecordTemplate
public void setTemplateName(String templateName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |