public class ConstrainedPropertyBuilder extends groovy.util.BuilderSupport
Builder used as a delegate within the "constraints" closure of GrailsDomainClass instances .
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
IMPORT_FROM_CONSTRAINT |
|
private static org.slf4j.Logger |
LOG |
|
private static java.lang.String |
SHARED_CONSTRAINT |
|
private boolean |
allowDynamic |
|
private ClassPropertyFetcher |
classPropertyFetcher |
|
private java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
constrainedProperties |
|
private ConstraintRegistry |
constraintRegistry |
|
private java.util.Map<java.lang.String, java.lang.Object> |
defaultConstraints |
|
private boolean |
defaultNullable |
|
private MappingContext |
mappingContext |
|
private int |
order |
|
private java.util.Map<java.lang.String, java.lang.String> |
sharedConstraints |
|
private java.lang.Class<?> |
targetClass |
|
private groovy.lang.MetaClass |
targetMetaClass |
Constructor and description |
---|
ConstrainedPropertyBuilder
(MappingContext mappingContext, ConstraintRegistry constraintRegistry, java.lang.Class targetClass, java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.Object |
createNode(java.lang.Object name, java.util.Map attributes) |
|
protected java.lang.Object |
createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value) |
|
protected java.lang.Object |
createNode(java.lang.Object name) |
|
protected java.lang.Object |
createNode(java.lang.Object name, java.lang.Object value) |
|
protected java.lang.Class<?> |
determinePropertyType(java.lang.String propertyName) |
|
protected java.lang.Object |
doInvokeMethod(java.lang.String methodName, java.lang.Object name, java.lang.Object args) |
|
public java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
getConstrainedProperties() |
|
public java.lang.Object |
getProperty(java.lang.String property) |
|
public java.lang.String |
getSharedConstraint(java.lang.String propertyName) |
|
private java.lang.Object |
handleImportFrom(java.util.Map attributes, java.lang.Class importFromClazz) |
|
private boolean |
isListOfRegexpsContainsString(java.util.List<java.lang.String> listOfStrings, java.lang.String stringToMatch) |
|
public void |
setAllowDynamic(boolean allowDynamic) |
|
public void |
setDefaultNullable(boolean defaultNullable) |
|
protected void |
setParent(java.lang.Object parent, java.lang.Object child) |
|
public void |
setProperty(java.lang.String property, java.lang.Object newValue) |
Methods inherited from class | Name |
---|---|
class groovy.util.BuilderSupport |
groovy.util.BuilderSupport#invokeMethod(java.lang.String), groovy.util.BuilderSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.util.BuilderSupport#getMetaClass(), groovy.util.BuilderSupport#setMetaClass(groovy.lang.MetaClass), groovy.util.BuilderSupport#wait(long), groovy.util.BuilderSupport#wait(long, int), groovy.util.BuilderSupport#wait(), groovy.util.BuilderSupport#equals(java.lang.Object), groovy.util.BuilderSupport#toString(), groovy.util.BuilderSupport#hashCode(), groovy.util.BuilderSupport#getClass(), groovy.util.BuilderSupport#notify(), groovy.util.BuilderSupport#notifyAll(), groovy.util.BuilderSupport#getProperty(java.lang.String), groovy.util.BuilderSupport#setProperty(java.lang.String, java.lang.Object) |