Package org.jboss.xb.binding.group

Examples of org.jboss.xb.binding.group.ValueListInitializer


            term.getMapEntryMetaData() == null &&
            term.getPutMethodMetaData() == null)
      {
         ValueListHandler handler = ValueListHandler.FACTORY.lazy(item.o);
         Class<?> cls = item.o.getClass();
         item.repeatableParticleValue = new ValueListInitializer().newValueList(handler, cls);
      }
   }
View Full Code Here


            term.getMapEntryMetaData() == null &&
            term.getPutMethodMetaData() == null)
      {
         ValueListHandler handler = ValueListHandler.FACTORY.lazy(item.o);
         Class<?> cls = item.o.getClass();
         item.repeatableParticleValue = new ValueListInitializer().newValueList(handler, cls);
      }
   }
View Full Code Here

            term.getMapEntryMetaData() == null &&
            term.getPutMethodMetaData() == null)
      {
         ValueListHandler handler = ValueListHandler.FACTORY.lazy(item.o);
         Class cls = item.o.getClass();
         item.repeatableParticleValue = new ValueListInitializer().newValueList(handler, cls);
      }
   }
View Full Code Here

            term.getMapEntryMetaData() == null &&
            term.getPutMethodMetaData() == null)
      {
         ValueListHandler handler = ValueListHandler.FACTORY.lazy(item.o);
         Class cls = item.o.getClass();
         item.repeatableParticleValue = new ValueListInitializer().newValueList(handler, cls);
      }
   }
View Full Code Here

               }
               else if (Collection.class.isAssignableFrom(fieldType))
               {
                  if (wrapperType == null)
                  {
                     return new ValueListInitializer().newValueList(ValueListHandler.FACTORY.child(), Collection.class);
                     //o = new ArrayList();
                  }
               }
               else
               {
View Full Code Here

               Constructor ctor = cls.getConstructor(null);
               o = ctor.newInstance(null);
            }
            catch(NoSuchMethodException e)
            {
               o = new ValueListInitializer().newValueList(ValueListHandler.NON_DEFAULT_CTOR, cls);
            }
            catch(Exception e)
            {
               throw new JBossXBRuntimeException("Failed to create an instance of " +
                  cls +
                  " using default constructor for element " +
                  elementName + ": " + e.getMessage(), e
               );
            }
         }
         else if(ctors.length > 1 || ctors[0].getParameterTypes().length > 0)
         {
            o = new ValueListInitializer().newValueList(ValueListHandler.NON_DEFAULT_CTOR, cls);
         }
         else
         {
            try
            {
View Full Code Here

/*  787 */     StackItem item = this.stack.peek();
/*  788 */     if ((item.o != null) && (!(item.o instanceof GenericValueContainer)) && (!(item.o instanceof Collection)) && (term.getAddMethodMetaData() == null) && (term.getMapEntryMetaData() == null) && (term.getPutMethodMetaData() == null))
/*      */     {
/*  795 */       ValueListHandler handler = ValueListHandler.FACTORY.lazy(item.o);
/*  796 */       Class cls = item.o.getClass();
/*  797 */       item.repeatableParticleValue = new ValueListInitializer().newValueList(handler, cls);
/*      */     }
/*      */   }
View Full Code Here

/*      */           }
/*  538 */           if (Collection.class.isAssignableFrom(fieldType))
/*      */           {
/*  540 */             if (wrapperType == null)
/*      */             {
/*  542 */               return new ValueListInitializer().newValueList(ValueListHandler.FACTORY.child(), Collection.class);
/*      */             }
/*      */
/*      */           }
/*      */           else
/*      */           {
View Full Code Here

/*  970 */           Constructor ctor = cls.getConstructor(null);
/*  971 */           o = ctor.newInstance(null);
/*      */         }
/*      */         catch (NoSuchMethodException e)
/*      */         {
/*  975 */           o = new ValueListInitializer().newValueList(ValueListHandler.NON_DEFAULT_CTOR, cls);
/*      */         }
/*      */         catch (Exception e)
/*      */         {
/*  979 */           throw new JBossXBRuntimeException("Failed to create an instance of " + cls + " using default constructor for element " + elementName + ": " + e.getMessage(), e);
/*      */         }
/*      */
/*      */       }
/*  986 */       else if ((ctors.length > 1) || (ctors[0].getParameterTypes().length > 0))
/*      */       {
/*  988 */         o = new ValueListInitializer().newValueList(ValueListHandler.NON_DEFAULT_CTOR, cls);
/*      */       }
/*      */       else
/*      */       {
/*      */         try
/*      */         {
View Full Code Here

               }
               else if (Collection.class.isAssignableFrom(fieldType))
               {
                  if (wrapperType == null)
                  {
                     return new ValueListInitializer().newValueList(ValueListHandler.FACTORY.child(), Collection.class);
                     //o = new ArrayList();
                  }
               }
               else
               {
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.group.ValueListInitializer

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.