@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 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 arg) throws SAXException { ChildLoader child = childUnmarshallers.get(arg.uri,arg.local); if(child==null) { if ((beanInfo != null) && (beanInfo.getTypeNames() != null)) { 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 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); }
/** * Called when this loaderis an active loaderand we see a new child start tag. * * <p> * The callee is expected to designate another loaderas a loaderthat processes * this element, then it should also register a {@link Receiver}. * The designated loaderwill become an active loader. * * <p> * The default implementation reports an error saying an element is unexpected. */ public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // notify the error, then recover by ignoring the whole element. reportUnexpectedChildElement(ea, true); state.setLoader(Discarder.INSTANCE); state.setReceiver(null); }
/** * Called when this loaderis an active loaderand we see a new child start tag. * * <p> * The callee is expected to designate another loaderas a loaderthat processes * this element, then it should also register a {@link Receiver}. * The designated loaderwill become an active loader. * * <p> * The default implementation reports an error saying an element is unexpected. */ public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // notify the error, then recover by ignoring the whole element. reportUnexpectedChildElement(ea, true); state.setLoader(Discarder.INSTANCE); state.setReceiver(null); }
@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(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 { 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("","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 { if(ea.matches("","item")) { state.setLoader(itemLoader); state.setReceiver(this); } else { super.childElement(state,ea); } }
/** * Called when this loaderis an active loaderand we see a new child start tag. * * <p> * The callee is expected to designate another loaderas a loaderthat processes * this element, then it should also register a {@link Receiver}. * The designated loaderwill become an active loader. * * <p> * The default implementation reports an error saying an element is unexpected. */ public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // notify the error, then recover by ignoring the whole element. reportUnexpectedChildElement(ea, true); state.setLoader(Discarder.INSTANCE); state.setReceiver(null); }
@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); }
@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); } }
/** * Called when this loaderis an active loaderand we see a new child start tag. * * <p> * The callee is expected to designate another loaderas a loaderthat processes * this element, then it should also register a {@link Receiver}. * The designated loaderwill become an active loader. * * <p> * The default implementation reports an error saying an element is unexpected. */ public void childElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // notify the error, then recover by ignoring the whole element. reportUnexpectedChildElement(ea, true); state.setLoader(Discarder.INSTANCE); state.setReceiver(null); }
@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("","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); }