T
- Property value typepublic interface PathProperty<T> extends CloneableProperty.CloneablePathProperty<T,PathProperty<T>>, PathExpression<T>
Property
bound to a Path
, using Path.getName()
as property name.
This property can be used as QueryExpression
and QueryProjection
through the PathExpression
super interface.
A PathProperty
is a ConverterExpression
too, using the PropertyValueConverter
as expression
value converter, if available.
Type specific extensions are available to provide query expression convenience builder methods.
The create(String, Class)
and create(Path)
builder methods can be used to create and configure a
new PathProperty
instance.
StringProperty
,
NumericProperty
,
TemporalProperty
,
BooleanProperty
,
PropertyBoxProperty
Modifier and Type | Interface and Description |
---|---|
static interface |
PathProperty.Builder<T,P extends Path<T> & Property<T>,B extends PathProperty.Builder<T,P,B>>
|
static interface |
PathProperty.PathPropertyBuilder<T>
PathProperty builder. |
CloneableProperty.CloneablePathProperty<T,P extends Property<T> & Path<T>>
Property.PropertyAccessException, Property.PropertyNotFoundException, Property.PropertyReadException, Property.PropertyReadOnlyException, Property.PropertyWriteException
Localizable.LocalizableBuilder, Localizable.LocalizationException
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException
Path.FinalPath<T>, Path.PathBuilder<T>
PATH_HIERARCHY_SEPARATOR
DEFAULT_CONFIG_PROPERTY_PREFIX, PATH
Modifier and Type | Method and Description |
---|---|
static <T> PathProperty.PathPropertyBuilder<T> |
create(Path<T> path)
|
static <T> PathProperty.PathPropertyBuilder<T> |
create(String name,
Class<? extends T> type)
|
default boolean |
isReadOnly()
Gets whether property is read-only, i.e. does not support value setting.
|
clone
getConfiguration, getConvertedValue, getConverter, getExpressionValueConverter, getName, getTemporalType, getType, present, render, renderIfAvailable
getValidators, validate
builder, getMessage, getMessageArguments, getMessageCode, of, of
hasConfiguration
getModelType, getModelValue
isCollectionExpression, isConverterExpression
validate
asc, desc, from
fullName, fullName, getName, getParent, isRootPath, of, relativeName, relativeName, stream
getDataPath, isDataMappable
between, count, eq, eq, goe, goe, gt, gt, in, in, in, isNotNull, isNull, loe, loe, lt, lt, max, min, neq, neq, nin, nin, nin
bean, constant, countAll, path, propertySet, propertySet
default boolean isReadOnly()
Property
When a property is read-only, a Property.PropertyReadOnlyException
should be thrown by property value setting
methods.
isReadOnly
in interface Property<T>
true
if property is read-onlystatic <T> PathProperty.PathPropertyBuilder<T> create(String name, Class<? extends T> type)
create
in interface PathExpression<T>
T
- Property (path) typename
- Property name (not null)type
- Property value type (not null)PathProperty
builderstatic <T> PathProperty.PathPropertyBuilder<T> create(Path<T> path)
T
- Property (path) typepath
- Path from which to obtain the property path name and type (not null)PathProperty
builderCopyright © 2019 The Holon Platform. All rights reserved.