Package org.andromda.cartridges.ejb.metafacades

Examples of org.andromda.cartridges.ejb.metafacades.EJBEntityFacadeLogicImpl


        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof EJBSessionFacadeLogicImpl )
        {
            EJBSessionFacadeLogicImpl type = ( EJBSessionFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBSessionFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }

        return sb.toString();
    }
View Full Code Here


        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );

            }
            else
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof EJBSessionFacadeLogicImpl )
        {
            EJBSessionFacadeLogicImpl type = ( EJBSessionFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBSessionFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );

            }
            else
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );
            }
            else
            {
                sb.append( type.getName() );             
            }
        }

        return sb.toString();
    }
View Full Code Here

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

            if (type2.eIsProxy())
            {
                isProxy = true;
            }
        }
        else if ( object instanceof EJBSessionFacadeLogicImpl )
        {
            EJBSessionFacadeLogicImpl type = ( EJBSessionFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBSessionFacadeLogicImpl ) object).getMetaObject() ;

            if (type2.eIsProxy())
            {
                isProxy = true;
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                isProxy = true;
            }
View Full Code Here

        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }

        return sb.toString();
    }
View Full Code Here

        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );

            }
            else
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );
            }
            else
            {
                sb.append( type.getName() );             
            }
        }

        return sb.toString();
    }
View Full Code Here

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

            if (type2.eIsProxy())
            {
                isProxy = true;
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                isProxy = true;
            }
View Full Code Here

        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }

        return sb.toString();
    }
View Full Code Here

        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );

            }
            else
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String className = proxyURI.fragment().substring( proxyURI.fragment().lastIndexOf( '/' ) + 1 );            

                sb.append( className );
            }
            else
            {
                sb.append( type.getName() );             
            }
        }

        return sb.toString();
    }
View Full Code Here

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

            if (type2.eIsProxy())
            {
                isProxy = true;
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                isProxy = true;
            }
View Full Code Here

        StringBuffer sb = new StringBuffer("");

        if ( object instanceof EJBEntityFacadeLogicImpl )
        {
            EJBEntityFacadeLogicImpl type = ( EJBEntityFacadeLogicImpl ) object;
            org.eclipse.uml2.impl.ClassImpl type2 =
                (org.eclipse.uml2.impl.ClassImpl)(( EJBEntityFacadeLogicImpl ) object).getMetaObject() ;
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
            org.eclipse.uml2.impl.ClassImpl type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
           
            if (type2.eIsProxy())
            {
                URI proxyURI = type2.eProxyURI();
               
                String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
                String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf("." ))+1 ).replace('/', '.' );
                sb.append( packageName );

            }
            else
            {
                sb.append( type.getPackageName() );
            }
        }

        return sb.toString();
    }
View Full Code Here

TOP

Related Classes of org.andromda.cartridges.ejb.metafacades.EJBEntityFacadeLogicImpl

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.