org.tynamo.util
Class Utils
java.lang.Object
org.tynamo.util.Utils
public class Utils
- extends Object
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APPLY_MESSAGE
public static final String APPLY_MESSAGE
- See Also:
- Constant Field Values
APPLY_AND_RETURN_MESSAGE
public static final String APPLY_AND_RETURN_MESSAGE
- See Also:
- Constant Field Values
REMOVE_MESSAGE
public static final String REMOVE_MESSAGE
- See Also:
- Constant Field Values
CANCEL_MESSAGE
public static final String CANCEL_MESSAGE
- See Also:
- Constant Field Values
ADD_NEW_MESSAGE
public static final String ADD_NEW_MESSAGE
- See Also:
- Constant Field Values
EDIT_MESSAGE
public static final String EDIT_MESSAGE
- See Also:
- Constant Field Values
SHOW_MESSAGE
public static final String SHOW_MESSAGE
- See Also:
- Constant Field Values
LIST_MESSAGE
public static final String LIST_MESSAGE
- See Also:
- Constant Field Values
NEW_MESSAGE
public static final String NEW_MESSAGE
- See Also:
- Constant Field Values
ADDED_MESSAGE
public static final String ADDED_MESSAGE
- See Also:
- Constant Field Values
SAVED_MESSAGE
public static final String SAVED_MESSAGE
- See Also:
- Constant Field Values
DEFAULT
public static String DEFAULT
Utils
public Utils()
classForName
public static Class classForName(String className)
unqualify
public static String unqualify(String className)
pluralize
public static String pluralize(String singularNoun)
- Thank you, AndroMDA project...
Linguistically pluralizes a singular noun.
noun becomes nouns
key becomes keys
word becomes words
property becomes properties
bus becomes busses
boss becomes bosses
Whitespace as well as null> arguments will return an empty
String.
- Parameters:
singularNoun - A singularNoun to pluralize
- Returns:
- The plural of the argument singularNoun
checkForCGLIB
public static Class checkForCGLIB(Class type)
- Parameters:
type - the (usable) super type if passed a CGLIB enhanced class
- Returns:
executeOgnlExpression
public static void executeOgnlExpression(String ognlExpression,
Object member,
Object model)
isExcluded
public static boolean isExcluded(String name,
Collection<String> exclusionPatterns)
- Tests whether or not a name matches against at least one exclude pattern.
- Parameters:
name - The name to match. Must not be null.exclusionPatterns - the list of exclude patterns to test against
- Returns:
- true when the name matches against at least one exclude pattern, or false otherwise.
Copyright © 2004-2009. All Rights Reserved.