Exemplo n.º 1
0
 // @todo (france, ub): add id to signature
 public LinkTypeBean(
     String name,
     Class firstClass,
     Class secondClass,
     String firstRole,
     String secondRole,
     CardinalityKey firstCardinality,
     CardinalityKey secondCardinality,
     ArrowKey firstArrowType,
     ArrowKey secondArrowType,
     ColorKey lineColor,
     LineKey lineType,
     boolean showLinkTypeName,
     boolean showRoleNames) {
   super(name, name);
   this.firstClassName = firstClass == null ? null : firstClass.getName();
   this.secondClassName = secondClass == null ? null : secondClass.getName();
   this.firstRole = firstRole;
   this.secondRole = secondRole;
   this.firstCardinality = firstCardinality.getValue();
   this.secondCardinality = secondCardinality.getValue();
   this.firstArrowType = firstArrowType.getValue();
   this.secondArrowType = secondArrowType.getValue();
   this.lineColor = lineColor.getValue();
   this.lineType = lineType.getValue();
   this.showLinkTypeName = showLinkTypeName;
   this.showRoleNames = showRoleNames;
 }
Exemplo n.º 2
0
 public void setLineType(LineKey lineKey) {
   lineType = lineKey.getValue();
 }