Package com.e1c.g5.v8.dt.gsw
Class ModuleProcessor
java.lang.Object
com.e1c.g5.v8.dt.gsw.ModuleProcessor
Loading and generating module. It downloads and generate the procedure code
-
Constructor Summary
ConstructorsConstructorDescriptionModuleProcessor
(MdObject creatingObject, Module module, ScriptVariant scriptVariant, int insertPosition, IGenerationBasedOnManagementService basedOnManagementService) Create module processor for creating object on baseModuleProcessor
(MdObject creatingObject, Module module, ScriptVariant scriptVariant, int insertPosition, String newline, IGenerationBasedOnManagementService basedOnManagementService) Create module processor for creating object on base -
Method Summary
Modifier and TypeMethodDescriptiongenerateСode
(List<Fields> filledModelFields) Returns generated codegenerateСode
(List<Fields> filledModelFields, boolean addTabularSection) Returns generated codeReturns previous code from object module until positionReturns next code from object module since positionReturns current curRowint
Return existing constructor part lengthReturn actual variable name of filling dataReturns a collection of collections where each collection is basic-object-sensitiveReturns filling procedureint
Returns position existing constructor codeReturn procedure nameboolean
Check existing constructor codeReturns current script variantboolean
Check current procedure
-
Constructor Details
-
ModuleProcessor
public ModuleProcessor(MdObject creatingObject, Module module, ScriptVariant scriptVariant, int insertPosition, IGenerationBasedOnManagementService basedOnManagementService) Create module processor for creating object on base- Parameters:
creatingObject
- - object for which the generation settings constructor opens,cannot benull
module
- - creating object module , cannot benull
scriptVariant
- - platform localization , cannot benull
insertPosition
- - position where the code will be insertedbasedOnManagementService
-IGenerationBasedOnManagementService
service reference. Cannot benull
-
ModuleProcessor
public ModuleProcessor(MdObject creatingObject, Module module, ScriptVariant scriptVariant, int insertPosition, String newline, IGenerationBasedOnManagementService basedOnManagementService) Create module processor for creating object on base- Parameters:
creatingObject
- - object for which the generation settings constructor opens,cannot benull
module
- - creating object module , cannot benull
scriptVariant
- - platform localization , cannot benull
insertPosition
- - position where the code will be insertednewline
- - line separator, cannot benull
basedOnManagementService
-IGenerationBasedOnManagementService
service reference. Cannot benull
-
-
Method Details
-
getFillingFields
Returns a collection of collections where each collection is basic-object-sensitive- Returns:
- associative array basic object to field list, cannot be
null
-
getScriptVariant
Returns current script variant- Returns:
- current script variant
-
getFillingProcedure
Returns filling procedure- Returns:
- filling procedure , may return
null
-
getCurRow
Returns current curRow- Returns:
- curRow
-
getExistingConstructorPartLength
public int getExistingConstructorPartLength()Return existing constructor part length- Returns:
- constructor part length
-
getPositionExistingConstructorCode
public int getPositionExistingConstructorCode()Returns position existing constructor code- Returns:
- position existing constructor code
-
insertInProcedure
public boolean insertInProcedure()Check current procedure- Returns:
- If code inserting in procedure returns true , else returns false
-
getCodeAboveInsertPosition
Returns previous code from object module until position- Returns:
- previous code, cannot be
null
-
getCodeUnderInsertPosition
Returns next code from object module since position- Returns:
- next code, cannot be
null
-
getFillingDataString
Return actual variable name of filling data- Returns:
- variable name, cannot be
null
-
generateСode
Returns generated code- Parameters:
filledModelFields
- - data from new object section, cannot benull
- Returns:
- generated code, cannot be
null
-
generateСode
Returns generated code- Parameters:
filledModelFields
- - data from new object section, cannot benull
addTabularSection
- - add or not tabular section initializate- Returns:
- generated code, cannot be
null
-
getProcedureName
Return procedure name- Returns:
- procedure name,may return
null
-
getReplace
public boolean getReplace()Check existing constructor code- Returns:
- If insert position in existing constuctor code returns
true
, else returns
false
-