Rational Software Architect 8에서 기본값이 아닌 속성 유형 선택 8

StackOverflow https://stackoverflow.com/questions/5497429

  •  14-11-2019
  •  | 
  •  

문제

클래스 다이어그램에서 속성의 유형을 선택하려고 할 때 RSA 8은 "유형 요소 유형"팝업 상자에서만 기본 유형의 Java 및 UML을 선택하는 옵션을 제공합니다.그러나 Log4j와 같은 다른 항아리뿐만 아니라 프리미티브가 아닌 Java 유형을 선택하고 싶습니다.어떻게해야합니까?

도움이 되었습니까?

해결책

If you have the source containing the types (classes) you wish to use you could:

  • Create a Java project containing those classes
  • Create a new UML project (to contain the UML version of those classes)
  • Apply the modelLibrary stereotype to the model (select the model, and click Apply Stereotypes... on the Stereotypes tab)
  • Create a new transformation configuration (Java to UML), and transform the Java source into UML (with the Java package as the source, and UML model as the target)

Then back in your original UML model (the one where you want to add the types)

  • Right-click on your UML model , and import the UML model project you just created as a model library (Import Model Library...->Library in Workspace)
  • When you select a type for an attribute, you should now be able to search and use the types in the Java project!

When you transform your UML model to Java, it should generate with the correct types and import statements, so you'll just have to ensure those classes on the the build path.

다른 팁

You can not manipulate jar classes with RSA 8.

I reversed jar files with EclipseUML Omondo : http://www.ejb3.org/jar_file_reverse/jar_file_reverse.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top