jetbrains.buildServer.util
Interface NameGenerator.NameChecker

Enclosing class:
NameGenerator

public static interface NameGenerator.NameChecker

An interface for name checker. Example: given a final SProject instance, NameChecker for build types can look like this:

 final SProject project = getProject();
 String buildTypeName = NameGenerator.generateName(initName,
                                                   "Copy of ",
                                                   new NameGenerator.NameChecker() {
   public boolean exists(String name) {
     return project.findBuildTypeByName(name) != null;
   }
 });
 


Method Summary
 boolean exists(java.lang.String name)
           
 

Method Detail

exists

boolean exists(java.lang.String name)