Examples of ClassifierFacade


Examples of org.andromda.metafacades.uml.ClassifierFacade

    /**
     * @see org.andromda.cartridges.jsf.metafacades.JSFAttribute#getDateFormatter(org.andromda.cartridges.jsf.metafacades.JSFParameter)
     */
    protected String handleGetDateFormatter(final JSFParameter ownerParameter)
    {
        final ClassifierFacade type = this.getType();
        return type != null && type.isDateType() ? this.getFormPropertyId(ownerParameter) + "DateFormatter" : null;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

    /**
     * @see org.andromda.cartridges.jsf.metafacades.JSFAttribute#getTimeFormatter(org.andromda.cartridges.jsf.metafacades.JSFParameter)
     */
    protected String handleGetTimeFormatter(final JSFParameter ownerParameter)
    {
        final ClassifierFacade type = this.getType();
        return type != null && type.isTimeType() ? this.getFormPropertyId(ownerParameter) + "TimeFormatter" : null;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

    public String getDefaultValue()
    {
        String defaultValue = super.getDefaultValue();
        if (StringUtils.isNotBlank(defaultValue))
        {
            final ClassifierFacade type = this.getType();
            if (type != null && type.isStringType())
            {
                defaultValue = "\"" + defaultValue + "\"";
            }
        }
        return defaultValue;
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

        if (ownerParameter != null)
        {
            if (ownerParameter.isActionParameter())
            {
                required = this.isInputTable();
                final ClassifierFacade type = this.getType();

                if (!required && type != null)
                {
                    final String name = this.getName();
                    final String typeName = type.getFullyQualifiedName();

                    // - if the parameter is not selectable but on a targetting page it IS selectable we must
                    //   allow the user to set the backing list too                
                    final Collection views = ownerParameter.getAction().getTargetViews();
                    for (final Iterator iterator = views.iterator(); iterator.hasNext() && !required;)
                    {
                        final FrontEndView view = (FrontEndView)iterator.next();
                        final Collection parameters = view.getAllActionParameters();
                        for (final Iterator parameterIterator = parameters.iterator();
                            parameterIterator.hasNext() && !required;)
                        {
                            final Object object = parameterIterator.next();
                            if (object instanceof JSFParameter)
                            {
                                final JSFParameter parameter = (JSFParameter)object;
                                final String parameterName = parameter.getName();
                                final ClassifierFacade parameterType = parameter.getType();
                                if (parameterType != null)
                                {
                                    final String parameterTypeName = parameterType.getFullyQualifiedName();
                                    if (name.equals(parameterName) && typeName.equals(parameterTypeName))
                                    {
                                        required = parameter.isInputTable();
                                    }
                                }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

     * @see org.andromda.cartridges.jsf.metafacades.JSFAttribute#isInputTypePresent()
     */
    protected boolean handleIsInputTypePresent()
    {
        boolean present = false;
        final ClassifierFacade type = this.getType();
        if (type != null)
        {
            present =
                (StringUtils.isNotBlank(this.getInputType()) || type.isDateType() || type.isBooleanType()) &&
                !this.isPlaintext();
        }
        return present;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

    {
        ParameterFacade foundParameter = null;
        for (final Iterator iterator = this.getParameters().iterator(); iterator.hasNext();)
        {
            final ParameterFacade parameter = (ParameterFacade)iterator.next();
            final ClassifierFacade type = parameter.getType();
            if (type != null && type.hasStereotype(UMLProfile.STEREOTYPE_CRITERIA))
            {
                foundParameter = parameter;
                break;
            }
        }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

                {
                    final Iterator iterator = arguments.iterator();
                    for (int ctr = 0; iterator.hasNext(); ctr++)
                    {
                        ParameterFacade argument = (ParameterFacade)iterator.next();
                        final ClassifierFacade type = argument.getType();
                        if (type != null)
                        {
                            final String parameterName = argument.getName();
                            if (type != null && type.isEmbeddedValue())
                            {
                                for (final Iterator attributeIterator = type.getAttributes(true).iterator(); attributeIterator.hasNext();)
                                {
                                    final AttributeFacade attribute = (AttributeFacade)attributeIterator.next();
                                    String parameter = "?";
                                    if (this.isUseNamedParameters())
                                    {
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

                    {
                        break;
                    }
                    else if (parameter.isComplex())
                    {
                        final ClassifierFacade type = parameter.getType();
                        final Collection attributes = type.getAttributes(true);
                        for (final Iterator attributeIterator = attributes.iterator(); attributeIterator.hasNext();)
                        {
                            final Object attribute = attributeIterator.next();
                            if (attribute instanceof JSFAttribute)
                            {
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

                {
                    boolean valid = false;
                    Object targetElement = ((DependencyFacade)object).getTargetElement();
                    if (targetElement instanceof ClassifierFacade)
                    {
                        ClassifierFacade element = (ClassifierFacade)targetElement;
                        valid = element.isDataType() || element instanceof ValueObject || element instanceof EnumerationFacade;
                    }
                    return valid;
                }
            };
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.ClassifierFacade

    public String getDefaultValue()
    {
        String defaultValue = super.getDefaultValue();
        if (StringUtils.isNotBlank(defaultValue))
        {
            final ClassifierFacade type = this.getType();
            if (type != null && type.isStringType())
            {
                defaultValue = "\"" + defaultValue + "\"";
            }
        }
        return defaultValue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.