com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder Java Examples
The following examples show how to use
com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder.
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: CClassInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #2
Source File: BIProperty.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #3
Source File: CClassInfo.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #4
Source File: BIProperty.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #5
Source File: CClassInfo.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #6
Source File: BIProperty.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #7
Source File: CClassInfo.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #8
Source File: CClassInfo.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #9
Source File: CClassInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #10
Source File: BIProperty.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #11
Source File: BIProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #12
Source File: CClassInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) { super(model,source,location,customizations); this.model = model; this.parent = p; this.shortName = model.allocator.assignClassName(parent,shortName); this.typeName = typeName; this.elementName = elementName; Language schemaLanguage = model.options.getSchemaLanguage(); if ((schemaLanguage != null) && (schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) { BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } } model.add(this); }
Example #13
Source File: BIProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) { boolean forConstant = getCustomization(use).isConstantProperty() && use.getFixedValue()!=null; String name = getPropertyName(forConstant); if(name==null) { NameConverter conv = getBuilder().getNameConverter(); if(forConstant) name = conv.toConstantName(use.getDecl().getName()); else name = conv.toPropertyName(use.getDecl().getName()); if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } markAsAcknowledged(); constantPropertyErrorCheck(); return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(), BGMBuilder.getName(use.getDecl()), tu, BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use); }
Example #14
Source File: BIProperty.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) { while(c!=null) { c = c.apply(defaultCustomizationFinder); if(c!=null) { BIProperty prop = builder.getBindInfo(c).get(BIProperty.class); if(prop!=null) return prop; } } // default to the global one return builder.getGlobalBinding().getDefaultProperty(); }
Example #15
Source File: BIProperty.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) { while(c!=null) { c = c.apply(defaultCustomizationFinder); if(c!=null) { BIProperty prop = builder.getBindInfo(c).get(BIProperty.class); if(prop!=null) return prop; } } // default to the global one return builder.getGlobalBinding().getDefaultProperty(); }
Example #16
Source File: BIFactoryMethod.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #17
Source File: BIInlineBinaryData.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #18
Source File: BIFactoryMethod.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #19
Source File: BIFactoryMethod.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #20
Source File: BIFactoryMethod.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #21
Source File: BIProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) { while(c!=null) { c = c.apply(defaultCustomizationFinder); if(c!=null) { BIProperty prop = builder.getBindInfo(c).get(BIProperty.class); if(prop!=null) return prop; } } // default to the global one return builder.getGlobalBinding().getDefaultProperty(); }
Example #22
Source File: BIProperty.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) { while(c!=null) { c = c.apply(defaultCustomizationFinder); if(c!=null) { BIProperty prop = builder.getBindInfo(c).get(BIProperty.class); if(prop!=null) return prop; } } // default to the global one return builder.getGlobalBinding().getDefaultProperty(); }
Example #23
Source File: BIInlineBinaryData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #24
Source File: BindInfo.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Sets the owner schema component and a reference to BGMBuilder. * This method is called from the BGMBuilder before * any BIDeclaration inside it is used. */ public void setOwner( BGMBuilder _builder, XSComponent _owner ) { this.owner = _owner; this.builder = _builder; for (BIDeclaration d : decls) d.onSetOwner(); }
Example #25
Source File: BindInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Sets the owner schema component and a reference to BGMBuilder. * This method is called from the BGMBuilder before * any BIDeclaration inside it is used. */ public void setOwner( BGMBuilder _builder, XSComponent _owner ) { this.owner = _owner; this.builder = _builder; for (BIDeclaration d : decls) d.onSetOwner(); }
Example #26
Source File: BIInlineBinaryData.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #27
Source File: BIInlineBinaryData.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #28
Source File: BIProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) { while(c!=null) { c = c.apply(defaultCustomizationFinder); if(c!=null) { BIProperty prop = builder.getBindInfo(c).get(BIProperty.class); if(prop!=null) return prop; } } // default to the global one return builder.getGlobalBinding().getDefaultProperty(); }
Example #29
Source File: BIFactoryMethod.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }
Example #30
Source File: BIFactoryMethod.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * If the given component has {@link BIInlineBinaryData} customization, * reflect that to the specified property. */ public static void handle(XSComponent source, CPropertyInfo prop) { BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class); if(inline!=null) { prop.inlineBinaryData = true; inline.markAsAcknowledged(); } }