net.databinder.data
Class Nameable

java.lang.Object
  extended by net.databinder.data.Nameable

public class Nameable
extends java.lang.Object

Foundation for objects that generate names based on string properties.

Author:
Nathan Hamblen

Field Summary
protected static java.util.regex.Pattern nonWords
           
protected static java.util.regex.Pattern spaces
           
 
Constructor Summary
Nameable()
           
 
Method Summary
static java.lang.String stringIdFor(java.lang.String string)
          Converts string to lowercase with spaces as hyphens and other non-word charters removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spaces

protected static java.util.regex.Pattern spaces

nonWords

protected static java.util.regex.Pattern nonWords
Constructor Detail

Nameable

public Nameable()
Method Detail

stringIdFor

public static java.lang.String stringIdFor(java.lang.String string)
Converts string to lowercase with spaces as hyphens and other non-word charters removed.

Returns:
string in all lowercase with no whitespace or other non-word characters


Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.