|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface GrailsClass
Represents any class in a Grails application.
Method Summary | |
---|---|
java.lang.Class
|
getClazz()
Returns the actual clazz represented by the GrailsClass. |
java.lang.String
|
getFullName()
Returns the full name of the class in the application with the the trailing convention part and with the package name. |
java.lang.String
|
getLogicalPropertyName()
Returns the logical name of the class as a property name. |
groovy.lang.MetaClass
|
getMetaClass()
@return The MetaClass for this Grails class |
java.lang.String
|
getName()
Returns the logical name of the class in the application without the trailing convention part if applicable and without the package name. |
java.lang.String
|
getNaturalName()
Returns the name of the property in natural terms (eg. |
java.lang.String
|
getPackageName()
Returns the package name of the class. |
java.lang.String
|
getPropertyName()
Returns the name of the class as a property name. |
java.lang.Object
|
getPropertyValue(java.lang.String name)
Gets the initial value of the given property on the class. |
T
|
getPropertyValue(java.lang.String name, java.lang.Class type)
Obtains a property value for the given name and type |
BeanWrapper
|
getReference()
@deprecated |
java.lang.Object
|
getReferenceInstance()
@return Sample (reference) instance for this Grails class |
java.lang.String
|
getShortName()
Returns the short name of the class without package prefix. |
boolean
|
hasProperty(java.lang.String name)
Returns true if the class has the specified property. |
java.lang.Object
|
newInstance()
Creates a new instance of this class. |
Method Detail |
---|
@SuppressWarnings("rawtypes") public java.lang.Class getClazz()
public java.lang.String getFullName()
public java.lang.String getLogicalPropertyName()
public groovy.lang.MetaClass getMetaClass()
public java.lang.String getName()
public java.lang.String getNaturalName()
public java.lang.String getPackageName()
public java.lang.String getPropertyName()
public java.lang.Object getPropertyValue(java.lang.String name)
name
- The name of the property
public T getPropertyValue(java.lang.String name, java.lang.Class type)
name
- The nametype
- The type
@Deprecated public BeanWrapper getReference()
public java.lang.Object getReferenceInstance()
public java.lang.String getShortName()
public boolean hasProperty(java.lang.String name)
name
- The name of the property
public java.lang.Object newInstance()
Groovy Documentation