public abstract class AbstractProperty<T,R> extends Object implements Property<T,R>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Dict<R> |
dict
字段字典
|
protected boolean |
isLeaf
是否是叶子节点
|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDictKey, mappingDictKeyprotected final String name
protected int level
protected boolean isLeaf
protected final NodeType nodeType
public AbstractProperty(String name)
Copyright © 2024. All rights reserved.