Module io.github.mmm.entity.bean
Class LinkPropertyBuilder<E>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>
-
- io.github.mmm.entity.property.link.LinkPropertyBuilder<E>
-
- Type Parameters:
E- the generic type of theentity.
public final class LinkPropertyBuilder<E> extends PropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>
- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description LinkPropertyBuilder()The constructor.LinkPropertyBuilder(IdFactory<?,?,?> idFactory, Class<E> entityClass)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LinkProperty<E>build(String name, PropertyMetadata<Link<E>> metadata)protected ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>createValidatorBuilder()LinkPropertyBuilder<E>entityClass(Class<E> entityType)LinkPropertyBuilder<E>idFactory(IdFactory<?,?,?> factory)LinkPropertyBuilder<E>resolver(Function<Id<E>,E> entityResolver)-
Methods inherited from class io.github.mmm.property.builder.PropertyBuilder
asList, asMap, asMap, asSet, build, build, builder, factory, metadata, metadataFactory, registry, self, value, valueExpression, withValidator
-
-
-
-
Method Detail
-
idFactory
public LinkPropertyBuilder<E> idFactory(IdFactory<?,?,?> factory)
- Parameters:
factory- theIdFactoryto marshal data.- Returns:
- this builder itself (
this) for fluent API calls.
-
entityClass
public LinkPropertyBuilder<E> entityClass(Class<E> entityType)
- Parameters:
entityType- theClassreflecting the entity.- Returns:
- this builder itself (
this) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>> createValidatorBuilder()
- Specified by:
createValidatorBuilderin classPropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>- Returns:
- the
ObjectValidatorBuildercorresponding to this type of builder.
-
build
protected LinkProperty<E> build(String name, PropertyMetadata<Link<E>> metadata)
- Specified by:
buildin classPropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>- Parameters:
name- theproperty nameof thePropertyto build.metadata- thePropertyMetadata.- Returns:
- the
Propertytobuild.
-
-