/* 119 */ Object t = this.seed.getRawType();
/* */
/* 122 */ XmlJavaTypeAdapter xjta = getApplicableAdapter(t);
/* 123 */ if (xjta != null) {
/* 124 */ this.isCollection = false;
/* 125 */ this.adapter = new Adapter(xjta, reader(), nav());
/* */ }
/* */ else
/* */ {
/* 129 */ this.isCollection = ((nav().isSubClassOf(t, nav().ref(Collection.class))) || (nav().isArrayButNotByteArray(t)));
/* */
/* 132 */ xjta = getApplicableAdapter(getIndividualType());
/* 133 */ if (xjta == null)
/* */ {
/* 135 */ XmlAttachmentRef xsa = (XmlAttachmentRef)this.seed.readAnnotation(XmlAttachmentRef.class);
/* 136 */ if (xsa != null) {
/* 137 */ parent.builder.hasSwaRef = true;
/* 138 */ this.adapter = new Adapter(nav().asDecl(SwaRefAdapter.class), nav());
/* */ } else {
/* 140 */ this.adapter = null;
/* */
/* 144 */ xjta = (XmlJavaTypeAdapter)this.seed.readAnnotation(XmlJavaTypeAdapter.class);
/* 145 */ if (xjta != null) {
/* 146 */ Object adapter = reader().getClassValue(xjta, "value");
/* 147 */ parent.builder.reportError(new IllegalAnnotationException(Messages.UNMATCHABLE_ADAPTER.format(new Object[] { nav().getTypeName(adapter), nav().getTypeName(t) }), xjta));
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */ else
/* */ {
/* 155 */ this.adapter = new Adapter(xjta, reader(), nav());
/* */ }
/* */ }
/* */
/* 159 */ this.id = calcId();
/* 160 */ this.schemaType = Util.calcSchemaType(reader(), this.seed, parent.clazz, getIndividualType(), this);