context.getReporter().report("Conversion to target no possible: "+targetclass+" "+vals, "convert error", context, context.getLocation());
/** * Initiate the bulk link calls. */ protected void handleBulkLinking(List childs, Object parent, AReadContext context, QName[] pathname, List linkdatas, int startidx) throws Exception { if(childs.size()>1) { try { bulkLinkObjects(childs, parent, ((LinkData)linkdatas.get(startidx)).getLinkinfo(), pathname, context); } catch(Exception e) { context.getReporter().report("Warning. Bulk link initiated but not successful: "+childs+" "+parent+" "+e, "warning", context, context.getLocation()); for(int i=0; i<childs.size(); i++) { linkObject(childs.get(i), parent, ((LinkData)linkdatas.get(startidx+i)).getLinkinfo(), pathname, context); } } } else { linkObject(childs.get(0), parent, ((LinkData)linkdatas.get(startidx)).getLinkinfo(), pathname, context); } }
context.getReporter().report("Could not bulk link: "+childs+" "+parent, "link error", context, context.getLocation());
context.getReporter().report("Could not link: "+object+" "+parent, "link error", context, context.getLocation());
context.getReporter().report("Anonymous class problem.", "Creation problem.", context, context.getLocation());
/** * Convert an object to another type of object. */ public Object convertContentObject(String value, QName tag, AReadContext context) throws Exception { Object ret = value; if(tag.getNamespaceURI().startsWith(SXML.PROTOCOL_TYPEINFO)) { String clazzname = tag.getNamespaceURI().substring(SXML.PROTOCOL_TYPEINFO.length())+"."+tag.getLocalPart(); Class clazz = SReflect.classForName0(clazzname, context.getClassLoader()); if(clazz!=null) { if(BasicTypeConverter.isBuiltInType(clazz)) { ret = BasicTypeConverter.getBasicStringConverter(clazz).convertString(value, context); } else { ret = null; context.getReporter().report("No converter known for: "+clazz, "content error", context, context.getLocation()); } } } return ret; }
context.getReporter().report("Failure in parsing attribute: "+xmlattrname+" of object "+object+": "+e, "attribute error", context, context.getLocation()); if(!set) context.getReporter().report("Failure in setting attribute: "+xmlattrname+" on object: "+object+" (unknown attribute?)", "attribute error", context, context.getLocation()); if(!set) context.getReporter().report("Failure in setting attribute: "+xmlattrname+" on object: "+object+" (unknown attribute?)", "attribute error", context, context.getLocation());
context.getReporter().report("Read method should have one parameter: "+bai+" "+m, "attribute error", context, context.getLocation()); context.getReporter().report("Unknown store help: "+sh, "attribute error", context, context.getLocation());
context.getReporter().report("Unknown key help: "+kh, "attribute error", context, context.getLocation()); context.getReporter().report("Unknown map store help: "+sh, "attribute error", context, context.getLocation()); context.getReporter().report("Read method should have one parameter: "+bai+" "+m, "attribute error", context, context.getLocation()); context.getReporter().report("Unknown store help: "+sh, "attribute error", context, context.getLocation());
((AReadContext)context).getReporter().report("Type not found: "+typename, null, null, null);
context.getReporter().report("Unknown attribute info: "+attrinfo, "attribute error", context, se.getLocation()); context.getReporter().report(e.toString(), "attribute error", context, se.getLocation()); context.getReporter().report("Unhandled attribute: "+object+", "+xmlattrname+", "+attrpath, "unhandled attribute", context, se.getLocation());
context.getReporter().report("Unknown attribute info: "+attrinfo, "attribute error", context, se.getLocation()); context.getReporter().report(e.toString(), "attribute error", context, se.getLocation()); context.getReporter().report("Unhandled attribute: "+object+", "+xmlattrname+", "+attrpath, "unhandled attribute", context, se.getLocation());
context.getReporter().report("Could not link: "+elem+" "+parent, "Could not link", context, context.getLocation());
context.getReporter().report("Could not link: "+elem+" "+parent, "Could not link", context, context.getLocation());