public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_NEW_MESSAGE |
static String |
ADDED_MESSAGE |
static String |
APPLY_AND_RETURN_MESSAGE |
static String |
APPLY_MESSAGE |
static String |
CANCEL_MESSAGE |
static String |
EDIT_MESSAGE |
static String |
LIST_MESSAGE |
static String |
LISTALL_LINK_MESSAGE |
static String |
NEW_MESSAGE |
static String |
REMOVE_MESSAGE |
static String |
SAVED_MESSAGE |
static int |
SC_NOT_FOUND
Status code (404) indicating that the requested resource is not available.
|
static String |
SC_NOT_FOUND_MESSAGE |
static String |
SHOW_MESSAGE |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isExcluded(String name,
Collection<String> exclusionPatterns)
Tests whether or not a name matches against at least one exclude pattern.
|
static org.apache.tapestry5.services.HttpError |
new404(org.apache.tapestry5.ioc.Messages messages) |
static String |
pluralize(String singularNoun)
Thank you, AndroMDA project...
|
public static final String APPLY_MESSAGE
public static final String APPLY_AND_RETURN_MESSAGE
public static final String REMOVE_MESSAGE
public static final String CANCEL_MESSAGE
public static final String ADD_NEW_MESSAGE
public static final String EDIT_MESSAGE
public static final String SHOW_MESSAGE
public static final String LIST_MESSAGE
public static final String NEW_MESSAGE
public static final String ADDED_MESSAGE
public static final String SAVED_MESSAGE
public static final String LISTALL_LINK_MESSAGE
public static final int SC_NOT_FOUND
public static final String SC_NOT_FOUND_MESSAGE
public static String pluralize(String singularNoun)
noun becomes nounskey becomes keysword becomes wordsproperty becomes propertiesbus becomes bussesboss becomes bossesnull> arguments will return an empty
String.
singularNoun - A singularNoun to pluralizepublic static boolean isExcluded(String name, Collection<String> exclusionPatterns)
name - The name to match. Must not be null.exclusionPatterns - the list of exclude patterns to test againstpublic static org.apache.tapestry5.services.HttpError new404(org.apache.tapestry5.ioc.Messages messages)
Copyright © 2004–2015. All rights reserved.