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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateСode(List<Fields> filledModelFields)Returns generated codeStringgetCodeAboveInsertPosition()Returns previous code from object module until positionStringgetCodeUnderInsertPosition()Returns next code from object module since positionintgetExistingConstructorPartLength()Return constructor part lengthStringgetItemCode(Field field, String tabularSectionName, String registerName)Generate code by valueintgetPositionExistingConstructorCode()Returns position existing constructor codeStringgetPostingProcedure()Returns posting procedureStringgetProcedureName()Return procedure nameList<Fields>getRegisterFillingFields()Returns a collection of collections where each collection is register-sensitivebooleangetReplace()Check existing constructor codeList<Fields>getStartFields()Generate start fields for movement constuctorbooleaninsertInProcedure()Check current procedure
 
- 
- 
- 
Constructor Detail- 
ModuleProcessorpublic ModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition) Create LoaderDocumentObject- Parameters:
- document- - document for which the movements constructor opens,cannot be- null
- module- - document object module , cannot be- null
- scriptVariant- - platform localization , cannot be- null
- insertPosition- - position where the code will be inserted
 
 - 
ModuleProcessorpublic ModuleProcessor(Document document, Module module, ScriptVariant scriptVariant, int insertPosition, String newline) Create LoaderDocumentObject- Parameters:
- document- - document for which the movements constructor opens,cannot be- null
- module- - document object module , cannot be- null
- scriptVariant- - platform localization , cannot be- null
- insertPosition- - position where the code will be inserted
- newline- - line separator, cannot be- null
 
 
- 
 - 
Method Detail- 
getRegisterFillingFieldspublic List<Fields> getRegisterFillingFields() Returns a collection of collections where each collection is register-sensitive- Returns:
- - associative array register to field list, cannot be null
 
 - 
getStartFieldspublic List<Fields> getStartFields() Generate start fields for movement constuctor- Returns:
- - start fields , cannot be null
 
 - 
getPostingProcedurepublic String getPostingProcedure() Returns posting procedure- Returns:
- posting procedure , may return null
 
 - 
getExistingConstructorPartLengthpublic int getExistingConstructorPartLength() Return constructor part length- Returns:
- - constructor part length
 
 - 
getPositionExistingConstructorCodepublic int getPositionExistingConstructorCode() Returns position existing constructor code- Returns:
- - position existing constructor code
 
 - 
insertInProcedurepublic boolean insertInProcedure() Check current procedure- Returns:
- - If code inserting in procedure returns true , else returns false
 
 - 
getCodeAboveInsertPositionpublic String getCodeAboveInsertPosition() Returns previous code from object module until position- Returns:
- - previous code, cannot be null
 
 - 
getCodeUnderInsertPositionpublic String getCodeUnderInsertPosition() Returns next code from object module since position- Returns:
- - next code, cannot be null
 
 - 
generateСodepublic String generateСode(List<Fields> filledModelFields) Returns generated code- Parameters:
- filledModelFields- - data from register section
- Returns:
- - generated code, cannot be null
 
 - 
getProcedureNamepublic String getProcedureName() Return procedure name- Returns:
- procedure name,may return null
 
 - 
getReplacepublic boolean getReplace() Check existing constructor code- Returns:
- - If insert position in existing constuctor code returns true, else returnsfalse
 
 - 
getItemCodepublic String getItemCode(Field field, String tabularSectionName, String registerName) Generate code by value- Parameters:
- field- - field whose code is generated, cannot- null
- tabularSectionName- - tabular section name , may- null
- registerName- - register that contains the field ,cannot- null
- Returns:
- - generated code , cannot null
 
 
- 
 
-