Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.AttributeFacade


    {
        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


        boolean multipartFormPost = false;

        final Collection formFields = this.getManageableAttributes();
        for (final Iterator fieldIterator = formFields.iterator(); !multipartFormPost && fieldIterator.hasNext();)
        {
            final AttributeFacade field = (AttributeFacade)fieldIterator.next();
            if (field.getType().isFileType())
            {
                multipartFormPost = true;
            }
        }
View Full Code Here

            {
                final ModelElementFacade property = (ModelElementFacade)iterator.next();
                MethodData method = null;
                if (property instanceof AttributeFacade)
                {
                    final AttributeFacade attribute = (AttributeFacade)property;
                    method =
                        new MethodData(
                            fullyQualifiedName,
                            methodVisibility,
                            false,
                            attribute.getGetterSetterTypeName(),
                            attribute.getGetterName(),
                            attribute.getDocumentation(indendation));
                }
                else
                {
                    final AssociationEndFacade association = (AssociationEndFacade)property;
                    method =
View Full Code Here

            {
                final Entity type = (Entity)this.getType();
                final Collection identifiers = type.getIdentifiers();
                if (identifiers != null && !identifiers.isEmpty())
                {
                    AttributeFacade attribute = (AttributeFacade)identifiers.iterator().next();
                    if (attribute instanceof EntityAttribute)
                    {
                        identifier = (EntityAttribute)attribute;
                    }
                }
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd#getManageableIdentifier()
     */
    protected Object handleGetManageableIdentifier()
    {
        AttributeFacade manageableIdentifier = null;

        final ClassifierFacade classifierFacade = this.getType();
        if (classifierFacade instanceof ManageableEntity)
        {
            final ManageableEntity entity = (ManageableEntity)classifierFacade;
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd#getManageableIdentifier()
     */
    protected Object handleGetManageableIdentifier()
    {
        AttributeFacade manageableIdentifier = null;

        final ClassifierFacade classifierFacade = this.getType();
        if (classifierFacade instanceof ManageableEntity)
        {
            final ManageableEntity entity = (ManageableEntity)classifierFacade;
View Full Code Here

                    }
                }
            }
            else if (element instanceof AttributeFacade)
            {
                final AttributeFacade attribute = (AttributeFacade)element;
                final ClassifierFacade owner = attribute.getOwner();
                if (owner != null)
                {
                    equalParameter = owner.findAttribute(equal);
                }           
            }
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 = type.getStaticAttributes();
       
        for ( Iterator iterator = staticAttributes.iterator(); iterator.hasNext(); )
        {
            AttributeFacade object = ( AttributeFacade ) iterator.next();
           
            if ( object.hasStereotype( "TypesafeEnumConstant" ) )
            {
                valueType = object.getType();
                break;
            }
        }
       
        return valueType;
View Full Code Here

     * @return the attribute used as primary key, or <code>null</code> if there is none or the class has a complex
     *         primary key.
     */
    private AttributeFacade getSimplePkField()
    {
        AttributeFacade primaryKey = null;
        Collection primaryKeys = ((EJBEntityFacade)this.getOwner()).getIdentifiers();
        if (primaryKeys.size() == 1)
        {
            AttributeFacade pkField = (AttributeFacade)primaryKeys.iterator().next();
            if (pkField.hasStereotype(EJBProfile.STEREOTYPE_IDENTIFIER))
            {
                primaryKey = pkField;
            }
        }
        return primaryKey;
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.