Package org.jboss.xb.builder.runtime

Examples of org.jboss.xb.builder.runtime.PropertyInterceptor


               // Expect a type with a value property to accept the child value
               PropertyInfo property = beanInfo.getProperty("value");
               if (property == null)
                  throw new UnsupportedOperationException("Expected a value property for non-collection type with JBossXmlChildren");
               TypeInfo propertyType = property.getType();
               interceptor = new PropertyInterceptor(property, propertyType);
            }
            typeBinding.pushInterceptor(qName, interceptor);
            if (trace)
               log.trace("Added interceptor " + qName + " for type=" + childType + " interceptor=" + interceptor);
         }
View Full Code Here


                  // Bind it to the model
                  particle = new ParticleBinding(childBinding, child.minOccurs(), child.maxOccurs(), child.unbounded());
                  particle.setMinOccurs(0);
                  childModel.addParticle(particle);

                  DefaultElementInterceptor interceptor = new PropertyInterceptor(property, propertyType);
                  elementTypeBinding.pushInterceptor(childName, interceptor);
                  if (trace)
                     log.trace("Added interceptor " + childName + " for type=" + property.getBeanInfo().getName()
                           + " property=" + property.getName() + " interceptor=" + interceptor);
View Full Code Here

/*      */         {
/* 1090 */           PropertyInfo property = beanInfo.getProperty("value");
/* 1091 */           if (property == null)
/* 1092 */             throw new UnsupportedOperationException("Expected a value property for non-collection type with JBossXmlChildren");
/* 1093 */           TypeInfo propertyType = property.getType();
/* 1094 */           interceptor = new PropertyInterceptor(property, propertyType);
/*      */         }
/* 1096 */         typeBinding.pushInterceptor(qName, interceptor);
/* 1097 */         if (this.trace) {
/* 1098 */           log.trace("Added interceptor " + qName + " for type=" + childType + " interceptor=" + interceptor);
/*      */         }
View Full Code Here

/*      */
/* 1608 */             particle = new ParticleBinding(childBinding, child.minOccurs(), child.maxOccurs(), child.unbounded());
/* 1609 */             particle.setMinOccurs(0);
/* 1610 */             childModel.addParticle(particle);
/*      */
/* 1612 */             DefaultElementInterceptor interceptor = new PropertyInterceptor(property, propertyType);
/* 1613 */             elementTypeBinding.pushInterceptor(childName, interceptor);
/* 1614 */             if (this.trace) {
/* 1615 */               log.trace("Added interceptor " + childName + " for type=" + property.getBeanInfo().getName() + " property=" + property.getName() + " interceptor=" + interceptor);
/*      */             }
/*      */
View Full Code Here

TOP

Related Classes of org.jboss.xb.builder.runtime.PropertyInterceptor

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.