Enum UriTemplateType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UriTemplateType>

    @ProviderType
    public enum UriTemplateType
    extends java.lang.Enum<UriTemplateType>
    Defines the type of URI template to generate.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CROP_CENTER
      URI template for building an asset rendition with {width} and {height} parameter, cropping the original image if required to it's central part to fit into the given box.
      SCALE_HEIGHT
      URI template for building an asset rendition with {height} parameter, resizing the image to the given height.
      SCALE_WIDTH
      URI template for building an asset rendition with {width} parameter, resizing the image to the given width.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static UriTemplateType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static UriTemplateType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CROP_CENTER

        public static final UriTemplateType CROP_CENTER
        URI template for building an asset rendition with {width} and {height} parameter, cropping the original image if required to it's central part to fit into the given box. The image is never scaled up.
      • SCALE_WIDTH

        public static final UriTemplateType SCALE_WIDTH
        URI template for building an asset rendition with {width} parameter, resizing the image to the given width. The image is never scaled up.
      • SCALE_HEIGHT

        public static final UriTemplateType SCALE_HEIGHT
        URI template for building an asset rendition with {height} parameter, resizing the image to the given height. The image is never scaled up.
    • Method Detail

      • values

        public static UriTemplateType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UriTemplateType c : UriTemplateType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UriTemplateType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null