- All Implemented Interfaces:
Node
public class NameNode
extends Object
implements Node
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
NameNode
构造
- Parameters:
name - 节点名
-
Method Details
-
isNumber
public boolean isNumber()
是否为数字节点
- Returns:
- 是否为数字节点
-
getValue
Description copied from interface: Node
获取Bean对应节点的值
- Specified by:
getValue in interface Node
- Parameters:
bean - bean对象
- Returns:
- 节点值
-
setValue
Description copied from interface: Node
设置节点值
- Specified by:
setValue in interface Node
- Parameters:
bean - bean对象
value - 节点值
- Returns:
- bean对象。如果在原Bean对象基础上设置值,返回原Bean,否则返回新的Bean
-