public abstract class AbstractNamer extends Object implements Namer
Constructor and Description |
---|
AbstractNamer() |
Modifier and Type | Method and Description |
---|---|
String |
getAdder()
Name of the adder method to use to add element in the var returned by
Namer.getVars() . |
String |
getAdders()
Name of the adder method to use to add multiple elements in the var returned by
Namer.getVars() . |
String |
getContains()
Name of the 'contains' method to use to check whether the collection var returned by
Namer.getVars()
contains an element. |
String |
getEditer()
Name to the editer method to use when editing the var returned by
Namer.getVar() . |
String |
getFullType()
The full Java type, with package information.
|
String |
getGetter()
Name of the getter method to use when getting the var returned by
Namer.getVar() . |
String |
getGetterLocalized() |
String |
getGetters()
Name of the getter method to use when getting the var returned by
Namer.getVars() . |
String |
getHas() |
String |
getHasPlural() |
String |
getHibernateFilterName() |
abstract String |
getPackageName()
The full package name.
|
String |
getPackageNode(int index)
Get node of the package name.
|
String |
getPackageNodeUp(int index)
Same as
getPackageNode(int) with the first character upper cased. |
String |
getPath()
The path corresponding to the package name.
|
String |
getRandomGetter() |
String |
getRemover()
Name of the remover method to use when removing an element from the collection var returned by
Namer.getVars() . |
String |
getRemovers()
Name of the remover method to use when removing multiple elements from the collection var returned by
Namer.getVars() . |
String |
getSetter()
Name to the setter method to use when setting the var returned by
Namer.getVar() . |
String |
getSetters()
Name to the setter method to use when setting the var returned by
Namer.getVars() . |
String |
getTestType()
return the concatenation of #
getType() + "Test" . |
abstract String |
getType()
The java Type name, without any package information.
|
String |
getTypeLow()
The java Type name in lower case, without any package information.
|
String |
getUniqueDeleter() |
String |
getUniqueGetter() |
String |
getVar()
The var for the current type.
|
String |
getVarLocalized() |
String |
getVars()
The var for a current type collection.
|
String |
getVarsUp()
Same as
Namer.getVars() but starts with an upper case. |
String |
getVarUp()
Same as
Namer.getVar() but starts with an upper case. |
String |
getWith()
Fluent method name.
|
public abstract String getPackageName()
Namer
getPackageName
in interface Namer
public abstract String getType()
Namer
public String getVar()
Namer
public String getPath()
Namer
"com/company/project/domain"
if the package name is com.company.project.domain
.public String getFullType()
Namer
getFullType
in interface Namer
public String getTypeLow()
Namer
getTypeLow
in interface Namer
public String getPackageNode(int index)
com.jaxio.toto.tutu
you get getPackageNode(0) -> tutu
getPackageNode(1) = toto
etc.public String getPackageNodeUp(int index)
getPackageNode(int)
with the first character upper cased.public String getVarUp()
Namer
Namer.getVar()
but starts with an upper case. Ex: ParentBankAccount.
Used to construct derived method.public String getVars()
Namer
public String getVarsUp()
Namer
Namer.getVars()
but starts with an upper case. Ex: ParentBankAccounts.public String getWith()
Namer
public String getGetter()
Namer
Namer.getVar()
.
Ex: getParentBankAccountpublic String getGetters()
Namer
Namer.getVars()
.
Ex: getParentBankAccountsgetGetters
in interface Namer
public String getSetter()
Namer
Namer.getVar()
.
Ex: setParentBankAccountpublic String getSetters()
Namer
Namer.getVars()
.
Ex: setParentBankAccountsgetSetters
in interface Namer
public String getAdder()
Namer
Namer.getVars()
.
Ex: addParentBankAccountpublic String getAdders()
Namer
Namer.getVars()
.
Ex: addParentBankAccountspublic String getContains()
Namer
Namer.getVars()
contains an element. Ex: containsParentBankAccountgetContains
in interface Namer
public String getRemover()
Namer
Namer.getVars()
.
Ex: removeParentBankAccountgetRemover
in interface Namer
public String getRemovers()
Namer
Namer.getVars()
.
Ex: removeParentBankAccountsgetRemovers
in interface Namer
public String getUniqueGetter()
public String getUniqueDeleter()
public String getGetterLocalized()
public String getEditer()
Namer
Namer.getVar()
.
Ex: editParentBankAccountpublic String getVarLocalized()
public String getHibernateFilterName()
getHibernateFilterName
in interface Namer
public String getRandomGetter()
public String getHas()
public String getHasPlural()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.