Package com.e1c.g5.v8.dt.mw
Class ModuleProcessor
- java.lang.Object
-
- com.e1c.g5.v8.dt.mw.ModuleProcessor
-
public class ModuleProcessor extends Object
Loading module. It downloads the procedure Fields module document
-
-
Constructor Summary
Constructors Constructor Description ModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition)
Create LoaderDocumentObjectModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition, String newline)
Create LoaderDocumentObject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateСode(List<Fields> filledModelFields)
Returns generated codeString
getCodeAboveInsertPosition()
Returns previous code from object module until positionString
getCodeUnderInsertPosition()
Returns next code from object module since positionint
getExistingConstructorPartLength()
Return constructor part lengthString
getItemCode(Field field, String tabularSectionName, String registerName)
Generate code by valueint
getPositionExistingConstructorCode()
Returns position existing constructor codeString
getPostingProcedure()
Returns posting procedureString
getProcedureName()
Return procedure nameList<Fields>
getRegisterFillingFields()
Returns a collection of collections where each collection is register-sensitiveboolean
getReplace()
Check existing constructor codeList<Fields>
getStartFields()
Generate start fields for movement constuctorboolean
insertInProcedure()
Check current procedure
-
-
-
Constructor Detail
-
ModuleProcessor
public ModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition)
Create LoaderDocumentObject- Parameters:
document
- - document for which the movements constructor opens,cannot benull
module
- - document object module , cannot benull
scriptVariant
- - platform localization , cannot benull
insertPosition
- - position where the code will be inserted
-
ModuleProcessor
public ModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition, String newline)
Create LoaderDocumentObject- Parameters:
document
- - document for which the movements constructor opens,cannot benull
module
- - document object module , cannot benull
scriptVariant
- - platform localization , cannot benull
insertPosition
- - position where the code will be insertednewline
- - line separator, cannot benull
-
-
Method Detail
-
getRegisterFillingFields
public List<Fields> getRegisterFillingFields()
Returns a collection of collections where each collection is register-sensitive- Returns:
- - associative array register to field list, cannot be
null
-
getStartFields
public List<Fields> getStartFields()
Generate start fields for movement constuctor- Returns:
- - start fields , cannot be
null
-
getPostingProcedure
public String getPostingProcedure()
Returns posting procedure- Returns:
- posting procedure , may return
null
-
getExistingConstructorPartLength
public int getExistingConstructorPartLength()
Return 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
public String getCodeAboveInsertPosition()
Returns previous code from object module until position- Returns:
- - previous code, cannot be
null
-
getCodeUnderInsertPosition
public String getCodeUnderInsertPosition()
Returns next code from object module since position- Returns:
- - next code, cannot be
null
-
generateСode
public String generateСode(List<Fields> filledModelFields)
Returns generated code- Parameters:
filledModelFields
- - data from register section- Returns:
- - generated code, cannot be
null
-
getProcedureName
public String 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
-
getItemCode
public String getItemCode(Field field, String tabularSectionName, String registerName)
Generate code by value- Parameters:
field
- - field whose code is generated, cannotnull
tabularSectionName
- - tabular section name , maynull
registerName
- - register that contains the field ,cannotnull
- Returns:
- - generated code , cannot
null
-
-