@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(entryTag)) { state.setLoader(entryLoader); } else { super.childElement(state,ea); } }
private void _startElement(TagName tagName) throws SAXException { // remember the current element if we are interested in it. // because the inner peer might not be found while we consume // the enter element token, we need to keep this information // longer than this callback. That's why we assign it to a field. if( assoc!=null ) currentElement = scanner.getCurrentElement(); Loader h = current.loader; current.push(); // tell the parent about the new child h.childElement(current,tagName); assert current.loader!=null; // the childElement should register this // and tell the new child that you are activated current.loader.startElement(current,tagName); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches("","item")) { state.setLoader(itemLoader); state.setReceiver(this); } else { super.childElement(state,ea); } }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { ChildLoader child = children.get(ea.uri,ea.local); if (child == null) { child = children.get(CATCH_ALL); } if (child == null) { super.childElement(state,ea); return; } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName arg) throws SAXException { ChildLoader child = childUnmarshallers.get(arg.uri,arg.local); if(child == null) { Boolean backupWithParentNamespace = ((JAXBContextImpl) state.getContext().getJAXBContext()).backupWithParentNamespace; backupWithParentNamespace = backupWithParentNamespace != null ? backupWithParentNamespace : Boolean.parseBoolean(Util.getSystemProperty(JAXBRIContext.BACKUP_WITH_PARENT_NAMESPACE)); if ((beanInfo != null) && (beanInfo.getTypeNames() != null) && backupWithParentNamespace) { Iterator<?> typeNamesIt = beanInfo.getTypeNames().iterator(); QName parentQName = null; if ((typeNamesIt != null) && (typeNamesIt.hasNext()) && (catchAll == null)) { parentQName = (QName) typeNamesIt.next(); String parentUri = parentQName.getNamespaceURI(); child = childUnmarshallers.get(parentUri, arg.local); } } if (child == null) { child = catchAll; if(child==null) { super.childElement(state,arg); return; } } } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(keyTag)) { state.setLoader(keyLoader); state.setReceiver(keyReceiver); return; } if(ea.matches(valueTag)) { state.setLoader(valueLoader); state.setReceiver(valueReceiver); return; } super.childElement(state,ea); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(entryTag)) { state.setLoader(entryLoader); } else { super.childElement(state,ea); } }
private void _startElement(TagName tagName) throws SAXException { // remember the current element if we are interested in it. // because the inner peer might not be found while we consume // the enter element token, we need to keep this information // longer than this callback. That's why we assign it to a field. if( assoc!=null ) currentElement = scanner.getCurrentElement(); Loader h = current.loader; current.push(); // tell the parent about the new child h.childElement(current,tagName); assert current.loader!=null; // the childElement should register this // and tell the new child that you are activated current.loader.startElement(current,tagName); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches("","item")) { state.setLoader(itemLoader); state.setReceiver(this); } else { super.childElement(state,ea); } }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { ChildLoader child = children.get(ea.uri,ea.local); if (child == null) { child = children.get(CATCH_ALL); } if (child == null) { super.childElement(state,ea); return; } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName arg) throws SAXException { ChildLoader child = childUnmarshallers.get(arg.uri,arg.local); if(child == null) { Boolean backupWithParentNamespace = ((JAXBContextImpl) state.getContext().getJAXBContext()).backupWithParentNamespace; backupWithParentNamespace = backupWithParentNamespace != null ? backupWithParentNamespace : Boolean.parseBoolean(Util.getSystemProperty(JAXBRIContext.BACKUP_WITH_PARENT_NAMESPACE)); if ((beanInfo != null) && (beanInfo.getTypeNames() != null) && backupWithParentNamespace) { Iterator<?> typeNamesIt = beanInfo.getTypeNames().iterator(); QName parentQName = null; if ((typeNamesIt != null) && (typeNamesIt.hasNext()) && (catchAll == null)) { parentQName = (QName) typeNamesIt.next(); String parentUri = parentQName.getNamespaceURI(); child = childUnmarshallers.get(parentUri, arg.local); } } if (child == null) { child = catchAll; if(child==null) { super.childElement(state,arg); return; } } } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(keyTag)) { state.setLoader(keyLoader); state.setReceiver(keyReceiver); return; } if(ea.matches(valueTag)) { state.setLoader(valueLoader); state.setReceiver(valueReceiver); return; } super.childElement(state,ea); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(entryTag)) { state.setLoader(entryLoader); } else { super.childElement(state,ea); } }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(entryTag)) { state.setLoader(entryLoader); } else { super.childElement(state,ea); } }
private void _startElement(TagName tagName) throws SAXException { // remember the current element if we are interested in it. // because the inner peer might not be found while we consume // the enter element token, we need to keep this information // longer than this callback. That's why we assign it to a field. if( assoc!=null ) currentElement = scanner.getCurrentElement(); Loader h = current.loader; current.push(); // tell the parent about the new child h.childElement(current,tagName); assert current.loader!=null; // the childElement should register this // and tell the new child that you are activated current.loader.startElement(current,tagName); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches("","item")) { state.setLoader(itemLoader); state.setReceiver(this); } else { super.childElement(state,ea); } }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches("","item")) { state.setLoader(itemLoader); state.setReceiver(this); } else { super.childElement(state,ea); } }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { ChildLoader child = children.get(ea.uri,ea.local); if (child == null) { child = children.get(CATCH_ALL); } if (child == null) { super.childElement(state,ea); return; } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { ChildLoader child = children.get(ea.uri,ea.local); if (child == null) { child = children.get(CATCH_ALL); } if (child == null) { super.childElement(state,ea); return; } state.setLoader(child.loader); state.setReceiver(child.receiver); }
@Override public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { if(ea.matches(keyTag)) { state.setLoader(keyLoader); state.setReceiver(keyReceiver); return; } if(ea.matches(valueTag)) { state.setLoader(valueLoader); state.setReceiver(valueReceiver); return; } super.childElement(state,ea); }