|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GrailsClass
This interface represents any class in a Grails application.
Method Summary | |
---|---|
Class |
getClazz()
Returns the actual clazz represented by the GrailsClass |
String |
getFullName()
Returns the full name of the class in the application with the the trailing convention part and with the package name. |
String |
getLogicalPropertyName()
Returns the logical name of the class as a property name |
groovy.lang.MetaClass |
getMetaClass()
|
String |
getName()
Returns the logical name of the class in the application without the trailing convention part if applicable and without the package name. |
String |
getNaturalName()
Returns the name of the property in natural terms (eg. |
String |
getPackageName()
Returns the package name of the class. |
String |
getPropertyName()
Returns the name of the class as a property name |
Object |
getPropertyValue(String name)
Gets the initial value of the given property on the class |
Object |
getPropertyValue(String name,
Class type)
Obtains a property value for the given name and type |
BeanWrapper |
getReference()
|
String |
getShortName()
Returns the short name of the class without package prefix |
boolean |
hasProperty(String name)
Returns true if the class has the specified property |
Object |
newInstance()
Creates a new instance of this class. |
Method Detail |
---|
Object getPropertyValue(String name)
Gets the initial value of the given property on the class
name
- The name of the property
boolean hasProperty(String name)
Returns true if the class has the specified property
name
- The name of the property
Object newInstance()
Creates a new instance of this class.
This method can be used as factory method in the Spring application context.
String getName()
Returns the logical name of the class in the application without the trailing convention part if applicable and without the package name.
String getShortName()
Returns the short name of the class without package prefix
String getFullName()
Returns the full name of the class in the application with the the trailing convention part and with the package name.
String getPropertyName()
Returns the name of the class as a property name
String getLogicalPropertyName()
Returns the logical name of the class as a property name
String getNaturalName()
Returns the name of the property in natural terms (eg. 'lastName' becomes 'Last Name')
String getPackageName()
Returns the package name of the class.
Class getClazz()
Returns the actual clazz represented by the GrailsClass
groovy.lang.MetaClass getMetaClass()
BeanWrapper getReference()
Object getPropertyValue(String name, Class type)
name
- The nametype
- The type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |