Package org.andromda.core.cartridge.template

Examples of org.andromda.core.cartridge.template.Type


        final ModelElement modelElement)
    {
        boolean propertyTemplatesEvaluated = false;
        for (final Iterator types = modelElement.getTypes().iterator(); types.hasNext();)
        {
            final Type type = (Type)types.next();
            for (final Iterator properties = type.getProperties().iterator(); properties.hasNext();)
            {
                final Type.Property property = (Type.Property)properties.next();
                final String variable = property.getVariable();
                propertyTemplatesEvaluated = variable != null && variable.trim().length() > 0;
                if (propertyTemplatesEvaluated)
View Full Code Here


        assertNull(element.getStereotype());
       
        final Collection types = element.getTypes();
        assertNotNull(types);
        assertEquals(1, types.size());
        final Type type = (Type)types.iterator().next();
        final Collection properties = type.getProperties();
        assertEquals(2, properties.size());
        final Iterator propertyIterator = properties.iterator();
        Type.Property property1 = (Type.Property)propertyIterator.next();
        assertEquals("propertyOne", property1.getName());
        assertEquals("", property1.getValue());
View Full Code Here

TOP

Related Classes of org.andromda.core.cartridge.template.Type

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.