org.archiviststoolkit.util
Class NameUtils

java.lang.Object
  extended by org.archiviststoolkit.util.NameUtils

public class NameUtils
extends java.lang.Object


Constructor Summary
NameUtils()
           
 
Method Summary
static void addName(ArchDescription archDescription, Names name, java.lang.String nameRole)
           
static java.lang.String getCleanName(java.lang.String name)
          Method to remove any dates or other number from the name that is provided.
static java.lang.String setMd5Hash(Names name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameUtils

public NameUtils()
Method Detail

addName

public static void addName(ArchDescription archDescription,
                           Names name,
                           java.lang.String nameRole)
                    throws PersistenceException,
                           UnknownLookupListException,
                           DuplicateLinkException
Throws:
PersistenceException
UnknownLookupListException
DuplicateLinkException

setMd5Hash

public static java.lang.String setMd5Hash(Names name)
                                   throws java.security.NoSuchAlgorithmException,
                                          java.io.UnsupportedEncodingException
Throws:
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException

getCleanName

public static java.lang.String getCleanName(java.lang.String name)
Method to remove any dates or other number from the name that is provided. Its assumes that the name are dilimited by "," so it not a very flexible way of doing this.

Parameters:
name - The name to be cleaned up
Returns:
The name with anything other than the name returned