com.silverpeas.processManager.record
Class QuestionRecord

java.lang.Object
  extended by com.silverpeas.processManager.record.QuestionRecord
All Implemented Interfaces:
com.silverpeas.form.DataRecord, Serializable

public class QuestionRecord
extends Object
implements com.silverpeas.form.DataRecord

See Also:
Serialized Form

Constructor Summary
QuestionRecord(String content)
          A QuestionRecord is built from a Question
 
Method Summary
 com.silverpeas.form.Field getField(int fieldIndex)
          Returns the field at the index position in the record.
 com.silverpeas.form.Field getField(String fieldName)
          Returns the named field.
 com.silverpeas.form.Field getField(String fieldName, int occurrence)
           
 String[] getFieldNames()
           
 com.silverpeas.form.Field[] getFields()
          Returns all the fields
 String getId()
          Returns the data record id.
 String getLanguage()
           
 Map<String,String> getValues(String language)
           
 boolean isNew()
          Return true if this record has not been inserted in a RecordSet.
 void setId(String id)
          Gives an id to the record.
 void setLanguage(String language)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionRecord

public QuestionRecord(String content)
A QuestionRecord is built from a Question

Method Detail

getId

public String getId()
Returns the data record id. The record is known by its external id.

Specified by:
getId in interface com.silverpeas.form.DataRecord

setId

public void setId(String id)
Gives an id to the record. Caution ! the record is known by its external id.

Specified by:
setId in interface com.silverpeas.form.DataRecord

getFields

public com.silverpeas.form.Field[] getFields()
Returns all the fields


getField

public com.silverpeas.form.Field getField(String fieldName)
                                   throws com.silverpeas.form.FormException
Returns the named field.

Specified by:
getField in interface com.silverpeas.form.DataRecord
Throws:
com.silverpeas.form.FormException

getField

public com.silverpeas.form.Field getField(String fieldName,
                                          int occurrence)
Specified by:
getField in interface com.silverpeas.form.DataRecord

getField

public com.silverpeas.form.Field getField(int fieldIndex)
                                   throws com.silverpeas.form.FormException
Returns the field at the index position in the record.

Specified by:
getField in interface com.silverpeas.form.DataRecord
Throws:
com.silverpeas.form.FormException

getFieldNames

public String[] getFieldNames()
Specified by:
getFieldNames in interface com.silverpeas.form.DataRecord

isNew

public boolean isNew()
Return true if this record has not been inserted in a RecordSet.

Specified by:
isNew in interface com.silverpeas.form.DataRecord

getLanguage

public String getLanguage()
Specified by:
getLanguage in interface com.silverpeas.form.DataRecord

setLanguage

public void setLanguage(String language)
Specified by:
setLanguage in interface com.silverpeas.form.DataRecord

getValues

public Map<String,String> getValues(String language)
Specified by:
getValues in interface com.silverpeas.form.DataRecord


Copyright © 2016 Silverpeas. All Rights Reserved.