Class Impex

  • All Implemented Interfaces:
    java.io.Serializable

    public class Impex
    extends java.lang.Object
    implements java.io.Serializable
    Represents impex for all typeCodes. In order to generate impex script based on this object please see ImpexConverter.
    See Also:
    Serialized Form
    • Field Detail

      • EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME

        public static final java.lang.String EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • Impex

        public Impex()
    • Method Detail

      • findUpdates

        public ImpexForType findUpdates​(java.lang.String typeCode)
        Finds ImpexForType for given type code. If not found then a new instance of ImpexForType will be created, automatically added to list of impexes and returned.
        Parameters:
        typeCode -
        Returns:
      • createNewImpex

        protected ImpexForType createNewImpex​(java.lang.String typeCode)
        Creates a new Impex type for given type code.
        Parameters:
        typeCode -
        Returns:
        empty ImpexForType for given type code
      • getImpexes

        public java.util.List<ImpexForType> getImpexes()
      • usesDocumentRef

        protected boolean usesDocumentRef​(ImpexForType impexForType)
      • mergeImpex

        public void mergeImpex​(Impex subImpex,
                               java.lang.String typeCode,
                               java.lang.Integer rowIndex)
        Merges subImpex to current main impex.
        Parameters:
        subImpex - Impex contains impex's values for current sheet's cell
        typeCode - for current excel's sheet. It's required in order to recognize whether ImpexForType contains single value for current typeCode or dependent impex for another type.
        rowIndex - of currently processing row
      • mergeImpex

        public void mergeImpex​(Impex subImpex)
        Merges subImpex into mainImpex. All rows from subImpex are rewritten to mainImpex
        Parameters:
        subImpex - Impex contains changes which should be merged to mainImpex