Groovy Documentation

src.groovy.pl.burningice.plugins.image.container
Class ContainerUtils

java.lang.Object
  src.groovy.pl.burningice.plugins.image.container.ContainerUtils

class ContainerUtils

Provide helper methods for working with ImageContainers

author:
pawel.gdula@burningice.pl


Property Summary
private static def NAME_ELEMENTS_DELIMITER

 
Constructor Summary
ContainerUtils()

 
Method Summary
static def getConfig(ImageContainer imageContainer)

Returns configuration for specified container

static def getFullName(def sizeName, ImageContainer imageContainer, def config)

Returns full name (with extension) for image with specified size

static def getImageContainerName(def imageContainer)

Returns class name for specified container

static def getImageExtension(java.lang.String imageName)

Retrieve file extension from name of file

static def getName(def sizeName, ImageContainer imageContainer, def config)

Returns name (without extension) for image with specified size

 
Methods inherited from class java.lang.Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

NAME_ELEMENTS_DELIMITER

private static final def NAME_ELEMENTS_DELIMITER


 
Constructor Detail

ContainerUtils

ContainerUtils()


 
Method Detail

getConfig

public static def getConfig(ImageContainer imageContainer)
Returns configuration for specified container
param:
imageContainer Image container for witch configuration is searched
return:
Configuration data for specified container


getFullName

public static def getFullName(def sizeName, ImageContainer imageContainer, def config)
Returns full name (with extension) for image with specified size
param:
sizeName Image size that we looking for
param:
imageContainer Image container for witch image is searched
param:
config Configuration of specified imageContainer
return:
Name of the file


getImageContainerName

public static def getImageContainerName(def imageContainer)
Returns class name for specified container
param:
imageContainer Image container for witch configuration is searched
return:
Name of the class


getImageExtension

public static def getImageExtension(java.lang.String imageName)
Retrieve file extension from name of file
param:
imageName File name
return:
File extension


getName

public static def getName(def sizeName, ImageContainer imageContainer, def config)
Returns name (without extension) for image with specified size
param:
sizeName Image size that we looking for
param:
imageContainer Image container for witch image is searched
param:
config Configuration of specified imageContainer
return:
Name of the file


 

Groovy Documentation