Coverage Report - org.argouml.model.euml.CollaborationsFactoryEUMLImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
CollaborationsFactoryEUMLImpl
0%
0/29
0%
0/2
1.1
 
 1  
 // $Id: CollaborationsFactoryEUMLImpl.java 18222 2010-04-08 23:15:35Z tfmorris $
 2  
 /*******************************************************************************
 3  
  * Copyright (c) 2007,2010 Tom Morris and other contributors
 4  
  * All rights reserved. This program and the accompanying materials
 5  
  * are made available under the terms of the Eclipse Public License v1.0
 6  
  * which accompanies this distribution, and is available at
 7  
  * http://www.eclipse.org/legal/epl-v10.html
 8  
  *
 9  
  * Contributors:
 10  
  *    Tom Morris - initial API and implementation
 11  
  *******************************************************************************/
 12  
 package org.argouml.model.euml;
 13  
 
 14  
 import org.argouml.model.AbstractModelFactory;
 15  
 import org.argouml.model.CollaborationsFactory;
 16  
 import org.eclipse.uml2.uml.Classifier;
 17  
 import org.eclipse.uml2.uml.Collaboration;
 18  
 import org.eclipse.uml2.uml.Element;
 19  
 import org.eclipse.uml2.uml.Interaction;
 20  
 import org.eclipse.uml2.uml.Message;
 21  
 import org.eclipse.uml2.uml.UMLFactory;
 22  
 
 23  
 /**
 24  
  * Eclipse UML2 implementation of CollaborationsFactory.
 25  
  */
 26  0
 class CollaborationsFactoryEUMLImpl implements CollaborationsFactory,
 27  
         AbstractModelFactory {
 28  
 
 29  
     /**
 30  
      * The model implementation.
 31  
      */
 32  
     private EUMLModelImplementation modelImpl;
 33  
 
 34  
     /**
 35  
      * Constructor.
 36  
      *
 37  
      * @param implementation The ModelImplementation.
 38  
      */
 39  0
     public CollaborationsFactoryEUMLImpl(EUMLModelImplementation implementation) {
 40  0
         modelImpl = implementation;
 41  0
     }
 42  
 
 43  
     public Object buildActivator(Object owner, Object interaction) {
 44  
         // TODO: Auto-generated method stub
 45  0
         return null;
 46  
     }
 47  
 
 48  
     public Object buildAssociationEndRole(Object atype) {
 49  
         // TODO: Auto-generated method stub
 50  0
         return null;
 51  
     }
 52  
 
 53  
     public Object buildAssociationRole(Object from, Object to) {
 54  
         // TODO: Auto-generated method stub
 55  0
         return null;
 56  
     }
 57  
 
 58  
     @Deprecated
 59  
     public Object buildAssociationRole(Object from, Object agg1, Object to,
 60  
             Object agg2, Boolean unidirectional) {
 61  0
         if (unidirectional == null) {
 62  0
             return buildAssociationRole(from, agg1, to, agg2, false);
 63  
         } else {
 64  0
             return buildAssociationRole(from, agg1, to, agg2, 
 65  
                     unidirectional.booleanValue());
 66  
         }
 67  
     }
 68  
 
 69  
     public Object buildAssociationRole(Object from, Object agg1, Object to,
 70  
             Object agg2, boolean unidirectional) {
 71  
         // TODO: Auto-generated method stub
 72  0
         return null;
 73  
     }
 74  
 
 75  
     public Object buildAssociationRole(Object link) {
 76  
         // TODO: Auto-generated method stub
 77  0
         return null;
 78  
     }
 79  
 
 80  
     public Object buildClassifierRole(Object collaboration) {
 81  
         // TODO: Auto-generated method stub
 82  0
         return null;
 83  
     }
 84  
 
 85  
     // TODO: All build/create methods need Undo support - tfm
 86  
 
 87  
     public Collaboration buildCollaboration(Object handle) {
 88  0
         Collaboration collab = createCollaboration();
 89  0
         ((Element) handle).getOwnedElements().add(collab);
 90  0
         return collab;
 91  
     }
 92  
 
 93  
     public Collaboration buildCollaboration(Object namespace, 
 94  
             Object representedElement) {
 95  0
         Collaboration collab = buildCollaboration(namespace);
 96  0
         Classifier cls = (Classifier) representedElement;
 97  
 
 98  
         // TODO: Auto-generated method stub
 99  0
         return collab;
 100  
     }
 101  
 
 102  
     public Object buildInteraction(Object handle) {
 103  
         // TODO: Auto-generated method stub
 104  0
         return null;
 105  
     }
 106  
 
 107  
     public Message buildMessage(Object acollab, Object arole) {
 108  
         // TODO: Auto-generated method stub
 109  0
         return createMessage();
 110  
     }
 111  
 
 112  
     public Object createAssociationEndRole() {
 113  
         // TODO: Auto-generated method stub
 114  0
         return null;
 115  
     }
 116  
 
 117  
     public Object createAssociationRole() {
 118  
         // TODO: Auto-generated method stub
 119  0
         return null;
 120  
     }
 121  
 
 122  
     public Object createClassifierRole() {
 123  
         // TODO: Auto-generated method stub
 124  0
         return null;
 125  
     }
 126  
 
 127  
     public Collaboration createCollaboration() {
 128  0
         return UMLFactory.eINSTANCE.createCollaboration();
 129  
     }
 130  
 
 131  
     public Object createCollaborationInstanceSet() {
 132  
         // TODO: Auto-generated method stub
 133  0
         return null;
 134  
     }
 135  
 
 136  
     public Interaction createInteraction() {
 137  0
         return UMLFactory.eINSTANCE.createInteraction();
 138  
     }
 139  
 
 140  
     public Object createInteractionInstanceSet() {
 141  
         // TODO: Auto-generated method stub
 142  0
         return null;
 143  
     }
 144  
 
 145  
     public Message createMessage() {
 146  0
         return UMLFactory.eINSTANCE.createMessage();
 147  
     }
 148  
 
 149  
 
 150  
 }