Class QuestionRecord
java.lang.Object
org.silverpeas.processmanager.record.QuestionRecord
- All Implemented Interfaces:
Serializable,org.silverpeas.core.contribution.content.form.DataRecord
public class QuestionRecord
extends Object
implements org.silverpeas.core.contribution.content.form.DataRecord
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.silverpeas.core.contribution.content.form.FieldgetField(int fieldIndex) Returns the field at the index position in the record.org.silverpeas.core.contribution.content.form.FieldReturns the named field.org.silverpeas.core.contribution.content.form.FieldString[]org.silverpeas.core.contribution.content.form.Field[]Returns all the fieldsgetId()Returns the data record id.org.silverpeas.core.ResourceReferenceorg.silverpeas.core.contribution.content.form.RecordTemplatebooleanisNew()Return true if this record has not been inserted in a RecordSet.voidGives an id to the record.voidsetLanguage(String language) intsize()
-
Constructor Details
-
QuestionRecord
A QuestionRecord is built from a Question
-
-
Method Details
-
getId
Returns the data record id. The record is known by its external id.- Specified by:
getIdin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
setId
Gives an id to the record. Caution ! the record is known by its external id.- Specified by:
setIdin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getFields
public org.silverpeas.core.contribution.content.form.Field[] getFields()Returns all the fields -
getField
public org.silverpeas.core.contribution.content.form.Field getField(String fieldName) throws org.silverpeas.core.contribution.content.form.FormException Returns the named field.- Specified by:
getFieldin interfaceorg.silverpeas.core.contribution.content.form.DataRecord- Throws:
org.silverpeas.core.contribution.content.form.FormException- when the fieldName is unknown.
-
getField
public org.silverpeas.core.contribution.content.form.Field getField(String fieldName, int occurrence) - Specified by:
getFieldin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getField
public org.silverpeas.core.contribution.content.form.Field getField(int fieldIndex) throws org.silverpeas.core.contribution.content.form.FormException Returns the field at the index position in the record.- Specified by:
getFieldin interfaceorg.silverpeas.core.contribution.content.form.DataRecord- Throws:
org.silverpeas.core.contribution.content.form.FormException- when the fieldIndex is unknown.
-
size
public int size()- Specified by:
sizein interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getFieldNames
- Specified by:
getFieldNamesin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
isNew
public boolean isNew()Return true if this record has not been inserted in a RecordSet.- Specified by:
isNewin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getLanguage
- Specified by:
getLanguagein interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
setLanguage
- Specified by:
setLanguagein interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getValues
- Specified by:
getValuesin interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getResourceReference
public org.silverpeas.core.ResourceReference getResourceReference()- Specified by:
getResourceReferencein interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-
getTemplate
public org.silverpeas.core.contribution.content.form.RecordTemplate getTemplate()- Specified by:
getTemplatein interfaceorg.silverpeas.core.contribution.content.form.DataRecord
-