Class QuestionTemplate
java.lang.Object
org.silverpeas.processmanager.record.QuestionTemplate
- All Implemented Interfaces:
Serializable,org.silverpeas.core.contribution.content.form.RecordTemplate
public class QuestionTemplate
extends Object
implements org.silverpeas.core.contribution.content.form.RecordTemplate
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQuestionTemplate(String language, boolean readonly) A QuestionTemplate is built for a given language. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDataRecord(org.silverpeas.core.contribution.content.form.DataRecord record) org.silverpeas.core.contribution.content.form.DataRecordintgetFieldIndex(String fieldName) String[]org.silverpeas.core.contribution.content.form.FieldTemplategetFieldTemplate(String fieldName) org.silverpeas.core.contribution.content.form.FieldTemplate[]
-
Constructor Details
-
QuestionTemplate
A QuestionTemplate is built for a given language.- Parameters:
language- the language the ISO-631 code of a supported language.readonly- is read only a boolean indicating if the question should be readonly
-
-
Method Details
-
getFieldNames
- Specified by:
getFieldNamesin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getFieldTemplates
public org.silverpeas.core.contribution.content.form.FieldTemplate[] getFieldTemplates()- Specified by:
getFieldTemplatesin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getFieldTemplate
public org.silverpeas.core.contribution.content.form.FieldTemplate getFieldTemplate(String fieldName) throws org.silverpeas.core.contribution.content.form.FormException - Specified by:
getFieldTemplatein interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate- Throws:
org.silverpeas.core.contribution.content.form.FormException
-
getFieldIndex
- Specified by:
getFieldIndexin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getEmptyRecord
public org.silverpeas.core.contribution.content.form.DataRecord getEmptyRecord()- Specified by:
getEmptyRecordin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
checkDataRecord
public boolean checkDataRecord(org.silverpeas.core.contribution.content.form.DataRecord record) - Specified by:
checkDataRecordin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-