当前位置: 首页>>代码示例>>Java>>正文


Java Link.getQualifier1方法代码示例

本文整理汇总了Java中net.sourceforge.plantuml.cucadiagram.Link.getQualifier1方法的典型用法代码示例。如果您正苦于以下问题:Java Link.getQualifier1方法的具体用法?Java Link.getQualifier1怎么用?Java Link.getQualifier1使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sourceforge.plantuml.cucadiagram.Link的用法示例。


在下文中一共展示了Link.getQualifier1方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: insertBetween

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
final public boolean insertBetween(IEntity entity1, IEntity entity2, IEntity node) {
	final Link link = foundLink(entity1, entity2);
	if (link == null) {
		return false;
	}
	final Link l1 = new Link(entity1, node, link.getType(), link.getLabel(), link.getLength(),
			link.getQualifier1(), null, link.getLabeldistance(), link.getLabelangle());
	final Link l2 = new Link(node, entity2, link.getType(), link.getLabel(), link.getLength(), null,
			link.getQualifier2(), link.getLabeldistance(), link.getLabelangle());
	addLink(l1);
	addLink(l2);
	removeLink(link);
	return true;
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:15,代码来源:AbstractClassOrObjectDiagram.java

示例2: addLink

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
private void addLink(Link link) {
	final String assId = "ass" + UniqueSequence.getValue();
	// if ((link.getType().getDecor1() == LinkDecor.EXTENDS || link.getType().getDecor2() == LinkDecor.EXTENDS)
	// && fileFormat == FileFormat.XMI_STAR) {
	// addExtension(link, assId);
	// return;
	// }
	final Element association = document.createElement("UML:Association");
	association.setAttribute("xmi.id", assId);
	association.setAttribute("namespace", "model1");
	if (link.getLabel() != null) {
		association.setAttribute("name", forXMI(link.getLabel()));
	}

	final Element connection = document.createElement("UML:Association.connection");
	final Element end1 = document.createElement("UML:AssociationEnd");
	end1.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end1.setAttribute("association", assId);
	end1.setAttribute("type", link.getEntity1().getUid());
	if (link.getQualifier1() != null) {
		end1.setAttribute("name", forXMI(link.getQualifier1()));
	}
	final Element endparticipant1 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity1())) {
	// endparticipant1.appendChild(createEntityNodeRef(link.getEntity1()));
	// } else {
	// endparticipant1.appendChild(createEntityNode(link.getEntity1()));
	// done.add(link.getEntity1());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	// if (link.getType().getDecor2() == LinkDecor.COMPOSITION) {
	// end1.setAttribute("aggregation", "composite");
	// }
	// if (link.getType().getDecor2() == LinkDecor.AGREGATION) {
	// end1.setAttribute("aggregation", "aggregate");
	// }
	// }
	end1.appendChild(endparticipant1);
	connection.appendChild(end1);

	final Element end2 = document.createElement("UML:AssociationEnd");
	end2.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end2.setAttribute("association", assId);
	end2.setAttribute("type", link.getEntity2().getUid());
	if (link.getQualifier2() != null) {
		end2.setAttribute("name", forXMI(link.getQualifier2()));
	}
	final Element endparticipant2 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity2())) {
	// endparticipant2.appendChild(createEntityNodeRef(link.getEntity2()));
	// } else {
	// endparticipant2.appendChild(createEntityNode(link.getEntity2()));
	// done.add(link.getEntity2());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	// if (link.getType().getDecor1() == LinkDecor.COMPOSITION) {
	// end2.setAttribute("aggregation", "composite");
	// }
	// if (link.getType().getDecor1() == LinkDecor.AGREGATION) {
	// end2.setAttribute("aggregation", "aggregate");
	// }
	// }
	end2.appendChild(endparticipant2);
	connection.appendChild(end2);

	association.appendChild(connection);

	ownedElement.appendChild(association);

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:73,代码来源:XmiClassDiagramStandard.java

示例3: addLink

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
private void addLink(Link link) {
	final String assId = "ass" + UniqueSequence.getValue();
	if (link.getType().getDecor1() == LinkDecor.EXTENDS || link.getType().getDecor2() == LinkDecor.EXTENDS) {
		addExtension(link, assId);
		return;
	}
	final Element association = document.createElement("UML:Association");
	association.setAttribute("xmi.id", assId);
	association.setAttribute("namespace", "model1");
	if (Display.isNull(link.getLabel()) == false) {
		association.setAttribute("name", forXMI(link.getLabel()));
	}

	final Element connection = document.createElement("UML:Association.connection");
	final Element end1 = document.createElement("UML:AssociationEnd");
	end1.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end1.setAttribute("association", assId);
	end1.setAttribute("type", link.getEntity1().getUid());
	if (link.getQualifier1() != null) {
		end1.setAttribute("name", forXMI(link.getQualifier1()));
	}
	final Element endparticipant1 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity1())) {
	// endparticipant1.appendChild(createEntityNodeRef(link.getEntity1()));
	// } else {
	// endparticipant1.appendChild(createEntityNode(link.getEntity1()));
	// done.add(link.getEntity1());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	if (link.getType().getDecor2() == LinkDecor.COMPOSITION) {
		end1.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor2() == LinkDecor.AGREGATION) {
		end1.setAttribute("aggregation", "aggregate");
	}
	// }
	end1.appendChild(endparticipant1);
	connection.appendChild(end1);

	final Element end2 = document.createElement("UML:AssociationEnd");
	end2.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end2.setAttribute("association", assId);
	end2.setAttribute("type", link.getEntity2().getUid());
	if (link.getQualifier2() != null) {
		end2.setAttribute("name", forXMI(link.getQualifier2()));
	}
	final Element endparticipant2 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity2())) {
	// endparticipant2.appendChild(createEntityNodeRef(link.getEntity2()));
	// } else {
	// endparticipant2.appendChild(createEntityNode(link.getEntity2()));
	// done.add(link.getEntity2());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	if (link.getType().getDecor1() == LinkDecor.COMPOSITION) {
		end2.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor1() == LinkDecor.AGREGATION) {
		end2.setAttribute("aggregation", "aggregate");
	}
	// }
	end2.appendChild(endparticipant2);
	connection.appendChild(end2);

	association.appendChild(connection);

	ownedElement.appendChild(association);

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:72,代码来源:XmiClassDiagramStar.java

