public final class ExclusiveParameterGroupObjectBuilder<T> extends DefaultObjectBuilder<T>
DefaultObjectBuilder extension that validates that the built object complies with the rules specified in
ExclusiveOptionalsprototypeClass, reflectionCache, resolverByFieldName, resolvers| Constructor and Description |
|---|
ExclusiveParameterGroupObjectBuilder(Class<T> prototypeClass,
org.mule.runtime.extension.api.declaration.type.annotation.ExclusiveOptionalsTypeAnnotation exclusiveOptionalsTypeAnnotation,
ReflectionCache reflectionCache)
Creates a new instance that will build instances of
prototypeClass. |
| Modifier and Type | Method and Description |
|---|---|
ObjectBuilder<T> |
addPropertyResolver(Field field,
ValueResolver<? extends Object> resolver)
Adds a property which value is to be obtained from a
ValueResolver |
ObjectBuilder<T> |
addPropertyResolver(String propertyName,
ValueResolver<? extends Object> resolver)
Adds a property which value is to be obtained from a
ValueResolver |
build, getParameters, getParameterValue, initialise, isDynamic, setEncoding, setNamepublic ExclusiveParameterGroupObjectBuilder(Class<T> prototypeClass, org.mule.runtime.extension.api.declaration.type.annotation.ExclusiveOptionalsTypeAnnotation exclusiveOptionalsTypeAnnotation, ReflectionCache reflectionCache)
prototypeClass.prototypeClass - a Class which needs to have a public default constructorpublic ObjectBuilder<T> addPropertyResolver(String propertyName, ValueResolver<? extends Object> resolver)
DefaultObjectBuilderValueResolveraddPropertyResolver in class DefaultObjectBuilder<T>propertyName - the name of the property in which the value is to be assignedresolver - a ValueResolver used to provide the actual valuepublic ObjectBuilder<T> addPropertyResolver(Field field, ValueResolver<? extends Object> resolver)
DefaultObjectBuilderValueResolveraddPropertyResolver in class DefaultObjectBuilder<T>field - the property in which the value is to be assignedresolver - a ValueResolver used to provide the actual valueCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.