Class ProcessInstanceTemplate
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.datarecord.ProcessInstanceTemplate
-
- All Implemented Interfaces:
Serializable
,RecordTemplate
- Direct Known Subclasses:
ProcessInstanceRecordTemplate
,ProcessInstanceRowTemplate
public abstract class ProcessInstanceTemplate extends Object implements RecordTemplate
- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
fieldNames
The field names.protected Map<String,IndexedFieldTemplate>
fields
The map (fieldName -> IndexedFieldTemplate).
-
Constructor Summary
Constructors Constructor Description ProcessInstanceTemplate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Field[]
buildFieldsArray()
String[]
getFieldNames()
Gets all the field names of theDataRecord
s built on this template.abstract FieldTemplate
getFieldTemplate(int fieldIndex)
FieldTemplate[]
getFieldTemplates()
Gets all the fields defined by this template.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.contribution.content.form.RecordTemplate
checkDataRecord, getEmptyRecord, getFieldIndex, getFieldTemplate
-
-
-
-
Field Detail
-
fieldNames
protected String[] fieldNames
The field names.
-
fields
protected final transient Map<String,IndexedFieldTemplate> fields
The map (fieldName -> IndexedFieldTemplate).
-
-
Method Detail
-
getFieldTemplate
public abstract FieldTemplate getFieldTemplate(int fieldIndex) throws FormException
- Throws:
FormException
-
buildFieldsArray
public abstract Field[] buildFieldsArray()
-
getFieldNames
public String[] getFieldNames()
Description copied from interface:RecordTemplate
Gets all the field names of theDataRecord
s built on this template.- Specified by:
getFieldNames
in interfaceRecordTemplate
- Returns:
- an array with the name of the fields defined by this template.
-
getFieldTemplates
public FieldTemplate[] getFieldTemplates() throws FormException
Description copied from interface:RecordTemplate
Gets all the fields defined by this template.- Specified by:
getFieldTemplates
in interfaceRecordTemplate
- Returns:
- an array of
FieldTemplate
instances, each of them being a template of aDataRecord
field. - Throws:
FormException
- is an error occurs while getting the template of the fields.
-
-