public class Utils
extends java.lang.Object
| Constructor and Description | 
|---|
| Utils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <E extends omero.model.IObject> | fromEnum(java.util.Collection<E> enumInstances)Convert a list of  omero.model.enumsinstances to their correspondingStringvalues. | 
| static java.lang.String | getDisplayedFileName(java.lang.String fullPath,
                    java.lang.Integer number)Returns the name to display for a file. | 
| static java.lang.String | getFolderAsContainerName(java.io.File file)Returns the name as container if option is on. | 
| static java.lang.String | getStringSeparator(java.lang.String originalName)Returns the separator or  null. | 
| static boolean | isBlank(java.lang.String s) | 
| static java.lang.String[] | splitString(java.lang.String originalName)Returns the partial name of the image's name | 
| static <E extends omero.model.IObject,I extends E> | toEnum(java.lang.Class<E> enumClass,
      java.lang.Class<I> instanceClass,
      java.util.Collection<java.lang.String> enumValues)Convert a list of  Stringvalues to their correspondingomero.model.enumsinstances. | 
public static java.lang.String getFolderAsContainerName(java.io.File file)
public static java.lang.String getDisplayedFileName(java.lang.String fullPath,
                                                    java.lang.Integer number)
fullPath - The file's absolute path.number - The number of folder to set the name.public static java.lang.String[] splitString(java.lang.String originalName)
originalName - The original name.public static java.lang.String getStringSeparator(java.lang.String originalName)
null.originalName - The original name.public static <E extends omero.model.IObject,I extends E> java.util.List<E> toEnum(java.lang.Class<E> enumClass,
                                                                                   java.lang.Class<I> instanceClass,
                                                                                   java.util.Collection<java.lang.String> enumValues)
                                                                            throws java.lang.ReflectiveOperationException
String values to their corresponding omero.model.enums instances.enumClass - the desired enumeration type, never nullinstanceClass - the type whose no-argument constructor is used to provide instances of enumClassenumValues - values of the enumeration type, never null nor with a null valuejava.lang.ReflectiveOperationException - if the instances could not be createdpublic static <E extends omero.model.IObject> java.util.List<java.lang.String> fromEnum(java.util.Collection<E> enumInstances)
                                                                                 throws java.lang.ReflectiveOperationException
omero.model.enums instances to their corresponding String values.enumInstances - enumeration instances, never null nor with a null valuenulljava.lang.ReflectiveOperationException - if the values could not be determinedpublic static boolean isBlank(java.lang.String s)