public abstract class AbstractProperty<T,R> extends Object implements Property<T,R>
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected Dict<R> |
dict |
字段字典
|
protected int |
level |
层级
|
protected String |
name |
属性唯一名称
|
protected NodeType |
nodeType |
节点类型
|
| 构造器 | 说明 |
|---|---|
AbstractProperty(String name) |
|
AbstractProperty(String name,
Dict<R> dict) |
|
AbstractProperty(String name,
NodeType nodeType) |
|
AbstractProperty(String name,
NodeType nodeType,
Dict<R> dict) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Dict<R> |
dict() |
获取字段字典
|
int |
level() |
层级
|
R |
mappingValue(T t) |
指定将实体转换成字段值的映射关系
这里既可以指定一个具体字段,也可以返回处理后的字段,比如两个日期组成一个日期范围,两个价格组成一个价格区间
|
String |
name() |
属性唯一名称
|
NodeType |
nodeType() |
节点类型
|
void |
setLevel(int level) |
|
void |
setPropertyMapper(Function<T,R> propertyMapper) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDictKey, mappingDictKeyprotected final String name
protected int level
protected final NodeType nodeType
public AbstractProperty(String name)
Copyright © 2024–2025. All rights reserved.