Class AbstractImpexGeneratorOperation

    • Constructor Detail

      • AbstractImpexGeneratorOperation

        public AbstractImpexGeneratorOperation()
    • Method Detail

      • getMappingLineService

        protected MappingLineService getMappingLineService()
        Returns:
        the importMappingService
      • setMappingLineService

        public void setMappingLineService​(MappingLineService mappingLineService)
        Parameters:
        mappingLineService - the importMappingService to set
      • setCatalogTypeService

        public void setCatalogTypeService​(CatalogTypeService catalogTypeService)
      • getCatalogVersionsForMapping

        public java.util.Set<java.lang.String> getCatalogVersionsForMapping​(java.lang.String catalogVersionBaseType,
                                                                            MappingModel mapping)
        Specified by:
        getCatalogVersionsForMapping in interface ImpexGeneratorOperation
        Returns:
        (All needed catalog version for base type and all subtype. It exist only the values catalogVersion and systemVersion)
      • hasMappedSource

        protected boolean hasMappedSource​(MappingLineModel mappingLineModel)
        Parameters:
        mappingLineModel -
        Returns:
        true... false...
      • getHaveUniqueAttributes

        protected boolean getHaveUniqueAttributes​(java.util.List<MappingLineModel> lines)
        Checks the supplied List of mapping line models (MappingLineModel), to determine if contains any unique attributes.
        Parameters:
        lines -
        Returns:
        true if any of the mapping lines contains any unique attrributes, false otherwise.
      • appendOwner

        protected void appendOwner​(MappingLineModel line,
                                   MappingLineModel subLine,
                                   java.lang.StringBuilder outBuffer)
        Appends the owner if it exists to the ImpexHeaderAttributeReference output
        Parameters:
        line - - a non-null MappingLineModel object
        subLine - - a non-null MappingLineModel object which is a child of line.
        outBuffer - - - a non-null String object to which the owner is appended.
      • appendCatalogVersionDetailsForAttributeReference

        protected void appendCatalogVersionDetailsForAttributeReference​(MappingLineModel line,
                                                                        java.lang.StringBuilder outBuffer)
        Appends the catalog version details if the mapping line is catalog version aware to the ImpexHeaderAttributeReference output.
        Parameters:
        line - - a non-null MappingLineModel object
        outBuffer - - - a non-null String object to which the owner is appended.
      • apppendTranslatorForProductAttrib

        protected boolean apppendTranslatorForProductAttrib​(MappingLineModel mappingLineModel,
                                                            java.lang.StringBuilder macro)