@java.lang.SuppressWarnings({"rawtypes", "unchecked"})
public final class BindingIncludeLists
extends java.lang.Object
The properties data binding binds on a type: the include list Grails generates for a domain class
or a command object, and under grails.databinding.denyByDefault the properties constrained
bindable: true. Everything it is read from belongs to the class, so it is read from the
class, without an instance, and kept for each class.
Internal to Grails: grails.web.databinding.DataBindingUtils binds with it, and other
Grails modules read it through it.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static java.util.List |
asGenerated(java.util.List includeList) |
|
public static java.lang.Object |
bindableConstraintValue(java.lang.Object constrainedProperty) |
|
public static java.util.List |
bindablePropertyNames(java.lang.Class type)The properties a type constrains bindable: true. |
|
public static void |
clearCaches()Forgets the include lists read, so they are read again, as when the classes are reloaded. |
|
protected java.lang.Boolean |
computeValue(java.lang.Class<?> type) |
|
public static java.util.Map |
constrainedProperties(java.lang.Class type)The constraints a type declares: through the constraintsMap a validateable type and a
domain class have, or else evaluated from the class. |
|
public static java.util.Map |
evaluateConstrainedProperties(java.lang.Class type) |
|
public static java.util.List |
forType(java.lang.Class type, boolean denyByDefault)The include list data binding binds a type with. |
|
public static boolean |
inheritsConstraintsMap(java.lang.Class type)Whether a type inherits the static getConstraintsMap() that Validateable adds to a
superclass, and so answers with the constraints of that superclass rather than its own. |
|
public static boolean |
isDenyByDefaultEnabled()Whether grails.databinding.denyByDefault is enabled in the running application. |
|
public static boolean |
isGenerated(java.util.List includeList) |
|
public static java.util.List<java.lang.String> |
propertyNames(java.lang.Class type)The names of the properties data binding binds on a type, as the application is configured to bind, without the patterns binding matches nested properties with. |
|
public static java.util.List |
propertyNamesWithBindableValue(java.util.Map constrainedProperties, java.lang.Boolean bindableValue) |
|
public static boolean |
resolveDenyByDefault(java.lang.Object value)Resolves the configured value of grails.databinding.denyByDefault against the permissive default. |
|
public static java.util.List<java.lang.String> |
unbindablePropertyNames(java.lang.Class type)The properties a type constrains bindable: false, which binding never binds without an
explicit include list naming them. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The properties a type constrains bindable: true.
Forgets the include lists read, so they are read again, as when the classes are reloaded.
The constraints a type declares: through the constraintsMap a validateable type and a
domain class have, or else evaluated from the class. A subclass that inherits
getConstraintsMap() instead of implementing Validateable itself would answer with
its superclass's constraints alone, so its own are evaluated, with those it inherits.
The include list data binding binds a type with.
type - the type bounddenyByDefault - whether grails.databinding.denyByDefault is enablednull where binding
the type is not restricted Whether a type inherits the static getConstraintsMap() that Validateable adds to a
superclass, and so answers with the constraints of that superclass rather than its own. A
getConstraintsMap() instance getter a superclass declares is not inherited in this sense: it
answers for the instance it is called on.
Whether grails.databinding.denyByDefault is enabled in the running application.
The names of the properties data binding binds on a type, as the application is configured to bind, without the patterns binding matches nested properties with.
null where binding the type is not restricted Resolves the configured value of grails.databinding.denyByDefault against the permissive default.
The raw value must be resolved here rather than through a typed Boolean config lookup:
a config value that converts to Boolean.FALSE is discarded in favour of the supplied
default, which would silently ignore an explicit value from
any string-valued source such as a properties file, a system property or an environment variable.
A navigable config answers an absent key with a placeholder object rather than null, so
only a genuinely absent key may fall back to the permissive default. Any other unrecognised value
fails closed, because this switch governs mass-assignment protection.
value - the raw configured value, which may be null or an absent-key placeholder The properties a type constrains bindable: false, which binding never binds without an
explicit include list naming them.