Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.AttributeFacade


                }
            }
        }
        else if ( object instanceof AttributeFacade )
        {
            AttributeFacade attribute = (AttributeFacade) object;
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) attribute.getType();
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( "datatype".equals( type.getPackageName() ) )
                {
View Full Code Here


                }
            }
        }
        else if ( object instanceof AttributeFacade )
        {
            AttributeFacade attribute = (AttributeFacade) object;
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) attribute.getType();
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( "datatype".equals( type.getPackageName() ) )
                {
View Full Code Here

        }

        // No PK dependency found - try a PK attribute
        if (super.getIdentifiers() != null && !super.getIdentifiers().isEmpty())
        {
            AttributeFacade attr = (AttributeFacade)super.getIdentifiers().iterator().next();
            identifiers.add(attr);
            return identifiers;
        }

        // Still nothing found - recurse up the inheritance tree
View Full Code Here

    {
        Collection collIdentifier = this.getIdentifiers(true);
        Iterator it = collIdentifier.iterator();
        while (it.hasNext())
        {
            AttributeFacade attr = (AttributeFacade)it.next();
            if (attr.getName().equalsIgnoreCase(identifier))
            {
                return true;
            }
        }
        return false;
View Full Code Here

    {
        Collection collAttrib = this.getAttributes(true);
        Iterator it = collAttrib.iterator();
        while (it.hasNext())
        {
            AttributeFacade attr = (AttributeFacade)it.next();
            if (attr.getName().equalsIgnoreCase(strAttr))
            {
                return true;
            }
        }
        return false;
View Full Code Here

            Collection staticAttributes = classifier.getStaticAttributes();

            for ( Iterator iterator = staticAttributes.iterator(); iterator
                    .hasNext(); )
            {
                AttributeFacade staticAttr = ( AttributeFacade ) iterator
                        .next();

                if ( JIVALO_COMPLEX_TYPE.equals( staticAttr.getName() ) )
                {
                    complexType = staticAttr.getDefaultValue();
                }
            }
        }
       
        return complexType;
View Full Code Here

            Collection staticAttributes = classifier.getStaticAttributes();

            for ( Iterator iterator = staticAttributes.iterator(); iterator
                    .hasNext(); )
            {
                AttributeFacade staticAttr = ( AttributeFacade ) iterator
                        .next();

                if ( JIVALO_COMPLEX_TYPE.equals( staticAttr.getName() ) )
                {
                    complexType = staticAttr.getDefaultValue();
                }
            }
        }
       
        return complexType;
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.uml.AttributeFacade

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.