T
- The type of entityV
- The type of propertypublic interface PropertyMetaData<T,V> extends ElementMetaData<T,V>
Modifier and Type | Method and Description |
---|---|
Converter<V> |
getConverter()
Returns converter to be used for property value conversion into and from
string representation.
|
V |
getValue(T entity)
Returns value of this property for the specified entity.
|
boolean |
isReadable()
Determines if this property is readable.
|
boolean |
isRequired()
Determines if this property requires value.
|
boolean |
isWriteable()
Determines if this property is writeable.
|
void |
setValue(T entity,
Object value)
Assigns value of this property for the specified entity.
|
getDefaultValue, getName
cast, getConstraint, getType
Converter<V> getConverter()
boolean isRequired()
true
if this property requires value;
false
otherwise.boolean isReadable()
true
if this property is readable;
false
otherwise.boolean isWriteable()
true
if this property is writeable;
false
otherwise.V getValue(T entity)
entity
- Entity whose property value should be returned.IllegalArgumentException
- if the specified entity is null
.UnsupportedOperationException
- if this property is not readable.void setValue(T entity, Object value)
entity
- Entity whose property value should be assigned.value
- New property value.IllegalArgumentException
- if the specified entity is null
.UnsupportedOperationException
- if this property is not writeable.Copyright © 2011–2020 FoxLabs. All rights reserved.