public class EJB3ScriptHelper extends Object
| Constructor and Description |
|---|
EJB3ScriptHelper() |
| Modifier and Type | Method and Description |
|---|---|
Collection<EJB3EntityAttributeFacade> |
filterAuditAttributes(Collection<EJB3EntityAttributeFacade> list,
boolean jpaFramework)
Filter a list of EntityAttributes by removing all audit attributes.
|
Collection<ModelElementFacade> |
filterByVisibility(Collection<ModelElementFacade> list,
String visibility)
Filter a list of model elements by visibility.
|
Collection<EJB3AssociationEndFacade> |
filterRequiredAssociations(Collection<EJB3AssociationEndFacade> list,
boolean isCompositePKPresent)
Filter a list of EntityAssociationEnds by removing all non-required AssociationEnds.
|
Collection<EJB3EntityAttributeFacade> |
filterRequiredAttributes(Collection<EJB3EntityAttributeFacade> list,
boolean isCompositePKPresent)
Filter a list of EntityAttributes by removing all non-required attributes.
|
Collection<EJB3EntityAttributeFacade> |
filterUpdatableAttributes(Collection<EJB3EntityAttributeFacade> list,
boolean isCompositePKPresent)
Filter a list of EntityAttributes by removing all non-updatable attributes.
|
Collection<String> |
getArgumentsAsList(String args)
Create a collection of String objects representing the argument names.
|
String |
getInterceptorsAsList(Collection<ModelElementFacade> interceptors,
String prepend)
Returns the comma separated list of interceptor classes.
|
String |
removeQuotationmarks(String pValue)
Removes instances of the quotation marks (" and ') at the beginning and end of the value argument
|
static String |
reversePackage(String packageName)
Reverses the
packageName. |
String |
toUnderscoreName(String name)
Replaces all instances of the dot (.) in the name argument with an underscore (_)
and returns the string response.
|
public EJB3ScriptHelper()
public Collection<String> getArgumentsAsList(String args)
args - A comma separated list of argumentspublic Collection<ModelElementFacade> filterByVisibility(Collection<ModelElementFacade> list, String visibility)
list - the original listvisibility - the visibility - "public" "protected", "private" or the empty string (for package visibility)public Collection<EJB3EntityAttributeFacade> filterUpdatableAttributes(Collection<EJB3EntityAttributeFacade> list, boolean isCompositePKPresent)
list - The original listisCompositePKPresent - True if entity has a composite primary keypublic Collection<EJB3EntityAttributeFacade> filterAuditAttributes(Collection<EJB3EntityAttributeFacade> list, boolean jpaFramework)
list - The original listjpaFramework - If using a JPA auditing framework. Filter none if not using it.public Collection<EJB3EntityAttributeFacade> filterRequiredAttributes(Collection<EJB3EntityAttributeFacade> list, boolean isCompositePKPresent)
list - The original listisCompositePKPresent - True if entity has a composite primary keypublic Collection<EJB3AssociationEndFacade> filterRequiredAssociations(Collection<EJB3AssociationEndFacade> list, boolean isCompositePKPresent)
list - The original listisCompositePKPresent - True if entity has a composite primary keypublic String toUnderscoreName(String name)
name - The name, typically a fully qualified name with dot notationpublic String removeQuotationmarks(String pValue)
pValue - The value, which can contains leading and trailing quotation markspublic String getInterceptorsAsList(Collection<ModelElementFacade> interceptors, String prepend)
interceptors - The collection ModelElementFacade elements representing the interceptorsprepend - Prefix any interceptors to the comma separated listpublic static String reversePackage(String packageName)
packageName.packageName - the package name to reverse.Copyright © 2006–2014 AndroMDA.org. All rights reserved.