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
- theIdFactory
to marshal data.- Returns:
- this builder itself (
this
) for fluent API calls.
-
entityClass
public LinkPropertyBuilder<E> entityClass(Class<E> entityType)
- Parameters:
entityType
- theClass
reflecting the entity.- Returns:
- this builder itself (
this
) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>> createValidatorBuilder()
- Specified by:
createValidatorBuilder
in classPropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>
- Returns:
- the
ObjectValidatorBuilder
corresponding to this type of builder.
-
build
protected LinkProperty<E> build(String name, PropertyMetadata<Link<E>> metadata)
- Specified by:
build
in classPropertyBuilder<Link<E>,LinkProperty<E>,ValidatorBuilderObject<Link<E>,LinkPropertyBuilder<E>>,LinkPropertyBuilder<E>>
- Parameters:
name
- theproperty name
of theProperty
to build.metadata
- thePropertyMetadata
.- Returns:
- the
Property
tobuild
.
-
-