AndroMDA UML 1.4 Metafacades Namespace Components

  • metafacades
  • profile

AndroMDA UML 1.4 Metafacades Namespace Properties

Masking
Certain namespace properties (the ones listed below) are used to provide masking of names. For example a name such as "Hospital Visit" given to an enumeration literal could be transformed into 'HOSPITAL_VISIT' during model processing by applying the 'upperunderscore' mask to it. When applicable, the following masks are available:
  • uppercase - upper cases the name (i.e. "Hospital Visit" would become HOSPITAL VISIT)
  • lowercase - lower cases the name (i.e. "Hospital Visit" would become hospital visit)
  • upperunderscore - upper cases the name and replaces all non-word characters with an underscore (i.e. "Hospital Visit" would become HOSPITAL_VISIT)
  • lowerunderscore - lower cases the name and replaces all non-word characters with an underscore (i.e. "Hospital Visit" would become hospital_visit)
  • underscore - replaces all non-word characters with an underscore (i.e. "Hospital Visit" would become Hospital_Visit)
  • nospace - removes all spaces (i.e. "Hospital Visit" would become HospitalVisit)
  • uppercamelcase - camel cases the word beginning with an upper cased letter (i.e. "Hospital Visit" would become HospitalVisit)
  • lowercamelcase - camel cases the word beginning with a lower cased letter (i.e. "Hospital Visit" would become hospitalVisit
  • none - no mask is applied

modelElementNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all model element names.
classifierNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all classifier names.
operationNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all operation names.
classifierPropertyNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all classifier property names.
roleNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to role names (roles are actors).
enumerationNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to enumeration names.
entityNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to entity names
entityPropertyNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to entity property names.
parameterNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all parameter names.
enumerationLiteralNameMask(Back to Masking)
Optional property
Default value: none
Provides the ability to apply a mask to all enumeration literal names.
languageMappingsUri(Back to Other)
Required property
No default value available
URI specifying the specific mappings from model types to language types. (i.e. file:C:\\Workspaces\\A34\\andromda35\\metafacades\\uml\\uml14/JavaMappings.xml)
wrapperMappingsUri(Back to Other)
Required property
No default value available
URI specifying primitive type to wrapper types (i.e. int -> java.lang.Integer) (i.e. file:C:\\Workspaces\\A34\\andromda35\\metafacades\\uml\\uml14/JavaWrapperMappings.xml)
pluralizeAssociationEndNames(Back to Other)
Optional property
Default value: true
Turns on/off the pluralization of association ends with multiplicities greater than one. You'll want to turn off this feature if your model is in a language other than english.
pluralizeAttributeNames(Back to Other)
Optional property
Default value: true
Turns on/off the pluralization of attribute names with multiplicities greater than one. Jaxb 2.1 by default pluralizes all attribute names, Jaxb 2.0 by default does not. false for backwards compatibility with Andro 3.3.
pluralizeParameterNames(Back to Other)
Optional property
Default value: true
Turns on/off the pluralization of method parameter names with multiplicities greater than one. Jaxb 2.1 by default pluralizes all parameter names, Jaxb 2.0 by default does not. false for backwards compatibility with Andro 3.3.
namespaceSeparator(Back to Other)
Optional property
Default value: .
Used to separate namespaces within the generated code. For example setting this to '.' causes fully qualified names to be defined as 'some.package.name.SomeClass'.
undefinedName(Back to Other)
Optional property
Default value: undefined
When a model element name is unspecified this is the name used (instead of null).
enableTemplating(Back to Other)
Optional property
Default value: true
Determines whether or not to enable templating, enabling this feature will produce fully qualified names with their template parameters. Also, class names that are implicitly templates will also have them present (eg. Person:addresses : datatype::List<Address> for class associations). Set this property to true if you want to enable this feature.
enableAnnotations(Back to Other)
Optional property
Default value: true
Determines whether or not to enable @Annotations, enabling this feature will produce JDK5+ annotations such as @Override, @Deprecated, etc.
arrayNameSuffix(Back to Other)
Optional property
Default value: []
The suffix given to array names.
useArraysForMultiplicitiesOfTypeMany(Back to Other)
Optional property
Default value: false
Whether or not array types should denote multiplicities greater than one for associations between objects where appropriate (i.e. value objects when exposed as webservices).
maxSqlNameLength(Back to Other)
Optional property
Default value: 30
The maximum length that a SQL name (such as a column name or table name) may be. This is useful for databases that have a limit on the length that a name used in DDL may be (like Oracle). If you set this to 30 for example, then all names will be shortened using the method set in shortenSqlNamesMethod after 30 characters when retrieving the column name or table name.
shortenSqlNamesMethod(Back to Other)
Optional property
Default value: truncate
The method to be used to ensure name length. Supported values: truncate removeVowels The removeVowels remove the needed vowels from the end until it reaches the needed length.
schemaName(Back to Other)
Optional property
No default value available
The name of the default schema in which all persistent entity tables are stored.
tableNamePrefix(Back to Other)
Optional property
No default value available
The prefix to give all persistent entity table names. For example if you had an entity named 'Car' and you defined the tableNamePrefix as 'My_', then the table name for the 'Car' entity would be 'My_Car'.
columnNamePrefix(Back to Other)
Optional property
No default value available
The prefix to give all persistent entity table column names. For example if you had an column named 'Name' and you defined the columnNamePrefix as 'My_', then the column name would be 'My_Name'.
columnNameSuffix(Back to Other)
Optional property
No default value available
The suffix to give all persistent entity table column names. For example if you had an column named 'Name' and you defined the columnNameSuffix as '_Table', then the column name would be 'Name_Table'.
foreignKeySuffix(Back to Other)
Optional property
Default value: _FK
The suffix to use when creating foreign keys for entity associations.
constraintSuffix(Back to Other)
Optional property
Default value: C
The suffix to use when creating constraints such as for entity associations. This is appended to the foreignKeySuffix suffix for foreign key constraint names.
enableManageableEntities(Back to Other)
Optional property
Default value: true
Whether or not to enable <<Manageable>> entities. Sometimes it is interesting to disable the related code generating for a specific cartridge; let's say for example that you only want to have the back-end code generated, not the front-end code: in this case you'ld simple set this property to false in the corresponding cartridge's (i.e. bpm4struts) namespace.
manageablePackageSuffix(Back to Other)
Optional property
Default value: crud
The name of the subpackage that will be used for the generation of <<Manageable>> entities.
sqlNameSeparator(Back to Other)
Optional property
Default value: _
Defines what is used for separating words when SQL names are constructed, for example a model element named CompanyAddress would be translated to COMPANY_ADDRESS if the value of sqlNameSeparator was '_'.
enableMetafacadePropertyCaching(Back to Other)
Optional property
Default value: true
Used for performance reasons, caching a metafacade's properties significantly speeds up the code generation process. Can be disabled when debugging. This feature can be set on a per cartridge basis.
defaultMultiplicity(Back to Other)
Optional property
Default value: 1
The default multiplicity to use when nothing is defined, the possible values are 0 or 1.
preconditionNamePattern(Back to Other)
Optional property
Default value: {0}Precondition
The pattern used for constructing an operation's precondition name.
postconditionNamePattern(Back to Other)
Optional property
Default value: {0}Postcondition
The pattern used to constructing an operation's postcondition name.
sqlMappingsUri(Back to Other)
Optional property
No default value available
The URI to the the SQL mappings file.
jdbcMappingsUri(Back to Other)
Optional property
No default value available
The URI to the the JDBC mappings file.
manageableServiceAccessorPattern(Back to Other)
Optional property
Default value: ${application.package}.ManageableServiceLocator.instance().get{1}()
The pattern used for constructing the accessor's for manageable services. Used with CRUD.
servicePackageNamePattern(Back to Other)
Optional property
Default value: {0}
The name of the package in which to create the service files, {0} can be used to denote the package in which the service has been modeled.
allowDefaultIdentifiers(Back to Other)
Optional property
Default value: true
Specifies whether or not default identifiers should be created for entities that do not have them modeled.
defaultIdentifierPattern(Back to Other)
Optional property
Default value: id
The pattern used to construct the default identifier name of an entity, where {0} represents the name of the entity as lower camel case (i.e. if defaultIdentifierPattern had a value of {0}Id, then the resulting identifier of a an Entity named Person would be personId).
defaultIdentifierType(Back to Other)
Optional property
Default value: datatype::Long
The UML type to give default identifiers.
defaultIdentifierVisibility(Back to Other)
Optional property
Default value: public
The visibility to give default identifiers.
defaultEnumerationLiteralType(Back to Other)
Optional property
Default value: datatype::String
The type to give default enumeration literals. Deprecated: Use UML enumeration name+value instead, for typesafe enum output.
compositeIdentifierTypeNameSuffix(Back to Other)
Optional property
Default value: PK
The suffix to add to the composite identifier type name.
compositeIdentifierNameSuffix(Back to Other)
Optional property
Default value: Pk
The suffix to add to the composite identifier name.
relationNameSeparator(Back to Other)
Optional property
Default value: 2
The separator used for constructing a relation name between two associations.
manageableIdDisplayStrategy(Back to Other)
Optional property
Default value: auto
No documentation available
defaultResolveable(Back to Other)
Optional property
Default value: true
No documentation available
defaultPageSize(Back to Other)
Optional property
Default value: 20
No documentation available
defaultMaximumListSize(Back to Other)
Optional property
Default value: 250
No documentation available
toDoTag(Back to Other)
Optional property
Default value: TODO
The tag to use that prefixes all comments in generated source code that requires manual modifications. Eclipse users may want to set this to "TODO", which is the default Eclipse task tag. NetBeans users may want to use @todo
typeSafeEnumsEnabled(Back to Other)
Optional property
Default value: true
Indicates whether enumerations must be generated using a Java 5 type-safe enum or a traditional enumeration-pattern class. Note that there are 2 prerequisites for this property to work correctly: you must use a Java 5 compiler and you must use Hibernate 3 or later for Object-relational mapping.
toDoForMissingDocumentation(Back to Other)
Optional property
Default value: true
If a model element documentation is missing, insert the text: TODO: Missing Model Documentation for Name