Package nexj.core.meta

Examples of nexj.core.meta.PropertyInitializer


            }

            Method method = component.getPropertyMethod(sName, bCollection);
            final Class type = method.getParameterTypes()[0];
            final PropertyParser parser = findPropertyParser(type);
            final PropertyInitializer initializer;

            if (parser == null)
            {
               // Assuming a component
View Full Code Here


   {
      m_writer.startElement(sElementName);

      for (Iterator itr = component.getPropertyInitializerIterator(); itr.hasNext();)
      {
         PropertyInitializer initializer = (PropertyInitializer)itr.next();

         if (sInitializerName != null && !sInitializerName.equals(initializer.getName()))
         {
            continue;
         }

         boolean bCollection = initializer.isCollection();

         if (bCollection)
         {
            m_writer.openElement("Collection");
         }
         else
         {
            m_writer.openElement("Property");
         }

         m_writer.writeAttribute("name", initializer.getName());
         m_writer.closeElement();

         if (bCollection)
         {
            Iterator valueItr = (initializer instanceof ComponentCollectionPropertyInitializer) ? ((ComponentCollectionPropertyInitializer)initializer).getComponentIterator() :
View Full Code Here

TOP

Related Classes of nexj.core.meta.PropertyInitializer

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.