com.sun.xml.internal.bind.v2.model.annotation.AnnotationReader Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.model.annotation.AnnotationReader.
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: TypeInfoSetImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #2
Source File: ModelBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #3
Source File: TypeInfoSetImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #4
Source File: ModelBuilder.java From hottub with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #5
Source File: TypeInfoSetImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #6
Source File: TypeInfoSetImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #7
Source File: ModelBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #8
Source File: ModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #9
Source File: ModelBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #10
Source File: TypeInfoSetImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #11
Source File: TypeInfoSetImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public TypeInfoSetImpl(Navigator<T,C,F,M> nav, AnnotationReader<T,C,F,M> reader, Map<T,? extends BuiltinLeafInfoImpl<T,C>> leaves) { this.nav = nav; this.reader = reader; this.builtins.putAll(leaves); this.anyType = createAnyType(); // register primitive types. for (Map.Entry<Class, Class> e : RuntimeUtil.primitiveToBox.entrySet()) { this.builtins.put( nav.getPrimitive(e.getKey()), leaves.get(nav.ref(e.getValue())) ); } // make sure at lease we got a map for global ones. elementMappings.put(null,new LinkedHashMap<QName,ElementInfoImpl<T,C,F,M>>()); }
Example #12
Source File: ModelBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public ModelBuilder( AnnotationReader<T, C, F, M> reader, Navigator<T, C, F, M> navigator, Map<C, C> subclassReplacements, String defaultNamespaceRemap ) { this.reader = reader; this.nav = navigator; this.subclassReplacements = subclassReplacements; if(defaultNamespaceRemap==null) defaultNamespaceRemap = ""; this.defaultNsUri = defaultNamespaceRemap; reader.setErrorHandler(proxyErrorHandler); typeInfoSet = createTypeInfoSet(); }
Example #13
Source File: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #14
Source File: Adapter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Adapter( XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav) { this( nav.asDecl(reader.getClassValue(spec,"value")), nav ); }
Example #15
Source File: Ref.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #16
Source File: Ref.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #17
Source File: Adapter.java From hottub with GNU General Public License v2.0 | 5 votes |
public Adapter( XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav) { this( nav.asDecl(reader.getClassValue(spec,"value")), nav ); }
Example #18
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #19
Source File: Util.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #20
Source File: Util.java From hottub with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #21
Source File: Adapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Adapter( XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav) { this( nav.asDecl(reader.getClassValue(spec,"value")), nav ); }
Example #22
Source File: Ref.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #23
Source File: Ref.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #24
Source File: Util.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #25
Source File: Ref.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #26
Source File: Adapter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Adapter( XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav) { this( nav.asDecl(reader.getClassValue(spec,"value")), nav ); }
Example #27
Source File: Ref.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Ref(AnnotationReader<T,C,?,?> reader, Navigator<T,C,?,?> nav, T type, XmlJavaTypeAdapter xjta, XmlList xl ) { Adapter<T,C> adapter=null; if(xjta!=null) { adapter = new Adapter<T,C>(xjta,reader,nav); type = adapter.defaultType; } this.type = type; this.adapter = adapter; this.valueList = xl!=null; }
Example #28
Source File: PropertyInfoImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
protected final AnnotationReader<T,C,F,M> reader() { return parent.reader(); }
Example #29
Source File: AbstractWrapperBeanGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected AbstractWrapperBeanGenerator(AnnotationReader<T,C,?,M> annReader, Navigator<T,C,?,M> nav, BeanMemberFactory<T,A> factory) { this.annReader = annReader; this.nav = nav; this.factory = factory; }
Example #30
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public RuntimeTypeInfoSetImpl(AnnotationReader<Type,Class,Field,Method> reader) { super(Utils.REFLECTION_NAVIGATOR,reader,RuntimeBuiltinLeafInfoImpl.LEAVES); }