public class ConstrainedPropertyBuilder extends BuilderSupport
Builder used as a delegate within the "constraints" closure of GrailsDomainClass instances .
| Constructor and description |
|---|
ConstrainedPropertyBuilder(MappingContext mappingContext, ConstraintRegistry constraintRegistry, Class targetClass, Map<String, Object> defaultConstraints) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Object |
createNode(Object name, Map attributes) |
|
protected Object |
createNode(Object name, Map attributes, Object value) |
|
protected Object |
createNode(Object name) |
|
protected Object |
createNode(Object name, Object value) |
|
protected Class<?> |
determinePropertyType(String propertyName) |
|
protected Object |
doInvokeMethod(String methodName, Object name, Object args) |
|
public Map<String, ConstrainedProperty> |
getConstrainedProperties() |
|
public Object |
getProperty(String property) |
|
public String |
getSharedConstraint(String propertyName) |
|
public void |
setAllowDynamic(boolean allowDynamic) |
|
public void |
setDefaultNullable(boolean defaultNullable) |
|
protected void |
setParent(Object parent, Object child) |
|
public void |
setProperty(String property, Object newValue) |
| Methods inherited from class | Name |
|---|---|
class BuilderSupport |
equals, getClass, getMetaClass, getProperty, hashCode, invokeMethod, invokeMethod, notify, notifyAll, setMetaClass, setProperty, toString, wait, wait, wait |