"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 link: "+object+" "+parent, "link error", context, context.getLocation());
context.getReporter().report("Could not bulk link: "+childs+" "+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; }
"attribute error", context, context.getLocation()); "attribute error", context, context.getLocation()); "attribute error", context, context.getLocation());
"attribute error", context, context.getLocation()); "attribute error", context, context.getLocation());
"attribute error", context, context.getLocation()); "attribute error", context, context.getLocation()); "attribute error", context, context.getLocation()); "attribute error", context, context.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());