Groovy Documentation

# Deprecated API

Classes
`ConstraintsEvaluatingDynamicProperty` This is a dynamic property that instead of returning the closure sets a new proxy meta class for the scope of the call and invokes the closure itself which builds up a list of ConstrainedProperty instances.
`DefaultPluginMetaManager` Implements the PluginMetaManager interface by parsing a set of plugin.xml files from the given set of resources.
`GenerateUtils` Utility class with a "main" method that allows an application to run the template generation.
`GrailsPluginUtils` @deprecated Use GrailsUtil instead.
`GroovyPageUtils` Methods to establish template names, paths and so on.
`JSON` A converter that converts domain classes, Maps, Lists, Arrays, POJOs and POGOs to JSON (Including nested Domain Classes)
`JSonBuilder` JSonBuilder provides support for creating JSON responses
`XML` A converter that converts domain classes to XML (including nested Domain Classes)

Methods
`DefaultGrailsApplicationAttributes#getApplicationUri(ServletRequest request)` @deprecated Use instead
`DefaultGrailsControllerClass#getCommandObjectActions()` @deprecated This method is deprecated and will be removed in a future version of Grails
`DefaultGrailsControllerClass#getCommandObjectClasses()` @deprecated This method is deprecated and will be removed in a future version of Grails
`GrailsClass#getReference()` @deprecated
`GrailsClassUtils#getClassName(java.lang.String logicalName, java.lang.String trailingName)` Returns the class name for the given logical name and trailing name.
`GrailsClassUtils#getClassNameForLowerCaseHyphenSeparatedName(java.lang.String name)` Converts foo-bar into FooBar
`GrailsClassUtils#getClassNameRepresentation(java.lang.String name)` Returns the class name representation of the given name
`GrailsClassUtils#getLogicalName(java.lang.Class clazz, java.lang.String trailingName)` Retrieves the logical class name of a Grails artifact given the Grails class and a specified trailing name
`GrailsClassUtils#getLogicalName(java.lang.String name, java.lang.String trailingName)` Retrieves the logical name of the class without the trailing name
`GrailsClassUtils#getLogicalPropertyName(java.lang.String className, java.lang.String trailingName)` @deprecated Use GrailsNameUtils.getLogicalPropertyName instead.
`GrailsClassUtils#getNameFromScript(java.lang.String scriptName)` Calculates the class name from a script name in the form my-funk-grails-script
`GrailsClassUtils#getNaturalName(java.lang.String name)` Converts a property name into its natural language equivalent eg ('firstName' becomes 'First Name')
`GrailsClassUtils#getPropertyName(java.lang.String name)` Shorter version of getPropertyNameRepresentation
`GrailsClassUtils#getPropertyName(java.lang.Class clazz)` Shorter version of getPropertyNameRepresentation
`GrailsClassUtils#getPropertyNameForLowerCaseHyphenSeparatedName(java.lang.String name)` Converts foo-bar into fooBar
`GrailsClassUtils#getPropertyNameRepresentation(java.lang.Class targetClass)` Returns the property name equivalent for the specified class
`GrailsClassUtils#getPropertyNameRepresentation(java.lang.String name)` Returns the property name representation of the given name
`GrailsClassUtils#getScriptName(java.lang.Class clazz)` Retrieves the script name representation of the supplied class.
`GrailsClassUtils#getScriptName(java.lang.String name)` @deprecated Use GrailsNameUtils.getScriptName instead.
`GrailsClassUtils#getShortName(java.lang.Class targetClass)` Returns the class name without the package prefix
`GrailsClassUtils#getShortName(java.lang.String className)` Returns the class name without the package prefix
`GrailsDomainClass#getPersistantProperties()` Returns all of the persistant properties of the domain class
`GrailsUtil#getEnvironment()` Retrieves the current execution environment.
`GrailsUtil#writeSlurperResult(groovy.util.slurpersupport.GPathResult result, java.io.Writer output)` Writes out a GPathResult (i.e. the result of parsing XML using XmlSlurper) to the given writer.
`MockUtils#mockCommandObject(java.lang.Class clazz)` Mocks a command object class by adding a "validate()" method and errors-related methods, like "getErrors()" and "hasErrors()".
`MockUtils#mockDomain(java.lang.Class clazz)` Call this to mock the given domain class.
`MockUtils#mockDomain(java.lang.Class clazz, java.util.List testInstances)` Call this to mock the given domain class.
`MockUtils#prepareForConstraintsTests(java.lang.Class clazz)` Adds a `validate()` method to the given domain class that performs validation against the constraints and returns a map of errors.
`MockUtils#prepareForConstraintsTests(java.lang.Class clazz, java.util.List testInstances)` Adds a `validate()` method to the given domain class that performs validation against the constraints and returns a map of errors.

Groovy Documentation