Class VariantManagerImpl

    • Method Detail

      • getVariantArraySize

        public int getVariantArraySize()
        Get the size of the variant array This size is different from the number of variants that also count unused but not released variants.
        Returns:
        the size of the variant array
      • getVariantId

        public String getVariantId​(int variantIndex)
      • setWorkingVariant

        public void setWorkingVariant​(String variantId)
        Description copied from interface: VariantManager
        Set the working variant.
        Specified by:
        setWorkingVariant in interface VariantManager
        Parameters:
        variantId - the id of the working variant
      • cloneVariant

        public void cloneVariant​(String sourceVariantId,
                                 String targetVariantId)
        Description copied from interface: VariantManager
        Create a new variant by cloning an existing one.
        Specified by:
        cloneVariant in interface VariantManager
        Parameters:
        sourceVariantId - the source variant id
        targetVariantId - the target variant id (the one that will be created)
      • cloneVariant

        public void cloneVariant​(String sourceVariantId,
                                 String targetVariantId,
                                 boolean mayOverwrite)
        Description copied from interface: VariantManager
        Create or overwrite a variant by cloning an existing one.
        Specified by:
        cloneVariant in interface VariantManager
        Parameters:
        sourceVariantId - the source variant id
        targetVariantId - the target variant id list (the one that will be created/overwritten)
        mayOverwrite - indicates if the target can be overwritten when it already exists
      • cloneVariant

        public void cloneVariant​(String sourceVariantId,
                                 List<String> targetVariantIds)
        Description copied from interface: VariantManager
        Create a new variant by cloning an existing one.
        Specified by:
        cloneVariant in interface VariantManager
        Parameters:
        sourceVariantId - the source variant id
        targetVariantIds - the target variant id list (the ones that will be created)
      • cloneVariant

        public void cloneVariant​(String sourceVariantId,
                                 List<String> targetVariantIds,
                                 boolean mayOverwrite)
        Description copied from interface: VariantManager
        Create or overwrite a variant by cloning an existing one.
        Specified by:
        cloneVariant in interface VariantManager
        Parameters:
        sourceVariantId - the source variant id
        targetVariantIds - the target variant id list (the ones that will be created/overwritten)
        mayOverwrite - indicates if the target can be overwritten when it already exists
      • removeVariant

        public void removeVariant​(String variantId)
        Description copied from interface: VariantManager
        Remove a variant.
        Specified by:
        removeVariant in interface VariantManager
        Parameters:
        variantId - the id of the variant to remove
      • allowVariantMultiThreadAccess

        public void allowVariantMultiThreadAccess​(boolean allow)
        Description copied from interface: VariantManager
        Allows variants to be accessed simulaneously by different threads. When this options is activated, the working variant can have a different value for each thread.
        Specified by:
        allowVariantMultiThreadAccess in interface VariantManager
      • isVariantMultiThreadAccessAllowed

        public boolean isVariantMultiThreadAccessAllowed()
        Description copied from interface: VariantManager
        Get the allowed multithread access state .
        Specified by:
        isVariantMultiThreadAccessAllowed in interface VariantManager
        Returns:
        a boolean to check if the variantManager is allowed to be accessed simulaneously by different threads.