|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javagen.agile.oo.naming.JavaNamingService
public class JavaNamingService
Common Java naming services.
| Constructor Summary | |
|---|---|
JavaNamingService()
|
|
| Method Summary | |
|---|---|
String |
bindName(String templateKey,
Model model)
|
String |
camelBackName(String anyString)
Converts any string to language-legal camelBack name. |
String |
className(Class _class)
|
String |
className(String classNameTemplateKey,
Class _class)
|
String |
collectionImplementation(String collectionKey)
Returns a fully-qualified implementation class name given an abstract key name. |
String |
collectionInterface(String collectionKey)
Returns a fully-qualified interface name given an abstract key name. |
String |
fullClassName(String packageNameTemplateKey,
String classNameTemplateKey,
Class _class)
|
Collections |
getCollections()
|
Pluralisation |
getPluralisation()
|
String |
packageFromPath(String filePath)
Converts a file path to a language-specific package/module path. |
String |
packageName(String packageNameTemplateKey,
Model _class)
|
void |
setCollections(Collections collections)
|
void |
setPluralisation(Pluralisation pluralisation)
|
String |
toPlural(String singular)
Takes a case-sensitive name and makes it plural. |
String |
toSingular(String plural)
Takes a case-sensitive name and makes it singular. |
String |
varFromClassName(String className)
Creates a variable name given a class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaNamingService()
| Method Detail |
|---|
public String varFromClassName(String className)
OONamingService
varFromClassName in interface OONamingServicepublic String packageFromPath(String filePath)
OONamingService
packageFromPath in interface OONamingServicepublic String camelBackName(String anyString)
OONamingService
camelBackName in interface OONamingService
public String bindName(String templateKey,
Model model)
bindName in interface OONamingService
public String className(String classNameTemplateKey,
Class _class)
className in interface OONamingServicepublic String className(Class _class)
className in interface OONamingService
public String packageName(String packageNameTemplateKey,
Model _class)
packageName in interface OONamingService
public String fullClassName(String packageNameTemplateKey,
String classNameTemplateKey,
Class _class)
fullClassName in interface OONamingServicepublic String collectionInterface(String collectionKey)
OONamingService
collectionInterface in interface OONamingServicepublic String collectionImplementation(String collectionKey)
OONamingService
collectionImplementation in interface OONamingServicepublic String toPlural(String singular)
Pluralisation
toPlural in interface Pluralisationpublic String toSingular(String plural)
Pluralisation
toSingular in interface Pluralisationpublic Collections getCollections()
public void setCollections(Collections collections)
public Pluralisation getPluralisation()
public void setPluralisation(Pluralisation pluralisation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||