Package com._1c.g5.v8.dt.form.generator
Interface IFormGenerator
-
public interface IFormGenerator
Main interface for form generator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<org.eclipse.core.runtime.IPath,Supplier<InputStream>>
generateAttachments(FormType formType, ScriptVariant scriptVariant, String editingLanguageCode, Version version)
Generate attachments for form with specified parameters.Form
generateForm(MdObject mdObject, BasicForm basicForm, FormType formType, ScriptVariant scriptVariant, String languageCode, Version version, FormFieldInfo rootField, Integer columnCount)
Generate form by typeSupplier<InputStream>
generateModuleContent(FormType formType, ScriptVariant scriptVariant, String languageCode, Version version)
Generate module content for form with specified parameters.
-
-
-
Method Detail
-
generateForm
Form generateForm(MdObject mdObject, BasicForm basicForm, FormType formType, ScriptVariant scriptVariant, String languageCode, Version version, FormFieldInfo rootField, Integer columnCount)
Generate form by type- Parameters:
mdObject
- form parent object, must contains in configuration hierarchy, cannot benull
basicForm
- form metadata object, must contains in given mdObject, cannot bynull
formType
-FormType
, cannot benull
scriptVariant
- the current configuration script variant, cannot benull
languageCode
- the current editing language code, cannot benull
version
- the runtime version, cannot benull
rootField
-FormFieldInfo
taken formIFormFieldGenerator.getFormGeneratorFields(com._1c.g5.v8.dt.metadata.mdclass.MdObject, com._1c.g5.v8.dt.form.generator.FormType, com._1c.g5.v8.dt.metadata.mdclass.ScriptVariant, com._1c.g5.v8.dt.platform.version.Version)
, cannot benull
columnCount
- number of column count. need for CONSTANT, OBJECT, GROUP, RECORD form types, can benull
- Returns:
- generated
Form
, nevernull
-
generateModuleContent
Supplier<InputStream> generateModuleContent(FormType formType, ScriptVariant scriptVariant, String languageCode, Version version)
Generate module content for form with specified parameters.Each time supplier invoked will be generate new instance of
InputStream
. And each time it must be closed.- Parameters:
formType
-FormType
, cannot benull
scriptVariant
- the current configuration script variant, cannot benull
languageCode
- the current editing language code, cannot benull
version
- the runtime version, cannot benull
- Returns:
- supplier of
InputStream
of module content, can benull
if form with specified parameters has no module
-
generateAttachments
Map<org.eclipse.core.runtime.IPath,Supplier<InputStream>> generateAttachments(FormType formType, ScriptVariant scriptVariant, String editingLanguageCode, Version version)
Generate attachments for form with specified parameters. In the form of pairs of relative paths andInputStream
content suppliersEach time supplier invoked will be generate new instance of
InputStream
. And each time it must be closed.- Parameters:
formType
-FormType
, cannot benull
scriptVariant
- the current configuration script variant, cannot benull
languageCode
- the current editing language code, cannot benull
version
- the runtime version, cannot benull
- Returns:
- map of attachments, never
null
, may be empty
-
-