Examples of IMetaRepresentation


Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

        }
       
    }

    public void testImports() {
        IMetaRepresentation rep = MetaRepresentation.getInstance();
       
        List<IModelItem> elements = rep.getAmModel().getItems();

        IModelItem importsALot = null;
        for (IModelItem item : elements) {
            if (item.getIdentifier().equals("ImportsALot")){
                importsALot = item;
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

        assertEquals("java.util.List", importsALot.getImports().get(1));
    }
   
    public void testExtends() {
      
        IMetaRepresentation rep = MetaRepresentation.getInstance();
        List<IModelItem> elements = rep.getAmModel().getItems();
       
        IModelItem extendsALot = null;
        for (IModelItem item : elements) {
            if (item.getIdentifier().equals("IExtendALot")){
                extendsALot = item;
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

        }
       
    }
   
    public void testImplements() {
        IMetaRepresentation rep = MetaRepresentation.getInstance();
        List<IModelItem> elements = rep.getAmModel().getItems();
       
        IModelItem implementsALot = null;
        for (IModelItem item : elements) {
            if (item.getIdentifier().equals("ImplementsALot")){
                implementsALot = item;
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

*/
public class AllDifferencesFromOutside {

    public List<IDifference> getDifferences() {
        List<IDifference> results = new ArrayList<IDifference>();
        IMetaRepresentation rep = MetaRepresentation.getInstance();

        IModel am = rep.getAmModel();
        IModel dm = rep.getDmModel();

        List<IModelItem> amItems = am.getItems();
        List<IModelItem> dmItems = dm.getItems();

        // entering the comparision
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

     * Well that doesn't matter, as other checks get a fresh instance of their
     * superclass (this one). There is only a problem, if you execute this check
     * over and over again.
     */
    protected void reduceProblemSpaceToInterfaces() {
        IMetaRepresentation metaRepresentation = MetaRepresentation
                .getInstance();
       
        amModelElements = new ArrayList<IModelElement>();
        List<IModelItem> amModelItems = metaRepresentation
                .getModelItems(Model.Type.AM);

        dmModelElements = new ArrayList<IModelElement>();
        List<IModelItem> dmModelItems = metaRepresentation
                .getModelItems(Model.Type.DM);

        /** reducing problem space to interfaces only */
        // get the interfaces from the architect's model
        for (IModelItem item : amModelItems) {
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

            }
        }
    }

    protected void initLists() {
        IMetaRepresentation metaRepresentation = MetaRepresentation
                .getInstance();

        List<IModelItem> amModelItems = metaRepresentation
                .getModelItems(Model.Type.AM);

        List<IModelItem> dmModelItems = metaRepresentation
                .getModelItems(Model.Type.DM);

        for (IModelItem item : amModelItems) {
            amModelElements.add((IModelElement) item);
        }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

     * @see de.dlr.sistec.modi.checks.ICheck#check(java.util.List)
     */
    public List<IDifference> check(List<IDifference> currentDifferences) {
        List<IDifference> results = new ArrayList<IDifference>();
       
        IMetaRepresentation rep = MetaRepresentation.getInstance();
        IModel amModel = rep.getAmModel();
        IModel dmModel = rep.getDmModel();

        checkStarImports(amModel, amModel.getItems(), results);
        checkStarImports(dmModel, dmModel.getItems(), results);
       
        return results;
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

     * @see de.dlr.sistec.modi.checks.ICheck#check(java.util.List)
     */
    public List<IDifference> check(List<IDifference> currentDifferences) {
        List<IDifference> results = new ArrayList<IDifference>();
       
        IMetaRepresentation rep = MetaRepresentation.getInstance();
        IModel amModel = rep.getAmModel();
        IModel dmModel = rep.getDmModel();

        checkStarImports(amModel, amModel.getItems(), results);
        checkStarImports(dmModel, dmModel.getItems(), results);
       
        return results;
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

*/
public class AllDifferencesFromOutside {

    public List<IDifference> getDifferences() {
        List<IDifference> results = new ArrayList<IDifference>();
        IMetaRepresentation rep = MetaRepresentation.getInstance();

        IModel am = rep.getAmModel();
        IModel dm = rep.getDmModel();

        List<IModelItem> amItems = am.getItems();
        List<IModelItem> dmItems = dm.getItems();

        // entering the comparision
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IMetaRepresentation

     * Well that doesn't matter, as other checks get a fresh instance of their
     * superclass (this one). There is only a problem, if you execute this check
     * over and over again.
     */
    protected void reduceProblemSpaceToInterfaces() {
        IMetaRepresentation metaRepresentation = MetaRepresentation
                .getInstance();
       
        amModelElements = new ArrayList<IModelElement>();
        List<IModelItem> amModelItems = metaRepresentation
                .getModelItems(Model.Type.AM);

        dmModelElements = new ArrayList<IModelElement>();
        List<IModelItem> dmModelItems = metaRepresentation
                .getModelItems(Model.Type.DM);

        /** reducing problem space to interfaces only */
        // get the interfaces from the architect's model
        for (IModelItem item : amModelItems) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.