Package org.jboss.xb.annotations

Examples of org.jboss.xb.annotations.JBossXmlChild


/* 1060 */     JBossXmlChildren jbossXmlChildren = (JBossXmlChildren)typeInfo.getUnderlyingAnnotation(JBossXmlChildren.class);
/* 1061 */     if (jbossXmlChildren != null) {
/* 1062 */       children = jbossXmlChildren.value();
/*      */     }
/*      */     else {
/* 1065 */       JBossXmlChild jbossXmlChild = (JBossXmlChild)typeInfo.getUnderlyingAnnotation(JBossXmlChild.class);
/* 1066 */       if (jbossXmlChild != null) {
/* 1067 */         children = new JBossXmlChild[] { jbossXmlChild };
/*      */       }
/*      */     }
/* 1070 */     if ((children != null) && (children.length > 0))
View Full Code Here


/* 1670 */           propertyHandler = new CollectionPropertyHandler(property, propertyType);
/* 1671 */           ClassInfo typeArg = (ClassInfo)findComponentType(property);
/*      */
/* 1674 */           if ((typeArg != null) && (typeArg.getUnderlyingAnnotation(JBossXmlModelGroup.class) == null))
/*      */           {
/* 1678 */             JBossXmlChild xmlChild = (JBossXmlChild)((ClassInfo)propertyType).getUnderlyingAnnotation(JBossXmlChild.class);
/* 1679 */             if ((xmlChild == null) && (localPropertyType.equals(propertyType)))
/*      */             {
/* 1681 */               localPropertyType = typeArg;
/*      */             }
/*      */
View Full Code Here

      JBossXmlChildren jbossXmlChildren = typeInfo.getUnderlyingAnnotation(JBossXmlChildren.class);
      if (jbossXmlChildren != null)
         children = jbossXmlChildren.value();
      else
      {
         JBossXmlChild jbossXmlChild = typeInfo.getUnderlyingAnnotation(JBossXmlChild.class);
         if (jbossXmlChild != null)
            children = new JBossXmlChild[] { jbossXmlChild };
      }

      if (children != null && children.length > 0)
View Full Code Here

               // here we get the comp type based on the non-overriden property type...
               // which feels like a weak point
               TypeInfo typeArg = ((ClassInfo)property.getType()).getComponentType();
               if (typeArg != null)
               {
                  JBossXmlChild xmlChild = ((ClassInfo) propertyType).getUnderlyingAnnotation(JBossXmlChild.class);
                  if (xmlChild == null && localPropertyType.equals(propertyType))
                  {  // the localPropertyType was not overriden previously so use the collection parameter type
                     localPropertyType = typeArg;
                  }
               }
View Full Code Here

TOP

Related Classes of org.jboss.xb.annotations.JBossXmlChild

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.