Package net.sf.jmd.metarepresentation

Examples of net.sf.jmd.metarepresentation.IModelItem


    }


    public IModel transform(List<File> modelFileList) throws MoDiException {
        IModel result = new Model();
        IModelItem item = null;

        IParser joda = new JavaParser();
        ITreeWalker luke = new ASTtoMetaRepresentationTransformer();
       
        for (File file : modelFileList) {
View Full Code Here


    public boolean equals(final Object obj) {
        boolean result = false;
        if (!(obj instanceof ModelItem)) {
            return false;
        }
        IModelItem otherModelItem = (IModelItem) obj;

        boolean identifiersEqual = this.getIdentifier().equals(otherModelItem
                .getIdentifier());
       
        boolean typesEqual = this.type.equals(otherModelItem.getType());

        // Lists
        boolean modifiersContainsEqual = this.modifiers
                .containsAll(otherModelItem.getModifiers());
        boolean modifiersSizeEqual = (this.modifiers.size() == otherModelItem
                .getModifiers().size());
        boolean modifiersEqual = (modifiersContainsEqual && modifiersSizeEqual);

        boolean extendeesContainsEqual = this.extendees
                .containsAll(otherModelItem.getExtendees());
        boolean extendeesSizeEqual = (this.extendees.size() == otherModelItem
                .getExtendees().size());
        boolean extendeesEqual = (extendeesContainsEqual && extendeesSizeEqual);

        boolean membersContainsEqual = this.members.equals(otherModelItem
                .getMembers());
        boolean membersSizeEqual = (this.members.size() == otherModelItem
                .getMembers().size());
        boolean membersEqual = (membersContainsEqual && membersSizeEqual);

        result = (identifiersEqual && typesEqual && modifiersEqual
                && extendeesEqual && membersEqual);
View Full Code Here

            int type = tmp.getType();
            switch (type) { // switch over the interesting types, ignoring the
            // rest.

            case GeneratedJavaTokenTypes.IDENT:
                IModelItem superclass = new ModelItem();
                superclass.setName(tmp.getText());
                modelItem.addExtendee(superclass);
                break;

            default:
                break;
View Full Code Here

    }


    public IModel transform(List<File> modelFileList) throws MoDiException {
        IModel result = new Model();
        IModelItem item = null;

        IParser joda = new JavaParser();
        ITreeWalker luke = new ASTtoMetaRepresentationTransformer();
       
        for (File file : modelFileList) {
View Full Code Here

TOP

Related Classes of net.sf.jmd.metarepresentation.IModelItem

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.