| java.lang.Object org.andromda.cartridges.bpm4struts.Bpm4StrutsUtils
Bpm4StrutsUtils | final public class Bpm4StrutsUtils (Code) | | Contains utilities for bpm4struts.
author: Wouter Zoons |
Inner Class :final static class ManageableEntityComparator implements Comparator | |
Method Summary | |
public 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. | public 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. | public static boolean | isTrue(String string) Convenient method to detect whether or not a String instance represents a boolean true value. | public static List | listEnumeration(Enumeration enumeration) Creates and returns a List from an enumeration .
Parameters: enumeration - the enumeration from which to create the List. | public static List | parseValidatorArgs(String validatorTaggedValue) Reads the validator arguments from the the given tagged value. | public static String | parseValidatorName(String validatorTaggedValue) Parses the validator name for a tagged value. | public static List | parseValidatorVars(String validatorTaggedValue) Reads the validator variable names from the the given tagged value. | public static Collection | sortManageables(Collection collection) Sorts a collection of Manageable entities according to their 'manageableName' property. | public static String | toWebFileName(String string) Converts the argument into a web file name, this means: all lowercase
characters and words are separated with dashes. |
getDisplayTagExportTypes | public static String getDisplayTagExportTypes(Collection taggedValues, String defaultValue)(Code) | | Returns a sequence of file formats representing the desired export types for the display tag tables
used for the argument element.
Parameters: taggedValues - the collection of tagged values representing the export types, should only containjava.lang.String instances and must never be null Parameters: defaultValue - the default value to use in case the tagged values are empty a space separated list of formats, never null |
isSafeName | public static boolean isSafeName(String name)(Code) | | 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.
This means there's a bug in that specific library that causes an incompatibility with the Java Beans
specification as implemented in the JDK.
Parameters: name - the name to test, may be null true if the name is safe to use with the Jakarta libraries, false otherwise |
isTrue | public static boolean isTrue(String string)(Code) | | Convenient method to detect whether or not a String instance represents a boolean true value.
|
listEnumeration | public static List listEnumeration(Enumeration enumeration)(Code) | | Creates and returns a List from an enumeration .
Parameters: enumeration - the enumeration from which to create the List. the new List. |
parseValidatorArgs | public static List parseValidatorArgs(String validatorTaggedValue)(Code) | | Reads the validator arguments from the the given tagged value.
never null, returns a list of String instances throws: IllegalArgumentException - when the input string does not match the required pattern |
parseValidatorName | public static String parseValidatorName(String validatorTaggedValue)(Code) | | Parses the validator name for a tagged value.
throws: IllegalArgumentException - when the input string does not match the required pattern |
parseValidatorVars | public static List parseValidatorVars(String validatorTaggedValue)(Code) | | Reads the validator variable names from the the given tagged value.
never null, returns a list of String instances throws: IllegalArgumentException - when the input string does not match the required pattern |
sortManageables | public static Collection sortManageables(Collection collection)(Code) | | Sorts a collection of Manageable entities according to their 'manageableName' property.
Returns a new collection.
|
toWebFileName | public static String toWebFileName(String string)(Code) | | Converts the argument into a web file name, this means: all lowercase
characters and words are separated with dashes.
Parameters: string - any string the string converted to a value that would be well-suited for aweb file name |
|
|