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;
|
}
|
|
}
|