com.sun.xml.internal.bind.v2.model.runtime.RuntimeElementPropertyInfo Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.model.runtime.RuntimeElementPropertyInfo.
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: SingleElementNodeProperty.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #2
Source File: SingleElementNodeProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #3
Source File: ArrayElementProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #4
Source File: ArrayElementProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #5
Source File: SingleElementNodeProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #6
Source File: SingleElementNodeProperty.java From hottub with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #7
Source File: ArrayElementProperty.java From hottub with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #8
Source File: ArrayElementProperty.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #9
Source File: SingleElementNodeProperty.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #10
Source File: SingleElementNodeProperty.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #11
Source File: ArrayElementProperty.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #12
Source File: ArrayElementProperty.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #13
Source File: ArrayElementProperty.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #14
Source File: SingleElementNodeProperty.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #15
Source File: SingleElementNodeProperty.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public SingleElementNodeProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context,prop); acc = prop.getAccessor().optimize(context); this.prop = prop; QName nt = null; boolean nil = false; acceptedElements = new QName[prop.getTypes().size()]; for( int i=0; i<acceptedElements.length; i++ ) acceptedElements[i] = prop.getTypes().get(i).getTagName(); for (RuntimeTypeRef e : prop.getTypes()) { JaxBeanInfo beanInfo = context.getOrCreate(e.getTarget()); if(nt==null) nt = e.getTagName(); typeNames.put( beanInfo.jaxbType, new TagAndType( context.nameBuilder.createElementName(e.getTagName()),beanInfo) ); nil |= e.isNillable(); } nullTagName = context.nameBuilder.createElementName(nt); nillable = nil; }
Example #16
Source File: ArrayElementProperty.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected ArrayElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop, prop.getXmlName(), prop.isCollectionNillable()); this.prop = prop; List<? extends RuntimeTypeRef> types = prop.getTypes(); Name n = null; for (RuntimeTypeRef typeRef : types) { Class type = (Class)typeRef.getTarget().getType(); if(type.isPrimitive()) type = RuntimeUtil.primitiveToBox.get(type); JaxBeanInfo beanInfo = grammar.getOrCreate(typeRef.getTarget()); TagAndType tt = new TagAndType( grammar.nameBuilder.createElementName(typeRef.getTagName()), beanInfo); typeMap.put(type,tt); refs.put(typeRef,beanInfo); if(typeRef.isNillable() && n==null) n = tt.tagName; } nillableTagName = n; }
Example #17
Source File: ArrayElementLeafProperty.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop) { super(p, prop); // unless those are true, use the ArrayElementNodeProperty. assert prop.getTypes().size()==1; // assert prop.getTypes().get(0).getType().isLeaf(); // this assertion is incorrect in case it's IDREF xducer = prop.getTypes().get(0).getTransducer(); assert xducer!=null; }
Example #18
Source File: SingleElementLeafProperty.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context, prop); RuntimeTypeRef ref = prop.getTypes().get(0); tagName = context.nameBuilder.createElementName(ref.getTagName()); assert tagName != null; nillable = ref.isNillable(); defaultValue = ref.getDefaultValue(); this.acc = prop.getAccessor().optimize(context); xacc = TransducedAccessor.get(context, ref); assert xacc != null; improvedXsiTypeHandling = context.improvedXsiTypeHandling; idRef = ref.getSource().id() == ID.IDREF; }
Example #19
Source File: SingleElementLeafProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context, prop); RuntimeTypeRef ref = prop.getTypes().get(0); tagName = context.nameBuilder.createElementName(ref.getTagName()); assert tagName != null; nillable = ref.isNillable(); defaultValue = ref.getDefaultValue(); this.acc = prop.getAccessor().optimize(context); xacc = TransducedAccessor.get(context, ref); assert xacc != null; improvedXsiTypeHandling = context.improvedXsiTypeHandling; idRef = ref.getSource().id() == ID.IDREF; }
Example #20
Source File: ListElementProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ListElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop); assert prop.isValueList(); assert prop.getTypes().size()==1; // required by the contract of isValueList RuntimeTypeRef ref = prop.getTypes().get(0); tagName = grammar.nameBuilder.createElementName(ref.getTagName()); defaultValue = ref.getDefaultValue(); // transducer for each item Transducer xducer = ref.getTransducer(); // transduced accessor for the whole thing xacc = new ListTransducedAccessorImpl(xducer,acc,lister); }
Example #21
Source File: ListElementProperty.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ListElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop); assert prop.isValueList(); assert prop.getTypes().size()==1; // required by the contract of isValueList RuntimeTypeRef ref = prop.getTypes().get(0); tagName = grammar.nameBuilder.createElementName(ref.getTagName()); defaultValue = ref.getDefaultValue(); // transducer for each item Transducer xducer = ref.getTransducer(); // transduced accessor for the whole thing xacc = new ListTransducedAccessorImpl(xducer,acc,lister); }
Example #22
Source File: SingleElementLeafProperty.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context, prop); RuntimeTypeRef ref = prop.getTypes().get(0); tagName = context.nameBuilder.createElementName(ref.getTagName()); assert tagName != null; nillable = ref.isNillable(); defaultValue = ref.getDefaultValue(); this.acc = prop.getAccessor().optimize(context); xacc = TransducedAccessor.get(context, ref); assert xacc != null; improvedXsiTypeHandling = context.improvedXsiTypeHandling; idRef = ref.getSource().id() == ID.IDREF; }
Example #23
Source File: ArrayElementLeafProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop) { super(p, prop); // unless those are true, use the ArrayElementNodeProperty. assert prop.getTypes().size()==1; // assert prop.getTypes().get(0).getType().isLeaf(); // this assertion is incorrect in case it's IDREF xducer = prop.getTypes().get(0).getTransducer(); assert xducer!=null; }
Example #24
Source File: SingleElementLeafProperty.java From hottub with GNU General Public License v2.0 | 5 votes |
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context, prop); RuntimeTypeRef ref = prop.getTypes().get(0); tagName = context.nameBuilder.createElementName(ref.getTagName()); assert tagName != null; nillable = ref.isNillable(); defaultValue = ref.getDefaultValue(); this.acc = prop.getAccessor().optimize(context); xacc = TransducedAccessor.get(context, ref); assert xacc != null; improvedXsiTypeHandling = context.improvedXsiTypeHandling; idRef = ref.getSource().id() == ID.IDREF; }
Example #25
Source File: ListElementProperty.java From hottub with GNU General Public License v2.0 | 5 votes |
public ListElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop); assert prop.isValueList(); assert prop.getTypes().size()==1; // required by the contract of isValueList RuntimeTypeRef ref = prop.getTypes().get(0); tagName = grammar.nameBuilder.createElementName(ref.getTagName()); defaultValue = ref.getDefaultValue(); // transducer for each item Transducer xducer = ref.getTransducer(); // transduced accessor for the whole thing xacc = new ListTransducedAccessorImpl(xducer,acc,lister); }
Example #26
Source File: ArrayElementLeafProperty.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop) { super(p, prop); // unless those are true, use the ArrayElementNodeProperty. assert prop.getTypes().size()==1; // assert prop.getTypes().get(0).getType().isLeaf(); // this assertion is incorrect in case it's IDREF xducer = prop.getTypes().get(0).getTransducer(); assert xducer!=null; }
Example #27
Source File: ArrayElementLeafProperty.java From hottub with GNU General Public License v2.0 | 5 votes |
public ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop) { super(p, prop); // unless those are true, use the ArrayElementNodeProperty. assert prop.getTypes().size()==1; // assert prop.getTypes().get(0).getType().isLeaf(); // this assertion is incorrect in case it's IDREF xducer = prop.getTypes().get(0).getTransducer(); assert xducer!=null; }
Example #28
Source File: ListElementProperty.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ListElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop) { super(grammar, prop); assert prop.isValueList(); assert prop.getTypes().size()==1; // required by the contract of isValueList RuntimeTypeRef ref = prop.getTypes().get(0); tagName = grammar.nameBuilder.createElementName(ref.getTagName()); defaultValue = ref.getDefaultValue(); // transducer for each item Transducer xducer = ref.getTransducer(); // transduced accessor for the whole thing xacc = new ListTransducedAccessorImpl(xducer,acc,lister); }
Example #29
Source File: ArrayElementLeafProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop) { super(p, prop); // unless those are true, use the ArrayElementNodeProperty. assert prop.getTypes().size()==1; // assert prop.getTypes().get(0).getType().isLeaf(); // this assertion is incorrect in case it's IDREF xducer = prop.getTypes().get(0).getTransducer(); assert xducer!=null; }
Example #30
Source File: SingleElementLeafProperty.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) { super(context, prop); RuntimeTypeRef ref = prop.getTypes().get(0); tagName = context.nameBuilder.createElementName(ref.getTagName()); assert tagName != null; nillable = ref.isNillable(); defaultValue = ref.getDefaultValue(); this.acc = prop.getAccessor().optimize(context); xacc = TransducedAccessor.get(context, ref); assert xacc != null; improvedXsiTypeHandling = context.improvedXsiTypeHandling; idRef = ref.getSource().id() == ID.IDREF; }