Package net.sf.jmd.metarepresentation.impl

Examples of net.sf.jmd.metarepresentation.impl.ModelItem


    public Difference() {
        this.name = "";
        this.description = "";
        this.layer = Layer.UNDEFINED;
        this.status = Status.UNDEFINED;
        this.amElement = new ModelItem();
        this.dmElement = new ModelItem();
        this.parentElement = new ModelItem();
        this.subDifferences = new ArrayList<IDifference>();
    }
View Full Code Here


    protected void setUp() throws Exception {
        super.setUp();

        // an AM with an interface and a member in it
        // member: "public void aMember();"
        voidTypeAM = new ModelItem();
        voidTypeAM.setName("void");
       
        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");

        amMember = new Operation();
        amMember.addModifier("public");
        amMember.setType(voidTypeAM);
        amMember.setNamespace(amModelItem.getIdentifier());
        amMember.setName("aMember");

        amModelItem.addMember(amMember);

        // the DM with an interface and a member
        voidTypeDM = new ModelItem();
        voidTypeDM.setName("void");
       
        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");

        dmMember = new Operation();
        dmMember.addModifier("public");
View Full Code Here

        architectsModel.setType(Model.Type.AM);
       
        developersModel = new Model();
        developersModel.setType(Model.Type.DM);
       
        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AddedInterface");

        developersModel.addModelItem(dmModelItem);
       
View Full Code Here

        architectsModel.setType(Model.Type.AM);

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);

        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AddedInterface");

        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AddedInterface");

        architectsModel.addModelItem(amModelItem);
        developersModel.addModelItem(dmModelItem);
View Full Code Here

    /**
     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");

        architectsModel = new Model();
        architectsModel.setType(Model.Type.AM);
        architectsModel.addModelItem(amModelItem);

        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);
View Full Code Here

               
    }
   
    private void setUpAM() {
       
        amInterface = new ModelItem();
        amInterface.setName("AnInterface");
        amInterface.setType("interface");
       
        IMember amMethod =  new Operation();
        amMethod.setName("myMethod");
View Full Code Here

   
    private void setUpDM() {
        List<String> modifiers = new ArrayList<String>();
        modifiers.add("public");
        //set up an interface
        dmInterface = new ModelItem();
        dmInterface.setName("AnInterface");
        dmInterface.setType("interface");
       
        IMember dmMethod =  new Operation();
        dmMethod.setName("myMethod");
        dmInterface.addMember(dmMethod);
       
        //set up a implementing class
        dmClass = new ModelItem();
        dmClass.setName("MyClass");
        dmClass.setType("class");
        dmClass.addExtendee(dmInterface);//MyClass implements AnInterface
       
        IMember dmClassMethod =  new Operation();
View Full Code Here

        architectsModel.setType(Model.Type.AM);

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);

        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");

        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");

        developersModel.addModelItem(dmModelItem);
        architectsModel.addModelItem(amModelItem);
View Full Code Here

        architectsModel.setType(Model.Type.AM);

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);

        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("RemovedInterface");

        architectsModel.addModelItem(amModelItem);
View Full Code Here

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        //an AM with an interface and a member in it
        voidTypeAM = new ModelItem();
        voidTypeAM.setName("void");
       
        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");
        amModelItem.addMember(amMember);
       
        amMember = new Operation();
        amMember.addModifier("public");
        amMember.addModifier("static");
        amMember.setType(voidTypeAM);
        amMember.setName("aMember");
        amMember.setNamespace(amModelItem.getIdentifier());

        architectsModel = new Model();
        architectsModel.setType(Model.Type.AM);
        architectsModel.addModelItem(amModelItem);

       
        //the DM with an interface and a member
        voidTypeDM = new ModelItem();
        voidTypeDM.setName("void");
       
        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");
        dmModelItem.addMember(dmMember);

        dmMember = new Operation();
View Full Code Here

TOP

Related Classes of net.sf.jmd.metarepresentation.impl.ModelItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.