示例4: addLink

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
private void addLink(Link link) {
	final String assId = "ass" + UniqueSequence.getValue();

	final Element association = document.createElement("UML:Association");
	association.setAttribute("xmi.id", assId);
	association.setAttribute("namespace", "model1");
	if (Display.isNull(link.getLabel()) == false) {
		association.setAttribute("name", forXMI(link.getLabel()));
	}

	final Element connection = document.createElement("UML:Association.connection");
	final Element end1 = document.createElement("UML:AssociationEnd");
	end1.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end1.setAttribute("association", assId);
	end1.setAttribute("type", link.getEntity1().getUid());
	if (link.getQualifier1() != null) {
		end1.setAttribute("name", forXMI(link.getQualifier1()));
	}
	final Element endparticipant1 = document.createElement("UML:AssociationEnd.participant");

	if (link.getType().getDecor2() == LinkDecor.COMPOSITION) {
		end1.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor2() == LinkDecor.AGREGATION) {
		end1.setAttribute("aggregation", "aggregate");
	}
	// }
	end1.appendChild(endparticipant1);
	connection.appendChild(end1);

	final Element end2 = document.createElement("UML:AssociationEnd");
	end2.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end2.setAttribute("association", assId);
	end2.setAttribute("type", link.getEntity2().getUid());
	if (link.getQualifier2() != null) {
		end2.setAttribute("name", forXMI(link.getQualifier2()));
	}
	final Element endparticipant2 = document.createElement("UML:AssociationEnd.participant");
	if (link.getType().getDecor1() == LinkDecor.COMPOSITION) {
		end2.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor1() == LinkDecor.AGREGATION) {
		end2.setAttribute("aggregation", "aggregate");
	}
	// }
	end2.appendChild(endparticipant2);
	connection.appendChild(end2);

	association.appendChild(connection);

	ownedElement.appendChild(association);

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:54,代码来源:XmiStateDiagram.java

示例5: addLink

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
private void addLink(Link link) {
		final String assId = "ass" + UniqueSequence.getValue();
//		if ((link.getType().getDecor1() == LinkDecor.EXTENDS || link.getType().getDecor2() == LinkDecor.EXTENDS)
//				&& fileFormat == FileFormat.XMI_STAR) {
//			addExtension(link, assId);
//			return;
//		}
		final Element association = document.createElement("UML:Association");
		association.setAttribute("xmi.id", assId);
		association.setAttribute("namespace", "model1");
		if (link.getLabel() != null) {
			association.setAttribute("name", forXMI(link.getLabel()));
		}

		final Element connection = document.createElement("UML:Association.connection");
		final Element end1 = document.createElement("UML:AssociationEnd");
		end1.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
		end1.setAttribute("association", assId);
		end1.setAttribute("type", link.getEntity1().getUid());
		if (link.getQualifier1() != null) {
			end1.setAttribute("name", forXMI(link.getQualifier1()));
		}
		final Element endparticipant1 = document.createElement("UML:AssociationEnd.participant");
		// if (fileFormat == FileFormat.XMI_ARGO) {
			if (done.contains(link.getEntity1())) {
				endparticipant1.appendChild(createEntityNodeRef(link.getEntity1()));
			} else {
				endparticipant1.appendChild(createEntityNode(link.getEntity1()));
				done.add(link.getEntity1());
			}
//		} else if (fileFormat == FileFormat.XMI_STAR) {
//			if (link.getType().getDecor2() == LinkDecor.COMPOSITION) {
//				end1.setAttribute("aggregation", "composite");
//			}
//			if (link.getType().getDecor2() == LinkDecor.AGREGATION) {
//				end1.setAttribute("aggregation", "aggregate");
//			}
//		}
		end1.appendChild(endparticipant1);
		connection.appendChild(end1);

		final Element end2 = document.createElement("UML:AssociationEnd");
		end2.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
		end2.setAttribute("association", assId);
		end2.setAttribute("type", link.getEntity2().getUid());
		if (link.getQualifier2() != null) {
			end2.setAttribute("name", forXMI(link.getQualifier2()));
		}
		final Element endparticipant2 = document.createElement("UML:AssociationEnd.participant");
		// if (fileFormat == FileFormat.XMI_ARGO) {
			if (done.contains(link.getEntity2())) {
				endparticipant2.appendChild(createEntityNodeRef(link.getEntity2()));
			} else {
				endparticipant2.appendChild(createEntityNode(link.getEntity2()));
				done.add(link.getEntity2());
			}
		// } else if (fileFormat == FileFormat.XMI_STAR) {
		// if (link.getType().getDecor1() == LinkDecor.COMPOSITION) {
		// end2.setAttribute("aggregation", "composite");
		// }
		// if (link.getType().getDecor1() == LinkDecor.AGREGATION) {
		// end2.setAttribute("aggregation", "aggregate");
		// }
		// }
		end2.appendChild(endparticipant2);
		connection.appendChild(end2);

		association.appendChild(connection);

		ownedElement.appendChild(association);

	}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:73,代码来源:XmiClassDiagramArgo.java

示例6: addLink

import net.sourceforge.plantuml.cucadiagram.Link; //导入方法依赖的package包/类
private void addLink(Link link) {
	final String assId = "ass" + UniqueSequence.getValue();
	if (link.getType().getDecor1() == LinkDecor.EXTENDS || link.getType().getDecor2() == LinkDecor.EXTENDS) {
		addExtension(link, assId);
		return;
	}
	final Element association = document.createElement("UML:Association");
	association.setAttribute("xmi.id", assId);
	association.setAttribute("namespace", "model1");
	if (link.getLabel() != null) {
		association.setAttribute("name", forXMI(link.getLabel()));
	}

	final Element connection = document.createElement("UML:Association.connection");
	final Element end1 = document.createElement("UML:AssociationEnd");
	end1.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end1.setAttribute("association", assId);
	end1.setAttribute("type", link.getEntity1().getUid());
	if (link.getQualifier1() != null) {
		end1.setAttribute("name", forXMI(link.getQualifier1()));
	}
	final Element endparticipant1 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity1())) {
	// endparticipant1.appendChild(createEntityNodeRef(link.getEntity1()));
	// } else {
	// endparticipant1.appendChild(createEntityNode(link.getEntity1()));
	// done.add(link.getEntity1());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	if (link.getType().getDecor2() == LinkDecor.COMPOSITION) {
		end1.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor2() == LinkDecor.AGREGATION) {
		end1.setAttribute("aggregation", "aggregate");
	}
	// }
	end1.appendChild(endparticipant1);
	connection.appendChild(end1);

	final Element end2 = document.createElement("UML:AssociationEnd");
	end2.setAttribute("xmi.id", "end" + UniqueSequence.getValue());
	end2.setAttribute("association", assId);
	end2.setAttribute("type", link.getEntity2().getUid());
	if (link.getQualifier2() != null) {
		end2.setAttribute("name", forXMI(link.getQualifier2()));
	}
	final Element endparticipant2 = document.createElement("UML:AssociationEnd.participant");
	// if (fileFormat == FileFormat.XMI_ARGO) {
	// if (done.contains(link.getEntity2())) {
	// endparticipant2.appendChild(createEntityNodeRef(link.getEntity2()));
	// } else {
	// endparticipant2.appendChild(createEntityNode(link.getEntity2()));
	// done.add(link.getEntity2());
	// }
	// } else if (fileFormat == FileFormat.XMI_STAR) {
	if (link.getType().getDecor1() == LinkDecor.COMPOSITION) {
		end2.setAttribute("aggregation", "composite");
	}
	if (link.getType().getDecor1() == LinkDecor.AGREGATION) {
		end2.setAttribute("aggregation", "aggregate");
	}
	// }
	end2.appendChild(endparticipant2);
	connection.appendChild(end2);

	association.appendChild(connection);

	ownedElement.appendChild(association);

}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:72,代码来源:XmiClassDiagramStar.java


注:本文中的net.sourceforge.plantuml.cucadiagram.Link.getQualifier1方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。