public Set < String > getGeneratedResourceVariantTypes ( String path ) { Set < String > variantTypes = new HashSet <> ( ) ; ResourceGenerator generator = resolveResourceGenerator ( path ) ; if ( generator != null ) { if ( generator instanceof VariantResourceGenerator ) { Set < String > tempResult = ( ( VariantResourceGenerator ) generator ) . getAvailableVariants ( generator . getResolver ( ) . getResourcePath ( path ) ) . keySet ( ) ; if ( tempResult != null ) { variantTypes = tempResult ; } } else if ( generator instanceof LocaleAwareResourceGenerator ) { variantTypes = new HashSet <> ( ) ; variantTypes . add ( JawrConstant . LOCALE_VARIANT_TYPE ) ; } } return variantTypes ; }
Returns the variant types for a generated resource