1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.javagen.agile.oo.naming;
17
18 import org.javagen.agile.core.model.Model;
19 import org.javagen.agile.oo.model.Class;
20
21 /***
22 * Defines Object-Oriented naming services needed to translate an abstract O-O model
23 * to a concrete implementation. Many of these methods rely on a access to the context.
24 *
25 * @author Richard Easterling
26 */
27 public interface OONamingService extends Pluralisation {
28
29
30
31
32
33 String bindName(String templateKey, Model model);
34
35 String className(String classNameTemplateKey, Class _class);
36
37 String className(Class _class);
38
39 String packageName(String packageNameTemplateKey, Model _class);
40
41 String fullClassName(String packageNameTemplateKey, String classNameTemplateKey, Class _class);
42
43
44
45
46
47 /***
48 * Creates a variable name given a class name.
49 * Usualy just changes the first letter to lower case.
50 */
51 String varFromClassName(String className);
52
53 /***
54 * Converts a file path to a language-specific package/module path.
55 */
56 String packageFromPath(String filePath);
57
58 /***
59 * Converts any string to language-legal camelBack name.
60 */
61 String camelBackName(String anyString);
62
63
64
65
66
67 /***
68 * Returns a fully-qualified interface name given
69 * an abstract key name. Common key names are: SET, LIST, MAP.
70 */
71 String collectionInterface(String collectionKey);
72
73 /***
74 * Returns a fully-qualified implementation class name given
75 * an abstract key name. Common key names are: SET, LIST, MAP.
76 */
77 String collectionImplementation(String collectionKey);
78
79
80 /*** @deprecated move/use Db2OOMapper */
81
82
83 /*** @deprecated move/use Db2OOMapper */
84
85
86 /*** @deprecated move/use Db2OOMapper */
87
88
89 /*** @deprecated move/use Db2OOMapper */
90
91
92 /*** @deprecated move/use Db2OOMapper */
93
94
95 /*** @deprecated move/use Db2OOMapper */
96
97
98 /***
99 // * @deprecated use collectionInterface and collectionImplementation instead
100 // */
101
102
103 }