|
||||||||||
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 RecordTemplate
public FieldTemplate[] getFieldTemplates()
getFieldTemplates
in interface RecordTemplate
public FieldTemplate getFieldTemplate(String fieldName) throws FormException
getFieldTemplate
in interface RecordTemplate
fieldName
-
FormException
public int getFieldIndex(String fieldName) throws FormException
getFieldIndex
in interface RecordTemplate
fieldName
-
FormException
- if the field name is unknown.public DataRecord getEmptyRecord() throws FormException
getEmptyRecord
in interface RecordTemplate
FormException
public boolean checkDataRecord(DataRecord record)
checkDataRecord
in interface RecordTemplate
record
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |