java.lang.Object | |
↳ | org.springframework.core.Conventions |
Provides methods to support various naming and other conventions used throughout the framework. Mainly for internal use within the framework.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert
String s in attribute name format (lowercase, hyphens separating words)
into property name format (camel-cased). | |||||||||||
Return an attribute name qualified by the supplied enclosing
Class . | |||||||||||
Determine the conventional variable name for the supplied
Object based on its concrete type. | |||||||||||
Determine the conventional variable name for the supplied parameter,
taking the generic collection type (if any) into account.
| |||||||||||
Determine the conventional variable name for the return type of the supplied method,
taking the generic collection type (if any) into account, falling back to the
given return value if the method declaration is not specific enough (i.e.
| |||||||||||
Determine the conventional variable name for the return type of the supplied method,
taking the generic collection type (if any) into account, falling back to the
given return value if the method declaration is not specific enough (i.e.
| |||||||||||
Determine the conventional variable name for the return type of the supplied method,
taking the generic collection type (if any) into account.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Convert String
s in attribute name format (lowercase, hyphens separating words)
into property name format (camel-cased). For example, transaction-manager
is
converted into transactionManager
.
Determine the conventional variable name for the supplied
Object
based on its concrete type. The convention
used is to return the uncapitalized short name of the Class
,
according to JavaBeans property naming rules: So,
com.myapp.Product
becomes product
;
com.myapp.MyProduct
becomes myProduct
;
com.myapp.UKProduct
becomes UKProduct
.
For arrays, we use the pluralized version of the array component type.
For Collection
s we attempt to 'peek ahead' in the
Collection
to determine the component type and
return the pluralized version of that component type.
value | the value to generate a variable name for |
---|
Determine the conventional variable name for the supplied parameter, taking the generic collection type (if any) into account.
parameter | the method or constructor parameter to generate a variable name for |
---|
Determine the conventional variable name for the return type of the supplied method,
taking the generic collection type (if any) into account, falling back to the
given return value if the method declaration is not specific enough (i.e. in case of
the return type being declared as Object
or as untyped collection).
method | the method to generate a variable name for |
---|---|
resolvedType | the resolved return type of the method |
value | the return value (may be null if not available) |
Determine the conventional variable name for the return type of the supplied method,
taking the generic collection type (if any) into account, falling back to the
given return value if the method declaration is not specific enough (i.e. in case of
the return type being declared as Object
or as untyped collection).
method | the method to generate a variable name for |
---|---|
value | the return value (may be null if not available) |
Determine the conventional variable name for the return type of the supplied method, taking the generic collection type (if any) into account.
method | the method to generate a variable name for |
---|