@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); }
for (QName qn : bi.getTypeNames()) typeMap.put( qn, bi ); if(e.isElement()) for (QName qn : ai.getTypeNames()) typeMap.put( qn, ai );
reportError(Messages.NOT_A_QNAME.format(value),true); } else { if(defaultBeanInfo!=null && defaultBeanInfo.getTypeNames().contains(type))
@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); }
for (QName qn : bi.getTypeNames()) typeMap.put( qn, bi ); if(e.isElement()) for (QName qn : ai.getTypeNames()) typeMap.put( qn, ai );
reportError(Messages.NOT_A_QNAME.format(value),true); } else { if(defaultBeanInfo!=null && defaultBeanInfo.getTypeNames().contains(type))
private QName getTypeName(JaxBeanInfo<?> beanInfo) { Iterator<QName> itr = beanInfo.getTypeNames().iterator(); if (!itr.hasNext()) { return null; } return itr.next(); }
private QName getTypeName(JaxBeanInfo<?> beanInfo) { Iterator<QName> itr = beanInfo.getTypeNames().iterator(); if (!itr.hasNext()) { return null; } return itr.next(); }
@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); }
for (QName qn : bi.getTypeNames()) typeMap.put( qn, bi ); if(e.isElement()) for (QName qn : ai.getTypeNames()) typeMap.put( qn, ai );
for (QName qn : bi.getTypeNames()) typeMap.put( qn, bi ); if(e.isElement()) for (QName qn : ai.getTypeNames()) typeMap.put( qn, ai );
reportError(Messages.NOT_A_QNAME.format(value),true); } else { if(defaultBeanInfo!=null && defaultBeanInfo.getTypeNames().contains(type))
reportError(Messages.NOT_A_QNAME.format(value),true); } else { if(defaultBeanInfo!=null && defaultBeanInfo.getTypeNames().contains(type))