本文整理了Java中org.eclipse.uml2.uml.Operation.getUpper()
方法的一些代码示例,展示了Operation.getUpper()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.getUpper()
方法的具体详情如下:
包路径:org.eclipse.uml2.uml.Operation
类名称:Operation
方法名:getUpper
[英]Returns the value of the 'Upper' attribute. The default value is "1"
. This information is derived from the return result for this Operation. Specifies the upper multiplicity of the return parameter, if present.
[中]返回“Upper”属性的值。默认值为[$0$]。此信息来自此操作的返回结果。指定返回参数的上限多重性(如果存在)。
代码示例来源:origin: org.andromda.metafacades/andromda-metafacades-emf-uml22
/**
* Get the UML upper multiplicity Not implemented for UML1.4
* @return multiplicity upperBound
*/
@Override
protected int handleGetUpper()
{
// MD11.5 Exports multiplicity as String
return this.metaObject.getUpper();
//return UmlUtilities.parseMultiplicity(this.metaObject.getUpper(), 1);
}
代码示例来源:origin: org.andromda.bootstrap.metafacades/andromda-metafacades-emf-uml22
/**
* Get the UML upper multiplicity Not implemented for UML1.4
* @return multiplicity upperBound
*/
@Override
protected int handleGetUpper()
{
// MD11.5 Exports multiplicity as String
return this.metaObject.getUpper();
//return UmlUtilities.parseMultiplicity(this.metaObject.getUpper(), 1);
}
代码示例来源:origin: org.eclipse.ocl/uml
public boolean isMany(Object metaElement) {
if (metaElement instanceof MultiplicityElement) {
return ((MultiplicityElement) metaElement).isMultivalued();
} else if (metaElement instanceof Operation) {
int upper = ((Operation) metaElement).getUpper();
return (upper > 1) || (upper < 0);
}
return false;
}
代码示例来源:origin: crowdcode-de/KissMDA
private void generateMethodReturnType(AST ast, TypeDeclaration td,
Operation operation, MethodDeclaration md) {
Type type = operation.getType();
String umlTypeName = type.getName();
String umlQualifiedTypeName = type.getQualifiedName();
logger.log(Level.FINE, "UmlQualifiedTypeName: " + umlQualifiedTypeName
+ " - " + "umlTypeName: " + umlTypeName);
if (operation.getUpper() >= 0) {
// Upper Cardinality 0..1
// Only for parameterized type
if (dataTypeUtils.isParameterizedType(umlTypeName)) {
Map<String, String> types = umlHelper
.checkParameterizedTypeForTemplateParameterSubstitution(type);
umlTypeName = types.get("umlTypeName");
umlQualifiedTypeName = types.get("umlQualifiedTypeName");
}
jdtHelper.createReturnType(ast, td, md, umlTypeName,
umlQualifiedTypeName, sourceDirectoryPackageName);
} else {
// Upper Cardinality 0..*
generateAssociationEndUpperCardinalityMultiples(ast, td, operation,
md, umlTypeName, umlQualifiedTypeName);
}
}
代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml
.setEGenericType(getEGenericType(operation.getType()));
int upper = operation.getUpper();
代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml
&& upperBound != operation.getUpper()) {
内容来源于网络,如有侵权,请联系作者删除!