public Map < String , VariantSet > getCustomBundleVariantSets ( String bundleName ) { Map < String , VariantSet > variantSets = new HashMap <> ( ) ; StringTokenizer tk = new StringTokenizer ( getCustomBundleProperty ( bundleName , PropertiesBundleConstant . BUNDLE_FACTORY_CUSTOM_VARIANTS , "" ) , ";" ) ; while ( tk . hasMoreTokens ( ) ) { String [ ] mapEntry = tk . nextToken ( ) . trim ( ) . split ( ":" ) ; String type = mapEntry [ 0 ] ; String defaultVariant = mapEntry [ 1 ] ; String values = mapEntry [ 2 ] ; String [ ] variantsArray = StringUtils . split ( values , "," ) ; List < String > variants = new ArrayList <> ( ) ; variants . addAll ( Arrays . asList ( variantsArray ) ) ; VariantSet variantSet = new VariantSet ( type , defaultVariant , variants ) ; variantSets . put ( type , variantSet ) ; } return variantSets ; }
Returns the map of variantSet for the bundle