/** * Handle the content. * @param readcontext The context for reading with all necessary information. */ protected void handleContent(ReadContextDesktop readcontext) throws Exception { if(readcontext.getReadIgnore()==0) readcontext.getTopStackElement().addContent(readcontext.getParser().getText()); else if(DEBUG) System.out.println("Ignoring: "+readcontext.getParser().getText()); // System.out.println("content: "+parser.getLocalName()+" "+content); }
jadex.xml.stax.ILocation loc = readcontext.getStackSize()>0 ? readcontext.getTopStackElement().getLocation() : StaxLocationWrapper.fromLocation(parser.getLocation()); readcontext.getReporter().report(e.toString(), "XML error", readcontext, loc);
if(handler==null) if(readcontext.getTopStackElement()!=null && readcontext.getTopStackElement().getReaderHandler()!=null) handler = readcontext.getTopStackElement().getReaderHandler(); StackElement pse = (StackElement)readcontext.getTopStackElement(); List pathname = new ArrayList(); pathname.add(localname); readcontext.getTopStackElement()!=null? readcontext.getTopStackElement().getRawAttributes(): null); if(linkinfo!=null && linkinfo.getAccessInfo().isIgnoreRead()) attrpath.add(readcontext.getTopStackElement().getTag()); for(int i=readcontext.getStackSize()-2; i>=0 && object==null; i--) StackElement se = readcontext.getTopStackElement(); readcontext.getReporter().report("No element on stack for attributes", "stack error", se, se.getLocation());
StackElement topse = readcontext.getTopStackElement(); StackElement se = readcontext.getTopStackElement(); readcontext.getReporter().report("No content mapping for: "+topse.getContent()+" tag="+topse.getTag(), "link error", se, se.getLocation()); StackElement se = readcontext.getTopStackElement(); readcontext.getReporter().report("No parent object found for: "+SUtil.arrayToString(fullpath), "link error", se, se.getLocation());