Package org.andromda.metafacades.emf.uml2

Examples of org.andromda.metafacades.emf.uml2.AssociationEndImpl


                sb.append( _getFQCN( type, (( EJBAssociationEndFacadeLogicImpl ) object ).isMany() ) );
            }
        }
        else if ( object instanceof AssociationEndFacadeLogicImpl )
        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          if ( type.isNavigable() )
          {
              AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
              org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

              if (type2.eIsProxy())
              {
                  // Proxy AssosiationEnd's must be StereoType Entity
                  URI proxyURI = type2.eProxyURI();
                 
                  String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            
                  String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                  String packageName = fragment.substring(fragment.lastIndexOf( '/' ) + 1 );

                  sb.append( packageName ).append( ".common." );
                  sb.append( className ).append( "TO" );
              }
              else
              {
                  ClassifierFacade classifierFacade = type.getType();
                  ClassifierFacade superClass = getSuperClass(classifierFacade);
                  if ( superClass != null )
                  {
                      classifierFacade = superClass;
                  }
                  sb.append( _getFQCN( classifierFacade, type.isMany() ) );
              }
          }
        }
        else
        {
View Full Code Here


                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof AssociationEndFacade )
        {
            AssociationEndFacadeLogicImpl assosiation = ( AssociationEndFacadeLogicImpl ) object;

            if ( assosiation.isNavigable() )
            {
                AssociationEndImpl metaObject = ( AssociationEndImpl ) assosiation.getMetaObject();
                type2 = ( org.eclipse.uml2.impl.ClassImpl ) metaObject.getType();

                if ( !type2.eIsProxy() )
                {
                    ClassifierFacade type = assosiation.getType();
                    sb.append( type.getPackageName() );             
                }
            }
        }
       
View Full Code Here

                sb.append( type.getName() );
            }
        }
        else if ( object instanceof AssociationEndFacade )
        {
            AssociationEndFacadeLogicImpl assosiation = ( AssociationEndFacadeLogicImpl ) object;

            if ( assosiation.isNavigable() )
            {
                AssociationEndImpl metaObject = ( AssociationEndImpl ) assosiation.getMetaObject();
                type2 = ( org.eclipse.uml2.impl.ClassImpl ) metaObject.getType();

                if ( !type2.eIsProxy() )
                {
                    ClassifierFacade type = assosiation.getType();
                    sb.append( type.getName() );             
                }
            }
        }
View Full Code Here

    {
        boolean isProxy = false;
       
        if ( object instanceof AssociationEndFacadeLogicImpl )
        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
          org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

          isProxy = type2.eIsProxy();
        }
       
View Full Code Here

                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof AssociationEndFacade )
        {
            AssociationEndFacadeLogicImpl assosiation = ( AssociationEndFacadeLogicImpl ) object;

            if ( assosiation.isNavigable() )
            {
                AssociationEndImpl metaObject = ( AssociationEndImpl ) assosiation.getMetaObject();
                type2 = ( org.eclipse.uml2.impl.ClassImpl ) metaObject.getType();

                if ( !type2.eIsProxy() )
                {
                    ClassifierFacade type = assosiation.getType();
                    sb.append( type.getPackageName() );             
                }
            }
        }
       
View Full Code Here

                sb.append( type.getName() );
            }
        }
        else if ( object instanceof AssociationEndFacade )
        {
            AssociationEndFacadeLogicImpl assosiation = ( AssociationEndFacadeLogicImpl ) object;

            if ( assosiation.isNavigable() )
            {
                AssociationEndImpl metaObject = ( AssociationEndImpl ) assosiation.getMetaObject();
                type2 = ( org.eclipse.uml2.impl.ClassImpl ) metaObject.getType();

                if ( !type2.eIsProxy() )
                {
                    ClassifierFacade type = assosiation.getType();
                    sb.append( type.getName() );             
                }
            }
        }
View Full Code Here

    {
        boolean isProxy = false;
       
        if ( object instanceof AssociationEndFacadeLogicImpl )
        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
          org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

          isProxy = type2.eIsProxy();
        }
       
View Full Code Here

                }
            }
        }
        else if ( object instanceof AssociationEndFacadeLogicImpl )
        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          if ( type.isNavigable() )
          {
              AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
              org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

              if (type2.eIsProxy())
              {
                  // Proxy AssosiationEnd's must be StereoType Entity
                  URI proxyURI = type2.eProxyURI();
                 
                  String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            
                  String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                  String packageName = fragment.substring(fragment.lastIndexOf( '/' ) + 1 );

                  sb.append( packageName ).append( ".common." );
                  sb.append( className ).append( "TO" );
              }
              else
              {
                  ClassifierFacade classifierFacade = type.getType();
                  sb.append( _getFQCN( classifierFacade, type.isMany() ) );
              }
          }
        }
        else
        {
View Full Code Here

                sb.append( _getFQCN( type, (( EJBAssociationEndFacadeLogicImpl ) object ).isMany() ) );
            }
        }
        else if ( object instanceof AssociationEndFacadeLogicImpl )
        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          if ( type.isNavigable() )
          {
              AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
              org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

              if (type2.eIsProxy())
              {
                  // Proxy AssosiationEnd's must be StereoType Entity
                  URI proxyURI = type2.eProxyURI();
                 
                  String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            
                  String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                  String packageName = fragment.substring(fragment.lastIndexOf( '/' ) + 1 );

                  sb.append( packageName ).append( ".common." );
                  sb.append( className ).append( "TO" );
              }
              else
              {
                  ClassifierFacade classifierFacade = type.getType();
                  ClassifierFacade superClass = getSuperClass(classifierFacade);
                  if ( superClass != null )
                  {
                      classifierFacade = superClass;
                  }
                  sb.append( _getFQCN( classifierFacade, type.isMany() ) );
              }
          }
        }
        else
        {
View Full Code Here

        {
          AssociationEndFacadeLogicImpl type = (AssociationEndFacadeLogicImpl) object;
         
          if ( type.isNavigable() )
          {
              AssociationEndImpl metaObject = ( AssociationEndImpl ) type.getMetaObject();
              org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)metaObject.getType();

              if (type2.eIsProxy())
              {
                  // Proxy AssosiationEnd's must be StereoType Entity
                  URI proxyURI = type2.eProxyURI();
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.emf.uml2.AssociationEndImpl

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.