コード例 #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;
 }
コード例 #2
0
  public void setSecondCardinality(CardinalityKey secondCardinality) {
    markModified();

    this.secondCardinality = secondCardinality.getValue();
  }
コード例 #3
0
  public void setFirstCardinality(CardinalityKey firstCardinality) {
    markModified();

    this.firstCardinality = firstCardinality.getValue();
  }