b23169da7b04cc49fdcd46329eb051cdf660b555.svn-base
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.common.supcan.common.properties;
import com.thinkgem.jeesite.common.supcan.annotation.common.properties.SupExpress;
import com.thinkgem.jeesite.common.utils.ObjectUtils;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;
/**
* 硕正TreeList Properties Express
* @author WangZhen
* @version 2013-11-04
*/
@XStreamAlias("Express")
@XStreamConverter(value = ToAttributedValueConverter.class, strings = {"text"})
public class Express {
/**
* 是否自动按列的引用关系优化计算顺序 默认值true
*/
@XStreamAsAttribute
private String isOpt;
/**
* 文本
*/
private String text;
public Express() {
}
public Express(SupExpress supExpress) {
this();
ObjectUtils.annotationToObject(supExpress, this);
}
public Express(String text) {
this.text = text;
}
public Express(String name, String text) {
this(name);
this.text = text;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getIsOpt() {
return isOpt;
}
public void setIsOpt(String isOpt) {
this.isOpt = isOpt;
}
}