Java Code Examples for com.sun.tools.internal.xjc.model.CBuiltinLeafInfo#STRING
The following examples show how to use
com.sun.tools.internal.xjc.model.CBuiltinLeafInfo#STRING .
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: TypeUseBinder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private TypeUse onContainer(DContainerPattern p) { TypeUse t=null; for( DPattern child : p ) { TypeUse s = child.accept(this); if(t!=null && t!=s) return CBuiltinLeafInfo.STRING; // heterogenous t = s; } return t; }
Example 2
Source File: TypeUseBinder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private TypeUse onContainer(DContainerPattern p) { TypeUse t=null; for( DPattern child : p ) { TypeUse s = child.accept(this); if(t!=null && t!=s) return CBuiltinLeafInfo.STRING; // heterogenous t = s; } return t; }
Example 3
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 4
Source File: BIEnumeration.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Creates an element-local enumeration declaration. */ static BIEnumeration create( Element dom, BIElement parent ) { // create a class as a nested class return new BIEnumeration( dom, new CEnumLeafInfo( parent.parent.model, null, parent.clazz, DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom) )); }
Example 5
Source File: TypeUseBinder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private TypeUse onDataType(String datatypeLibrary, String type) { DatatypeLib lib = compiler.datatypes.get(datatypeLibrary); if(lib!=null) { TypeUse use = lib.get(type); if(use!=null) return use; } // unknown return CBuiltinLeafInfo.STRING; }
Example 6
Source File: BIEnumeration.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Creates an element-local enumeration declaration. */ static BIEnumeration create( Element dom, BIElement parent ) { // create a class as a nested class return new BIEnumeration( dom, new CEnumLeafInfo( parent.parent.model, null, parent.clazz, DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom) )); }
Example 7
Source File: TypeUseBinder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private TypeUse onContainer(DContainerPattern p) { TypeUse t=null; for( DPattern child : p ) { TypeUse s = child.accept(this); if(t!=null && t!=s) return CBuiltinLeafInfo.STRING; // heterogenous t = s; } return t; }
Example 8
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 9
Source File: BIEnumeration.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example 10
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 11
Source File: BIEnumeration.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Creates an element-local enumeration declaration. */ static BIEnumeration create( Element dom, BIElement parent ) { // create a class as a nested class return new BIEnumeration( dom, new CEnumLeafInfo( parent.parent.model, null, parent.clazz, DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom) )); }
Example 12
Source File: TypeUseBinder.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public TypeUse onOptional(DOptionalPattern p) { return CBuiltinLeafInfo.STRING; }
Example 13
Source File: TypeUseBinder.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public TypeUse onOptional(DOptionalPattern p) { return CBuiltinLeafInfo.STRING; }
Example 14
Source File: TypeUseBinder.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public TypeUse onEmpty(DEmptyPattern p) { return CBuiltinLeafInfo.STRING; }
Example 15
Source File: TypeUseBinder.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public TypeUse onText(DTextPattern p) { return CBuiltinLeafInfo.STRING; }
Example 16
Source File: TypeUseBinder.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public TypeUse onGrammar(DGrammarPattern p) { return CBuiltinLeafInfo.STRING; }
Example 17
Source File: TypeUseBinder.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public TypeUse onText(DTextPattern p) { return CBuiltinLeafInfo.STRING; }
Example 18
Source File: TypeUseBinder.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public TypeUse onOptional(DOptionalPattern p) { return CBuiltinLeafInfo.STRING; }
Example 19
Source File: TypeUseBinder.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public TypeUse onChoice(DChoicePattern p) { // can't support unions return CBuiltinLeafInfo.STRING; }
Example 20
Source File: TypeUseBinder.java From hottub with GNU General Public License v2.0 | 4 votes |
public TypeUse onText(DTextPattern p) { return CBuiltinLeafInfo.STRING; }