Package org.apache.beehive.netui.compiler.model

Examples of org.apache.beehive.netui.compiler.model.FormBeanModel$Property


            // if not indicated assume not flow scoped when adding a new bean
            boolean isFlowScoped = false;
            if (usesPageFlowScopedFormBean != null) {
                isFlowScoped = usesPageFlowScopedFormBean.booleanValue();
            }
            FormBeanModel formBeanModel = addNewFormBean(formType, isFlowScoped);
            formBeans = new ArrayList();
            formBeans.add(formBeanModel);
        }
       
        assert formBeans.size() > 0;
View Full Code Here


    {
        String actualTypeName = CompilerUtils.getLoadableName( formType );
        String formClass = CompilerUtils.getFormClassName( formType, _env );
        String name = getFormNameForType( actualTypeName, usesFlowScopedFormBean );
        String key = getMessageResourcesFromFormType( formType );
        FormBeanModel fb = new FormBeanModel(name, formClass, actualTypeName, usesFlowScopedFormBean, key, this);
        addFormBean( fb );
        return fb;
    }
View Full Code Here

        paramType = CompilerUtils.getGenericBoundsType( paramType );
        assert paramType instanceof DeclaredType : paramType.getClass().getName()// checker should enforce this
        TypeDeclaration decl = CompilerUtils.getDeclaration( ( DeclaredType ) paramType );
        List formBeans = parentApp.getMatchingFormBeans(decl, Boolean.valueOf(getFormMember() != null));
        assert formBeans.size() > 0;
        FormBeanModel formBeanModel = (FormBeanModel) formBeans.get(0);
        setFormBeanMessageResourcesKey(formBeanModel.getFormBeanMessageResourcesKey());
       
        //
        // If this isn't an ActionForm-derived argument, keep track of the classname for the runtime.
        //
        if ( ! CompilerUtils.isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, decl, parentApp.getEnv() ) )
        {
            setFormClass( CompilerUtils.getLoadableName( decl ) );
        }
       
        return formBeanModel.getName();
    }
View Full Code Here

        List formBeans = _strutsApp.getMatchingFormBeans(beanType, null);
        List formBeanNames = new ArrayList();

        for ( Iterator i = formBeans.iterator(); i.hasNext(); )
        {
            FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
            formBeanNames.add( formBeanModel.getName() );
        }

        return formBeanNames;
    }
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.PROPERTY: {
            Property property = (Property) theEObject;
            T result = caseProperty(property);
            if (result == null)
                result = caseItemAwareElement(property);
            if (result == null)
                result = caseBaseElement(property);
View Full Code Here

                    MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                    true);
            if (modelElement instanceof Type)
            {
                Type element = (Type)modelElement;
                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
                VisibilityKind kind = VisibilityKind.PUBLIC_LITERAL;
                if (visibility.equalsIgnoreCase("package"))
                {
                    kind = VisibilityKind.PACKAGE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("private"))
                {
                    kind = VisibilityKind.PRIVATE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("protected"))
                {
                    kind = VisibilityKind.PROTECTED_LITERAL;
                }
                property.setVisibility(kind);
                Stereotype stereotype =
                    UmlUtilities.findApplicableStereotype(
                        property,
                        UMLProfile.STEREOTYPE_IDENTIFIER);
                if (stereotype == null)
                {
                    throw new MetafacadeException("Could not apply '" + UMLProfile.STEREOTYPE_IDENTIFIER + "' to " +
                        property + ", the stereotype could not be found");
                }
                property.apply(stereotype);
            }
        }
    }
View Full Code Here

    public boolean equals(final Object obj)
    {
        if (obj instanceof Attribute)
        {
            Property other = ((AttributeImpl)obj).property;
            return this.property.equals(other);
        }
        if (obj instanceof AssociationEnd)
        {
            Property other = ((AssociationEndImpl)obj).property;
            return this.property.equals(other);
        }
        return this.property.equals(obj);
    }
View Full Code Here

        for (final Iterator memberIterator = members.iterator(); memberIterator.hasNext();)
        {
            final Object nextCandidate = memberIterator.next();
            if (nextCandidate instanceof Property)
            {
                final Property property = (Property)nextCandidate;

                if (property.getAssociation() == null)
                {
                    if (logger.isDebugEnabled())
                    {
                        logger.debug("Attribute found for " + classifier.getName() + ": " + property.getName());
                        if (attributeMap.containsKey(property.getName()))
                        {
                            logger.warn(
                                "An attribute with this name has already been registered, overriding: " +
                                property.getName());
                        }
                    }

                    // property represents an association end
                    attributeMap.put(
                        property.getName(),
                        property);
                }
            }
        }
View Full Code Here

                Property.class,
                classifier.getModel());

        for (final Iterator propertyIterator = allProperties.iterator(); propertyIterator.hasNext();)
        {
            final Property property = (Property)propertyIterator.next();

            // only treat association ends, ignore attributes
            if (property.getAssociation() != null && isAssociationEndAttachedToType(
                    classifier,
                    property,
                    follow))
            {
                associationEnds.add(property);
View Full Code Here

            {
                for (Iterator tvIt = getAttributes(
                            stereo,
                            true).iterator(); tvIt.hasNext();)
                {
                    Property tagProperty = (Property)tvIt.next();
                    String tagName = tagProperty.getName();
                    if (!tagName.startsWith("base$"))
                    {
                        if (element.hasValue(
                                stereo,
                                tagName))
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.model.FormBeanModel$Property

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.