田源
2025-01-09 8a166a60cfd1a2e593ffa103d10c0dc224fc8628
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
package com.vci.client.workflow.editor;
 
import java.io.Serializable;
 
import org.dom4j.Attribute;
import org.dom4j.Element;
 
import com.mxgraph.model.mxCell;
 
public class FlowTransition implements Serializable {
 
    private static final long serialVersionUID = 7869348024521303321L;
    
    private String name;
    private mxCell source;
    private String target;
    
    public FlowTransition() {
    }
    
    public FlowTransition(mxCell source, Element element) {
        this.source = source;
        Attribute attribute = element.attribute(FlowConstants.XMLNAME);
        name = attribute == null? "" : attribute.getValue();
        target = element.attribute(FlowConstants.XMLTARGET).getValue();
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public mxCell getSource() {
        return source;
    }
 
    public void setSource(mxCell source) {
        this.source = source;
    }
 
    public String getTarget() {
        return target;
    }
 
    public void setTarget(String target) {
        this.target = target;
    }
 
}