/* 1124 */ log.trace("Wildcard " + wildcardProperty.getName() + " is a collection of type " + type.getName());
/* */ }
/* */ }
/* 1127 */ XmlAnyElement xmlAnyElement = (XmlAnyElement)wildcardProperty.getUnderlyingAnnotation(XmlAnyElement.class);
/* 1128 */ boolean isLax = xmlAnyElement == null ? true : xmlAnyElement.lax();
/* 1129 */ WildcardBinding wildcard = new WildcardBinding(this.schemaBinding);
/* 1130 */ if (isLax)
/* 1131 */ wildcard.setProcessContents(3);
/* */ else {
/* 1133 */ wildcard.setProcessContents(1);
/* */ }
/* */
/* 1136 */ if (Element.class.getName().equals(type.getName()))
/* */ {
/* 1138 */ wildcard.setUnresolvedElementHandler(DOMHandler.INSTANCE);
/* 1139 */ wildcard.setUnresolvedCharactersHandler(DOMHandler.INSTANCE);
/* */ }
/* */
/* 1143 */ ParticleBinding particleBinding = new ParticleBinding(wildcard);
/* 1144 */ particleBinding.setMinOccurs(0);
/* 1145 */ particleBinding.setMaxOccurs(1);
/* 1146 */ localModel.addParticle(particleBinding);
/* 1147 */ typeBinding.getWildcard().setWildcardHandler((ParticleHandler)wildcardHandler);
/* 1148 */ beanAdapterFactory.setWildcardHandler(wildcardHandler);
/* */ }
/* */
/* 1151 */ JBossXmlChildWildcard childWildcard = (JBossXmlChildWildcard)typeInfo.getUnderlyingAnnotation(JBossXmlChildWildcard.class);
/* 1152 */ if (childWildcard != null)
/* */ {
/* 1154 */ if (beanAdapterFactory.getWildcardHandler() != null) {
/* 1155 */ throw new RuntimeException("Cannot have both @JBossXmlChildWildcard and @XmlAnyElement");
/* */ }
/* 1157 */ ParticleHandler childWildcardHandler = null;
/* 1158 */ if (typeInfo.isCollection())
/* */ {
/* 1160 */ if (childWildcard.wrapper() != Object.class)
/* */ {
/* 1162 */ BeanInfo wrapperInfo = JBossXBBuilder.configuration.getBeanInfo(childWildcard.wrapper());
/* 1163 */ childWildcardHandler = new ChildCollectionWildcardHandler(wrapperInfo, childWildcard.property());
/* */ }
/* */ else {
/* 1166 */ childWildcardHandler = ChildCollectionWildcardHandler.SINGLETON;
/* */ }
/* */ }
/* 1169 */ else throw new UnsupportedOperationException("TODO");
/* */
/* 1171 */ WildcardBinding wildcard = new WildcardBinding(this.schemaBinding);
/* 1172 */ if (childWildcard.lax())
/* 1173 */ wildcard.setProcessContents(3);
/* */ else {
/* 1175 */ wildcard.setProcessContents(1);
/* */ }
/* 1177 */ ParticleBinding particleBinding = new ParticleBinding(wildcard);
/* 1178 */ particleBinding.setMinOccurs(0);
/* 1179 */ particleBinding.setMaxOccurs(1);
/* 1180 */ model.addParticle(particleBinding);