/* 1248 */ collectionType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 1252 */ if (BeanSchemaBinding.collectionQName.equals(name))
/* 1253 */ return new AbstractCollectionMetaData();
/* 1254 */ if (BeanSchemaBinding.listQName.equals(name))
/* 1255 */ return new AbstractListMetaData();
/* 1256 */ if (BeanSchemaBinding.setQName.equals(name))
/* 1257 */ return new AbstractSetMetaData();
/* 1258 */ if (BeanSchemaBinding.arrayQName.equals(name)) {
/* 1259 */ return new AbstractArrayMetaData();
/* */ }
/* 1261 */ throw new IllegalArgumentException("Unknown collection qname=" + name);
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 1266 */ AbstractCollectionMetaData collection = (AbstractCollectionMetaData)o;
/* 1267 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 1269 */ String localName = attrs.getLocalName(i);
/* 1270 */ if ("class".equals(localName))
/* 1271 */ collection.setType(attrs.getValue(i));
/* 1272 */ else if ("elementClass".equals(localName))
/* 1273 */ collection.setElementType(attrs.getValue(i));
/* */ }
/* */ }
/* */ });
/* 1278 */ configureValueBindings(collectionType);
/* */ }