org.netbeans.lib.cvsclient.command
Class CommandUtils

java.lang.Object
  extended by org.netbeans.lib.cvsclient.command.CommandUtils

public class CommandUtils
extends java.lang.Object


Constructor Summary
CommandUtils()
           
 
Method Summary
static java.lang.String findUniqueString(java.lang.String name, java.util.List list)
          for a list of string will return the string that equals the name parameter.
static java.lang.String getExaminedDirectory(java.lang.String message, java.lang.String examDirPattern)
          Returns the directory relative to local path from the specified message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandUtils

public CommandUtils()
Method Detail

getExaminedDirectory

public static java.lang.String getExaminedDirectory(java.lang.String message,
                                                    java.lang.String examDirPattern)
Returns the directory relative to local path from the specified message. This method returns null, if the specified message isn't a EXAM_DIR- message.


findUniqueString

public static java.lang.String findUniqueString(java.lang.String name,
                                                java.util.List list)
for a list of string will return the string that equals the name parameter. To be used everywhere you need to have only one string occupying teh memory space, eg. in Builders to have the revision number strings not repeatedly in memory.


 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.