Package org.andromda.core.common

Examples of org.andromda.core.common.Introspector


                {
                    getLogger().debug(
                        "evaluating " + propertyGroups.size() + " property groups(s) on metafacade '" + metafacade +
                        "'");
                }
                final Introspector introspector = Introspector.instance();
                for (final Iterator tterator = propertyGroups.iterator(); tterator.hasNext();)
                {
                    final MetafacadeMapping.PropertyGroup propertyGroup =
                        (MetafacadeMapping.PropertyGroup)tterator.next();
                    for (final Iterator propertyIterator = propertyGroup.getProperties().iterator();
                        propertyIterator.hasNext();)
                    {
                        final MetafacadeMapping.Property property = (MetafacadeMapping.Property)propertyIterator.next();
                        valid = introspector.containsValidProperty(
                                metafacade,
                                property.getName(),
                                property.getValue());
                        if (getLogger().isDebugEnabled())
                        {
View Full Code Here


        {
            configuration.initialize();
            this.reset();
            final Property[] properties = configuration.getProperties();
            final int propertyNumber = properties.length;
            final Introspector introspector = Introspector.instance();
            for (int ctr = 0; ctr < propertyNumber; ctr++)
            {
                final Property property = properties[ctr];
                try
                {
                    introspector.setProperty(
                        this,
                        property.getName(),
                        property.getValue());
                }
                catch (final Throwable throwable)
View Full Code Here

     */
    protected ClassifierFacade getType(Object modelElement)
    {
        try
        {
            final Introspector introspector = Introspector.instance();
            ClassifierFacade type = null;
            String typeProperty = "type";

            // only continue if the model element has a type
            if (introspector.isReadable(modelElement, typeProperty))
            {
                type = (ClassifierFacade)introspector.getProperty(modelElement, typeProperty);
            }

            // try for return type if type wasn't found
            typeProperty = "returnType";
            if (type == null && introspector.isReadable(modelElement, typeProperty))
            {
                type = (ClassifierFacade)introspector.getProperty(modelElement, typeProperty);
            }
            return type;
        }
        catch (final Throwable throwable)
        {
View Full Code Here

TOP

Related Classes of org.andromda.core.common.Introspector

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.