public final class Bpm4StrutsUtils extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Bpm4StrutsUtils.ManageableEntityComparator |
Constructor and Description |
---|
Bpm4StrutsUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getDisplayTagExportTypes(Collection taggedValues,
String defaultValue)
Returns a sequence of file formats representing the desired export types for the display tag tables
used for the argument element.
|
static boolean |
isSafeName(String name)
Returns
true if the argument name will not cause any troubles with the Jakarta commons-beanutils
library, which basically means it does not start with an lowercase characters followed by an uppercase character. |
static boolean |
isTrue(String string)
Convenient method to detect whether or not a String instance represents a boolean
true value. |
static List |
listEnumeration(Enumeration enumeration)
Creates and returns a List from an
enumeration . |
static List<String> |
parseValidatorArgs(String validatorTaggedValue)
Reads the validator arguments from the the given tagged value.
|
static String |
parseValidatorName(String validatorTaggedValue)
Parses the validator name for a tagged value.
|
static List<String> |
parseValidatorVars(String validatorTaggedValue)
Reads the validator variable names from the the given tagged value.
|
static Collection |
sortManageables(Collection collection)
Sorts a collection of Manageable entities according to their 'manageableName' property.
|
static String |
toWebFileName(String string)
Converts the argument into a web file name, this means: all lowercase
characters and words are separated with dashes.
|
public Bpm4StrutsUtils()
public static List listEnumeration(Enumeration enumeration)
enumeration
.enumeration
- the enumeration from which to create the List.public static List<String> parseValidatorArgs(String validatorTaggedValue)
validatorTaggedValue
- IllegalArgumentException
- when the input string does not match the required patternpublic static List<String> parseValidatorVars(String validatorTaggedValue)
validatorTaggedValue
- IllegalArgumentException
- when the input string does not match the required patternpublic static String parseValidatorName(String validatorTaggedValue)
validatorTaggedValue
- IllegalArgumentException
- when the input string does not match the required patternpublic static Collection sortManageables(Collection collection)
collection
- public static String toWebFileName(String string)
string
- any stringpublic static boolean isSafeName(String name)
true
if the argument name will not cause any troubles with the Jakarta commons-beanutils
library, which basically means it does not start with an lowercase characters followed by an uppercase character.
This means there's a bug in that specific library that causes an incompatibility with the Java Beans
specification as implemented in the JDK.name
- the name to test, may be null
true
if the name is safe to use with the Jakarta libraries, false
otherwisepublic static String getDisplayTagExportTypes(Collection taggedValues, String defaultValue)
taggedValues
- the collection of tagged values representing the export types, should only contain
String
instances and must never be null
defaultValue
- the default value to use in case the tagged values are emptynull
Copyright © 2003–2014 AndroMDA.org. All rights reserved.