001: package org.andromda.metafacades.uml;
002:
003: /**
004: * Stores the metafacade namespace properties used throughout the UML metafacades.
005: *
006: * @author Chad Brandon
007: */
008: public class UMLMetafacadeProperties {
009: /**
010: * Stores the property containing the URI to the language mappings file.
011: */
012: public static final String LANGUAGE_MAPPINGS_URI = "languageMappingsUri";
013:
014: /**
015: * This property controls whether or not to produce templating parameters
016: * where possible.
017: */
018: public static final String ENABLE_TEMPLATING = "enableTemplating";
019:
020: /**
021: * Stores the property defining the default schema name for entity tables.
022: */
023: public static final String SCHEMA_NAME = "schemaName";
024:
025: /**
026: * Stores the property defining the prefix for entity table names.
027: */
028: public static final String TABLE_NAME_PREFIX = "tableNamePrefix";
029:
030: /**
031: * Stores the property defining the prefix for entity table column names.
032: */
033: public static final String COLUMN_NAME_PREFIX = "columnNamePrefix";
034:
035: /**
036: * Stores the property containing the URI to the SQL mappings file.
037: */
038: public static final String SQL_MAPPINGS_URI = "sqlMappingsUri";
039:
040: /**
041: * Stores the property containing the URI to the JDBC mappings file.
042: */
043: public static final String JDBC_MAPPINGS_URI = "jdbcMappingsUri";
044:
045: /**
046: * Stores the property containing the URI to the Wrapper mappings file.
047: */
048: public static final String WRAPPER_MAPPINGS_URI = "wrapperMappingsUri";
049:
050: /**
051: * Allows the pluralization of association end names (when the multiplicity is greater than one) to be turned
052: * on/off.
053: */
054: public static final String PLURALIZE_ASSOCIATION_END_NAMES = "pluralizeAssociationEndNames";
055:
056: /**
057: * The default suffix to use for foreign keys.
058: */
059: public static final String FOREIGN_KEY_SUFFIX = "foreignKeySuffix";
060:
061: /**
062: * The default suffix to use for foreign keys.
063: */
064: public static final String CONSTRAINT_SUFFIX = "constraintSuffix";
065:
066: /**
067: * The mask to apply to role names {@see NameMasker#mask(String, String)}.
068: */
069: public static final String ROLE_NAME_MASK = "roleNameMask";
070:
071: /**
072: * The mask to apply to any classifier names {@see NameMasker#mask(String, String)}.
073: */
074: public static final String CLASSIFIER_NAME_MASK = "classifierNameMask";
075:
076: /**
077: * The mask to apply to any of the classifier property names {@see NameMasker#mask(String, String)}.
078: */
079: public static final String CLASSIFIER_PROPERTY_NAME_MASK = "classifierPropertyNameMask";
080:
081: /**
082: * The mask to apply to any operation names {@see NameMasker#mask(String, String)}.
083: */
084: public static final String OPERATION_NAME_MASK = "operationNameMask";
085:
086: /**
087: * The mask to apply to any parameter names {@see NameMasker#mask(String, String)}.
088: */
089: public static final String PARAMETER_NAME_MASK = "parameterNameMask";
090:
091: /**
092: * The mask to apply to enumeration literal names {@see NameMasker#mask(String, String)}.
093: */
094: public static final String ENUMERATION_LITERAL_NAME_MASK = "enumerationLiteralNameMask";
095:
096: /**
097: * The mask to apply to the enumeration literal name {@see NameMasker#mask(String, String)}.
098: */
099: public static final String ENUMERATION_NAME_MASK = "enumerationNameMask";
100:
101: /**
102: * The mask to apply to the entity name {@see NameMasker#mask(String, String)}.
103: */
104: public static final String ENTITY_NAME_MASK = "entityNameMask";
105:
106: /**
107: * The mask to apply to the entity property (attributes and association) names {@see
108: * MetafacadeUtils#getMaskedName(String, String)}.
109: */
110: public static final String ENTITY_PROPERTY_NAME_MASK = "entityPropertyNameMask";
111:
112: /**
113: * The maximum length a SQL name can be before its truncated.
114: */
115: public static final String MAX_SQL_NAME_LENGTH = "maxSqlNameLength";
116:
117: /**
118: * Whether or not to allow default identifiers for modeled entities.
119: */
120: public static final String ALLOW_DEFAULT_IDENTITIFIERS = "allowDefaultIdentifiers";
121:
122: /**
123: * The pattern used to construct the name entity default identifiers (if enabled).
124: */
125: public static final String DEFAULT_IDENTIFIER_PATTERN = "defaultIdentifierPattern";
126:
127: /**
128: * The type to given default identifiers.
129: */
130: public static final String DEFAULT_IDENTIFIER_TYPE = "defaultIdentifierType";
131:
132: /**
133: * The visibility to apply to default identifiers.
134: */
135: public static final String DEFAULT_IDENTIFIER_VISIBILITY = "defaultIdentifierVisibility";
136:
137: /**
138: * The type to given default enumeration literals.
139: */
140: public static final String DEFAULT_ENUMERATION_LITERAL_TYPE = "defaultEnumerationLiteralType";
141:
142: /**
143: * Are manageable tables resolved by default when referenced ?
144: */
145: public static final String PROPERTY_DEFAULT_RESOLVEABLE = "defaultResolveable";
146:
147: /**
148: * Stores the default upper limit for lists.
149: */
150: public static final String PROPERTY_DEFAULT_MAX_LIST_SIZE = "defaultMaximumListSize";
151:
152: /**
153: * Stores the default number of records shown per page.
154: */
155: public static final String PROPERTY_DEFAULT_PAGE_SIZE = "defaultPageSize";
156:
157: /**
158: * The separator used for packages and element names when constructing fully qualified names.
159: */
160: public static final String NAMESPACE_SEPARATOR = "namespaceSeparator";
161:
162: /**
163: * The name given to model elements without a name.
164: */
165: public static final String UNDEFINED_NAME = "undefinedName";
166:
167: /**
168: * Stores the suffix given to array type names.
169: */
170: public static final String ARRAY_NAME_SUFFIX = "arrayNameSuffix";
171:
172: /**
173: * Whether or not to enable manageable entities for the currently running cartridge.
174: */
175: public static final String ENABLE_MANAGEABLE_ENTITIES = "enableManageableEntities";
176:
177: /**
178: * The namespace property used to denote the name of the subpackage create for
179: * manageable entities.
180: */
181: public static final String MANAGEABLE_PACKAGE_NAME_SUFFIX = "manageablePackageSuffix";
182:
183: /**
184: * Stores the boolean flag indicating whether or not we should use arrays instead of collections with associations
185: * of type many (where appropriate).
186: */
187: public static final String USE_ARRAYS_FOR_MULTIPLICITIES_OF_TYPE_MANY = "useArraysForMultiplicitiesOfTypeMany";
188:
189: /**
190: * The seperator for relation names between associations.
191: */
192: public static final String RELATION_NAME_SEPARATOR = "relationNameSeparator";
193:
194: /**
195: * The seperator to use when constructing SQL names.
196: */
197: public static final String SQL_NAME_SEPARATOR = "sqlNameSeparator";
198:
199: /**
200: * The pattern used for constructing operations that handle precondition constraints.
201: */
202: public static final String PRECONDITION_NAME_PATTERN = "preconditionNamePattern";
203:
204: /**
205: * The pattern used for constructing operations that handle postcondition constraints.
206: */
207: public static final String POSTCONDITION_NAME_PATTERN = "postconditionNamePattern";
208:
209: /**
210: * The namespace property used to identify the pattern used to construct the backend CRUD service's accessor.
211: */
212: public static final String MANAGEABLE_SERVICE_ACCESSOR_PATTERN = "manageableServiceAccessorPattern";
213:
214: /**
215: * The namespace property used to define the default multiplicity of
216: * an attribute or association end (when one isn't modeled).
217: */
218: public static final String DEFAULT_MULTIPLICITY = "defaultMultiplicity";
219:
220: /**
221: * Denotes whether or not the id needs to be displayed when managing an entity, or whether this
222: * should be transparent for the user.
223: */
224: public static final String MANAGEABLE_ID_DISPLAY_STRATEGY = "manageableIdDisplayStrategy";
225:
226: /**
227: * Indicates whether enumerations must be generated using a Java 5 type-safe enum or a
228: * traditional enumeration-pattern class.
229: */
230: public static final String TYPE_SAFE_ENUMS_ENABLED = "typeSafeEnumsEnabled";
231:
232: }
|