E
- the generic type of the linked
EntityBean
.public class LinkProperty<E extends EntityBean> extends GenericProperty<Link<E>>
AbstractProperty.PropertyBuilder<T extends AbstractProperty<? extends V>>
Modifier and Type | Field and Description |
---|---|
private static GenericType<Link> |
TYPE
The fallback for
GenericProperty.getType() if linked class is unknown. |
TYPE_DEFAULT
NO_PROPERTIES
PROPERTY_TYPE
Constructor and Description |
---|
LinkProperty(String name,
GenericType<Link<E>> type,
Bean bean)
The constructor.
|
LinkProperty(String name,
GenericType<Link<E>> type,
Bean bean,
AbstractValidator<? super Link<E>> validator)
The constructor.
|
LinkProperty(String name,
GenericType<Link<E>> type,
Bean bean,
Supplier<? extends Link<E>> expression)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static <E extends EntityBean> |
createLinkType(Class<E> beanClass) |
doGetValue, doSetValue, fromJson, getType, toJson, withValdidator
addListener, addListener, fireValueChangedEvent, removeListener, removeListener
bind, bindBidirectional, clearValidationResult, copy, equals, getReadOnly, getValue, hashCode, invalidated, isBound, isReadOnly, isValid, markInvalid, requireWritable, setValue, unbind, unbindBidirectional, validate
assignValueFrom, clone, copy, copy, copy, copy, copy, getBean, getJsonUtil, getName, getValidator, isMandatory, toJson, toString, withValdidator
finalize, getClass, notify, notifyAll, wait, wait, wait
getReadOnly
private static final GenericType<Link> TYPE
GenericProperty.getType()
if linked class is unknown.public LinkProperty(String name, GenericType<Link<E>> type, Bean bean)
name
- - see AbstractProperty.getName()
.type
- - see GenericProperty.getType()
.bean
- - see AbstractProperty.getBean()
.public LinkProperty(String name, GenericType<Link<E>> type, Bean bean, AbstractValidator<? super Link<E>> validator)
name
- - see AbstractProperty.getName()
.type
- - see GenericProperty.getType()
.bean
- - see AbstractProperty.getBean()
.validator
- - see AbstractValueProperty.validate()
.public LinkProperty(String name, GenericType<Link<E>> type, Bean bean, Supplier<? extends Link<E>> expression)
name
- - see AbstractProperty.getName()
.type
- - see GenericProperty.getType()
.bean
- - see AbstractProperty.getBean()
.expression
- the Supplier
providing
the actual value
.public static <E extends EntityBean> GenericType<Link<E>> createLinkType(Class<E> beanClass)
E
- the generic type of the linked
EntityBean
.beanClass
- the class reflecting the linked EntityBean
.GenericType
for an Link
pointing to
an EntityBean
of
the given Class
.Copyright © 2001–2016 mmm-Team. All rights reserved.