org.eclipse.uml2.uml.Operation.getType()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中org.eclipse.uml2.uml.Operation.getType()方法的一些代码示例,展示了Operation.getType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.getType()方法的具体详情如下:
包路径:org.eclipse.uml2.uml.Operation
类名称:Operation
方法名:getType

Operation.getType介绍

[英]Returns the value of the 'Type' reference. This information is derived from the return result for this Operation. Specifies the return result of the operation, if present.
[中]返回“Type”引用的值。此信息来自此操作的返回结果。指定操作的返回结果(如果存在)。

代码示例

代码示例来源:origin: org.andromda.metafacades/andromda-metafacades-emf-uml22

/**
 * @see org.andromda.metafacades.uml.OperationFacade#getReturnType()
 */
@Override
protected Type handleGetReturnType()
{
  return this.metaObject.getType();
}

代码示例来源:origin: org.andromda.bootstrap.metafacades/andromda-metafacades-emf-uml22

/**
 * @see org.andromda.metafacades.uml.OperationFacade#getReturnType()
 */
@Override
protected Type handleGetReturnType()
{
  return this.metaObject.getType();
}

代码示例来源: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: crowdcode-de/KissMDA

when(iteratorOperation.next()).thenReturn(operation);
when(operation.getName()).thenReturn("calculateMe");
when(operation.getType()).thenReturn(operationType);
when(operation.getRaisedExceptions()).thenReturn(raisedExceptions);
when(raisedExceptions.iterator()).thenReturn(iteratorException);

代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml

.setEGenericType(getEGenericType(operation.getType()));

代码示例来源:origin: org.eclipse.ocl/uml

result = (Classifier) operation.getType();

相关文章