namespace = defaultNamespace;
}
}
final QName qname = new QName(namespace, name + postfix);
final XmlSchemaElement el = schemas.getElementByQName(qname);
XmlSchemaType type = null;
if (el != null) {
type = el.getSchemaType();
}
if (type == null) {
type = schemas.getTypeByQName(getTypeQName(origCls, namespace));
if (type == null) {
type = schemas.getTypeByQName(qname);
}
}
if (type == null) {
type = mapToSchemaType(origCls, namespace);
/*
if (type == null) {
type = mapToSchemaType(cls, namespace);
}
*/
}
if (el == null && type == null) {
return null;
}
final QName typeName = type == null ? null : type.getQName();
JAXBBeanInfo bi = new JAXBBeanInfo() {
public boolean isElement() {
return el == null ? false : true;
}