• 大小: 9.56MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-08
  • 语言: 其他
  • 标签:

资源简介

系统设计常需要一个小巧的 UML 绘图工具,这个是我把网上的资源进行整合后的一个免费汉化版JUDE UML工具,很好用的。

资源截图

代码片段和文件信息

import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import com.change_vision.jude.api.inf.exception.LicenseNotFoundException;
import com.change_vision.jude.api.inf.exception.NonCompatibleException;
import com.change_vision.jude.api.inf.exception.ProjectNotFoundException;
import com.change_vision.jude.api.inf.exception.ProjectLockedException;
import com.change_vision.jude.api.inf.model.IAttribute;
import com.change_vision.jude.api.inf.model.IClass;
import com.change_vision.jude.api.inf.model.IConstraint;
import com.change_vision.jude.api.inf.model.IElement;
import com.change_vision.jude.api.inf.model.IGeneralization;
import com.change_vision.jude.api.inf.model.IModel;
import com.change_vision.jude.api.inf.model.INamedElement;
import com.change_vision.jude.api.inf.model.IOperation;
import com.change_vision.jude.api.inf.model.IPackage;
import com.change_vision.jude.api.inf.model.IParameter;
import com.change_vision.jude.api.inf.model.IRealization;
import com.change_vision.jude.api.inf.project.ProjectAccessor;
import com.change_vision.jude.api.inf.project.ProjectAccessorFactory;

/**
 * Class to build class definition from selected project.
 */
public class ClassDefinitionBuilder {

    private static final String EMPTY_COLUMN = ““;

    private String inputFile;
    
    /**
     * @param inputFile
     *            File to input
     */
    public ClassDefinitionBuilder(String inputFile) {
        this.inputFile = inputFile;
    }

    /**
     * Get class information.
     * 
     * @return Class information (String List stored in the List)
     * @throws LicenseNotFoundException
     *             License cannot be found 
     * @throws ProjectNotFoundException
     *             Project cannot be found
     * @throws NonCompatibleException
     *             Old Model Version (The version of API is older than the version of JUDE that the project has been last edited with)
     * @throws ClassNotFoundException
     *             Cannot read some models
     * @throws IOException
     *             Input/Output error
     * @throws ProjectLockedException
     *             Project file has been locked
     */
    public List getContents() throws LicenseNotFoundException ProjectNotFoundException
            NonCompatibleException IOException ClassNotFoundException ProjectLockedException Throwable {

        ProjectAccessor prjAccessor = ProjectAccessorFactory.getProjectAccessor();
        prjAccessor.open(inputFile);
        IModel iModel = prjAccessor.getProject();

        List contents = new ArrayList();
        contents.add(getHeader());

        List iPackages = getAllPackages(iModel);

        for (Iterator iter = iPackages.iterator(); iter.hasNext();) {
            IPackage iPackage = (IPackage)iter.next();
            contents.addAll(getClassInfos(iPackage));
        }

        prjAccessor.close();

      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      13153  2007-05-17 11:38  JUDE-Community\api\doc\ActivityDgmAPI.jude

     文件       3286  2007-05-17 11:42  JUDE-Community\api\doc\activityDgmJavaDoc\allclasses-frame.html

     文件       2946  2007-05-17 11:42  JUDE-Community\api\doc\activityDgmJavaDoc\allclasses-noframe.html

     文件        780  2007-05-17 11:42  JUDE-Community\api\doc\activityDgmJavaDoc\alldiagrams-frame.html

     文件        760  2007-05-17 11:42  JUDE-Community\api\doc\activityDgmJavaDoc\alldiagrams-noframe.html

     文件       2224  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\activity diagram interface.html

     文件      20576  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\activity diagram interface.png

     文件      13345  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IAction.html

     文件      14701  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IActivity.html

     文件      14307  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IActivityDiagram.html

     文件      14371  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IActivityNode.html

     文件      16318  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IControlNode.html

     文件      13625  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IDependency.html

     文件      12800  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IDiagram.html

     文件      12278  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IElement.html

     文件      15178  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IFlow.html

     文件      13255  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IInteractionOperand.html

     文件       7631  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IModel.html

     文件      19102  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\INamedElement.html

     文件      14095  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IobjectNode.html

     文件      14496  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\IPartition.html

     文件       2775  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\package-frame.html

     文件       9938  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\package-summary.html

     文件       9173  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\package-tree.html

     文件       1960  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IAction.html

     文件       3758  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IActivity.html

     文件       1860  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IActivityDiagram.html

     文件       5635  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IActivityNode.html

     文件       2395  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IControlNode.html

     文件       3389  2007-05-17 11:44  JUDE-Community\api\doc\activityDgmJavaDoc\com\change_vision\jude\api\inf\model\uml-IDependency.html

............此处省略562个文件信息

评论

共有 条评论

相关资源