Package org.andromda.metafacades.emf.uml2

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


                }
            }
        }
        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


    {
        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

    {
        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

                return type.hasStereotype( "Entity" );
            }
        }
        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
                    return true;
                }
                else
                {
                    ClassifierFacade classifierFacade = type.getType();
                    return classifierFacade.hasStereotype( "Entity" );
                }
            }
        }
       
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 );
       
        if ( entityType ) {
                      sb.append( packageName ).append( ".common." );
                      sb.append( className ).append( "TO" );
        }
        else {
                      sb.append( packageName ).append( ".bc." );
                      sb.append( className );
              }
                }
                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

                }
            }
        }
        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

                }
            }
        }
        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

TOP

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

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.