org.javagen.agile.oo.naming
Interface OONamingService

All Superinterfaces:
Pluralisation
All Known Implementing Classes:
JavaNamingService

public interface OONamingService
extends Pluralisation

Defines Object-Oriented naming services needed to translate an abstract O-O model to a concrete implementation. Many of these methods rely on a access to the context.

Author:
Richard Easterling

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)
           
 String packageFromPath(String filePath)
          Converts a file path to a language-specific package/module path.
 String packageName(String packageNameTemplateKey, Model _class)
           
 String varFromClassName(String className)
          Creates a variable name given a class name.
 
Methods inherited from interface org.javagen.agile.oo.naming.Pluralisation
toPlural, toSingular
 

Method Detail

bindName

String bindName(String templateKey,
                Model model)

className

String className(String classNameTemplateKey,
                 Class _class)

className

String className(Class _class)

packageName

String packageName(String packageNameTemplateKey,
                   Model _class)

fullClassName

String fullClassName(String packageNameTemplateKey,
                     String classNameTemplateKey,
                     Class _class)

varFromClassName

String varFromClassName(String className)
Creates a variable name given a class name. Usualy just changes the first letter to lower case.


packageFromPath

String packageFromPath(String filePath)
Converts a file path to a language-specific package/module path.


camelBackName

String camelBackName(String anyString)
Converts any string to language-legal camelBack name.


collectionInterface

String collectionInterface(String collectionKey)
Returns a fully-qualified interface name given an abstract key name. Common key names are: SET, LIST, MAP.


collectionImplementation

String collectionImplementation(String collectionKey)
Returns a fully-qualified implementation class name given an abstract key name. Common key names are: SET, LIST, MAP.



Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.