Java Code Examples for com.sun.tools.internal.xjc.model.TypeUseFactory#makeCollection()
The following examples show how to use
com.sun.tools.internal.xjc.model.TypeUseFactory#makeCollection() .
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: ElementMappingImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
Example 2
Source File: SimpleTypeBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 3
Source File: SimpleTypeBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 4
Source File: SimpleTypeBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
Example 5
Source File: SimpleTypeBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 6
Source File: SimpleTypeBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 7
Source File: SimpleTypeBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
Example 8
Source File: ElementMappingImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
Example 9
Source File: SimpleTypeBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 10
Source File: SimpleTypeBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
Example 11
Source File: SimpleTypeBuilder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 12
Source File: SimpleTypeBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
Example 13
Source File: ElementMappingImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
Example 14
Source File: ElementMappingImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
Example 15
Source File: SimpleTypeBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
Example 16
Source File: SimpleTypeBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public TypeUse unionSimpleType(XSUnionSimpleType type) { boolean isCollection = false; for( int i=0; i<type.getMemberSize(); i++ ) if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) { isCollection = true; break; } TypeUse r = CBuiltinLeafInfo.STRING; if(isCollection) r = TypeUseFactory.makeCollection(r); return r; }
Example 17
Source File: TypeUseBinder.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public TypeUse onOneOrMore(DOneOrMorePattern p) { return TypeUseFactory.makeCollection( p.getChild().accept(this) ); }
Example 18
Source File: TypeUseBinder.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public TypeUse onZeroOrMore(DZeroOrMorePattern p) { return TypeUseFactory.makeCollection( p.getChild().accept(this) ); }
Example 19
Source File: TypeUseBinder.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public TypeUse onZeroOrMore(DZeroOrMorePattern p) { return TypeUseFactory.makeCollection( p.getChild().accept(this) ); }
Example 20
Source File: TypeUseBinder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public TypeUse onOneOrMore(DOneOrMorePattern p) { return TypeUseFactory.makeCollection( p.getChild().accept(this) ); }