com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClassBeanInfoImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #2
Source File: ClassBeanInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #3
Source File: ClassBeanInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #4
Source File: ClassBeanInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #5
Source File: ClassBeanInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #6
Source File: ClassBeanInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // these variables have to be set before they are initialized, // because the initialization may build other loaders and they may refer to this. StructureLoader sl = new StructureLoader(this); loader = sl; if(ci.hasSubClasses()) loaderWithTypeSubst = new XsiTypeLoader(this); else // optimization. we know there can be no @xsi:type loaderWithTypeSubst = loader; sl.init(context,this,ci.getAttributeWildcard()); } if(typeSubstitutionCapable) return loaderWithTypeSubst; else return loader; }
Example #7
Source File: ElementBeanInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // this has to be done lazily to avoid cyclic reference issue UnmarshallerChain c = new UnmarshallerChain(context); QNameMap<ChildLoader> result = new QNameMap<ChildLoader>(); property.buildChildElementUnmarshallers(c,result); if(result.size()==1) // for ElementBeanInfoImpl created from RuntimeElementInfo this.loader = new IntercepterLoader(result.getOne().getValue().loader); else // for special ElementBeanInfoImpl only used for marshalling this.loader = Discarder.INSTANCE; } return loader; }
Example #8
Source File: ElementBeanInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // this has to be done lazily to avoid cyclic reference issue UnmarshallerChain c = new UnmarshallerChain(context); QNameMap<ChildLoader> result = new QNameMap<ChildLoader>(); property.buildChildElementUnmarshallers(c,result); if(result.size()==1) // for ElementBeanInfoImpl created from RuntimeElementInfo this.loader = new IntercepterLoader(result.getOne().getValue().loader); else // for special ElementBeanInfoImpl only used for marshalling this.loader = Discarder.INSTANCE; } return loader; }
Example #9
Source File: JAXBContextImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Based on the tag name, determine what object to unmarshal, * and then set a new object and its loader to the current unmarshaller state. * * @return * null if the given name pair is not recognized. */ public final Loader selectRootLoader( UnmarshallingContext.State state, TagName tag ) { JaxBeanInfo beanInfo = rootMap.get(tag.uri,tag.local); if(beanInfo==null) return null; return beanInfo.getLoader(this,true); }
Example #10
Source File: Accessor.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.target, (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #11
Source File: JAXBContextImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Based on the tag name, determine what object to unmarshal, * and then set a new object and its loader to the current unmarshaller state. * * @return * null if the given name pair is not recognized. */ public final Loader selectRootLoader( UnmarshallingContext.State state, TagName tag ) { JaxBeanInfo beanInfo = rootMap.get(tag.uri,tag.local); if(beanInfo==null) return null; return beanInfo.getLoader(this,true); }
Example #12
Source File: Accessor.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #13
Source File: ElementBeanInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // this has to be done lazily to avoid cyclic reference issue UnmarshallerChain c = new UnmarshallerChain(context); QNameMap<ChildLoader> result = new QNameMap<ChildLoader>(); property.buildChildElementUnmarshallers(c,result); if(result.size()==1) // for ElementBeanInfoImpl created from RuntimeElementInfo this.loader = new IntercepterLoader(result.getOne().getValue().loader); else // for special ElementBeanInfoImpl only used for marshalling this.loader = Discarder.INSTANCE; } return loader; }
Example #14
Source File: ArrayBeanInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #15
Source File: ElementBeanInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // this has to be done lazily to avoid cyclic reference issue UnmarshallerChain c = new UnmarshallerChain(context); QNameMap<ChildLoader> result = new QNameMap<ChildLoader>(); property.buildChildElementUnmarshallers(c,result); if(result.size()==1) // for ElementBeanInfoImpl created from RuntimeElementInfo this.loader = new IntercepterLoader(result.getOne().getValue().loader); else // for special ElementBeanInfoImpl only used for marshalling this.loader = Discarder.INSTANCE; } return loader; }
Example #16
Source File: Accessor.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #17
Source File: Accessor.java From hottub with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #18
Source File: ArrayBeanInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #19
Source File: ArrayBeanInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #20
Source File: JAXBContextImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Based on the tag name, determine what object to unmarshal, * and then set a new object and its loader to the current unmarshaller state. * * @return * null if the given name pair is not recognized. */ public final Loader selectRootLoader( UnmarshallingContext.State state, TagName tag ) { JaxBeanInfo beanInfo = rootMap.get(tag.uri,tag.local); if(beanInfo==null) return null; return beanInfo.getLoader(this,true); }
Example #21
Source File: Accessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #22
Source File: Accessor.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.target, (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #23
Source File: ElementBeanInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) { // this has to be done lazily to avoid cyclic reference issue UnmarshallerChain c = new UnmarshallerChain(context); QNameMap<ChildLoader> result = new QNameMap<ChildLoader>(); property.buildChildElementUnmarshallers(c,result); if(result.size()==1) // for ElementBeanInfoImpl created from RuntimeElementInfo this.loader = new IntercepterLoader(result.getOne().getValue().loader); else // for special ElementBeanInfoImpl only used for marshalling this.loader = Discarder.INSTANCE; } return loader; }
Example #24
Source File: Accessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #25
Source File: ArrayBeanInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #26
Source File: JAXBContextImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Based on the tag name, determine what object to unmarshal, * and then set a new object and its loader to the current unmarshaller state. * * @return * null if the given name pair is not recognized. */ public final Loader selectRootLoader( UnmarshallingContext.State state, TagName tag ) { JaxBeanInfo beanInfo = rootMap.get(tag.uri,tag.local); if(beanInfo==null) return null; return beanInfo.getLoader(this,true); }
Example #27
Source File: Accessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void receive(UnmarshallingContext.State state, Object o) throws SAXException { try { set((BeanT) state.getTarget(), (ValueT) o); } catch (AccessorException e) { Loader.handleGenericException(e, true); } catch (IllegalAccessError iae) { // throw UnmarshalException instead IllegalAccesssError | Issue 475 Loader.handleGenericError(iae); } }
Example #28
Source File: ArrayBeanInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #29
Source File: ArrayBeanInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { if(loader==null) loader = new ArrayLoader(context); // type substitution not possible return loader; }
Example #30
Source File: ValueListBeanInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public final Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) { // type substitution impossible return loader; }