Package | Description |
---|---|
org.nuiton.util.beans |
Packages for all stuff of bean transformations (binder, and others...).
|
Modifier and Type | Method and Description |
---|---|
BinderModelBuilder<S,T> |
BinderModelBuilder.addBinder(String propertyName,
Binder<?,?> binder) |
BinderModelBuilder<S,T> |
BinderModelBuilder.addCollectionBinder(Binder binder,
String... propertyNames) |
BinderModelBuilder<S,T> |
BinderModelBuilder.addCollectionStrategy(Binder.CollectionStrategy strategy,
String... propertyNames) |
protected BinderModelBuilder<S,T> |
BinderModelBuilder.addCollectionStrategy0(String propertyName,
Binder.CollectionStrategy strategy,
Binder binder) |
<K,V> BinderModelBuilder<S,T> |
BinderModelBuilder.addFunction(Class<K> type,
com.google.common.base.Function<K,V> function) |
BinderModelBuilder<S,T> |
BinderModelBuilder.addProperties(String... sourceAndTargetProperties)
Add to the binder model some properties.
|
BinderModelBuilder<S,T> |
BinderModelBuilder.addProperty(String sourceProperty,
String targetProperty)
Add to the binder model some simple properties (says source property name = target property name).
|
BinderModelBuilder<S,T> |
BinderModelBuilder.addSimpleProperties(String... properties)
Add to the binder model some simple properties (says source property name = target property name).
|
BinderModelBuilder<T,S> |
BinderModelBuilder.buildInverseModelBuilder()
Creates a new model builder inversing the the source and target of this builder.
|
BinderModelBuilder<S,T> |
BinderModelBuilder.canTypeMismatch(boolean canTypeMismatch)
Change the value of property
canTypeMismatch . |
static <S> BinderModelBuilder<S,S> |
BinderModelBuilder.newDefaultBuilder(Class<S> sourceType)
Creates a new mirrored model builder and fill the model with all matching
and available property from the given type.
|
static <S,T> BinderModelBuilder<S,T> |
BinderModelBuilder.newDefaultBuilder(Class<S> sourceType,
Class<T> targetType)
Creates a new model builder and fill the model with all matching
and available properties from the source type to the target type.
|
static <S,T> BinderModelBuilder<S,T> |
BinderModelBuilder.newDefaultBuilder(Class<S> sourceType,
Class<T> targetType,
boolean checkType)
Creates a new model builder and fill the model with all matching
and available properties from the source type to the target type.
|
static <S> BinderModelBuilder<S,S> |
BinderModelBuilder.newEmptyBuilder(Class<S> type)
Creates a new mirrored and empty model binder for the given
type . |
static <S,T> BinderModelBuilder<S,T> |
BinderModelBuilder.newEmptyBuilder(Class<S> sourceType,
Class<T> targetType)
Creates a new empty model binder for the given types.
|
Modifier and Type | Method and Description |
---|---|
static <S,T> Binder.BinderModel<S,T> |
BinderFactory.registerBinderModel(BinderModelBuilder<S,T> binderModelBuilder) |
static <S,T> Binder.BinderModel<S,T> |
BinderFactory.registerBinderModel(BinderModelBuilder<S,T> binderModelBuilder,
String contextName) |
Copyright © 2004–2020 CodeLutin. All rights reserved.