com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.<init>()方法的一些代码示例,展示了XmlSchemaGenerator.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaGenerator.<init>()方法的具体详情如下:
包路径:com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator
类名称:XmlSchemaGenerator
方法名:<init>

XmlSchemaGenerator.<init>介绍

暂无

代码示例

代码示例来源:origin: com.sun.xml.bind/jaxb-impl

  1. new XmlSchemaGenerator<Type,Class,Field,Method>(tis.getNavigator(),tis);

代码示例来源:origin: org.glassfish.jaxb/jaxb-runtime

  1. new XmlSchemaGenerator<Type,Class,Field,Method>(tis.getNavigator(),tis);

代码示例来源:origin: sun-jaxb/jaxb-xjc

  1. private synchronized XmlSchemaGenerator<TypeMirror, TypeDeclaration, FieldDeclaration, MethodDeclaration> getSchemaGenerator() {
  2. if(xsdgen==null) {
  3. xsdgen = new XmlSchemaGenerator<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>( types.getNavigator(), types );
  4. for (Map.Entry<QName, Reference> e : additionalElementDecls.entrySet()) {
  5. Reference value = e.getValue();
  6. if(value!=null) {
  7. NonElement<TypeMirror, TypeDeclaration> typeInfo = refMap.get(value);
  8. if(typeInfo==null)
  9. throw new IllegalArgumentException(e.getValue()+" was not specified to JavaCompiler.bind");
  10. xsdgen.add(e.getKey(),!(value.type instanceof PrimitiveType),typeInfo);
  11. } else {
  12. xsdgen.add(e.getKey(),false,null);
  13. }
  14. }
  15. }
  16. return xsdgen;
  17. }
  18. }

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

  1. private synchronized XmlSchemaGenerator<TypeMirror, TypeDeclaration, FieldDeclaration, MethodDeclaration> getSchemaGenerator() {
  2. if(xsdgen==null) {
  3. xsdgen = new XmlSchemaGenerator<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>( types.getNavigator(), types );
  4. for (Map.Entry<QName, Reference> e : additionalElementDecls.entrySet()) {
  5. Reference value = e.getValue();
  6. if(value!=null) {
  7. NonElement<TypeMirror, TypeDeclaration> typeInfo = refMap.get(value);
  8. if(typeInfo==null)
  9. throw new IllegalArgumentException(e.getValue()+" was not specified to JavaCompiler.bind");
  10. xsdgen.add(e.getKey(),!(value.type instanceof PrimitiveType),typeInfo);
  11. } else {
  12. xsdgen.add(e.getKey(),false,null);
  13. }
  14. }
  15. }
  16. return xsdgen;
  17. }
  18. }

代码示例来源:origin: org.glassfish.metro/webservices-tools

  1. private synchronized XmlSchemaGenerator<TypeMirror, TypeElement, VariableElement, ExecutableElement> getSchemaGenerator() {
  2. if(xsdgen==null) {
  3. xsdgen = new XmlSchemaGenerator<TypeMirror, TypeElement, VariableElement, ExecutableElement>(types.getNavigator(), types);
  4. for (Map.Entry<QName, Reference> e : additionalElementDecls.entrySet()) {
  5. Reference value = e.getValue();
  6. if(value!=null) {
  7. NonElement<TypeMirror, TypeElement> typeInfo = refMap.get(value);
  8. if(typeInfo==null)
  9. throw new IllegalArgumentException(e.getValue()+" was not specified to JavaCompiler.bind");
  10. TypeMirror type = value.type;
  11. xsdgen.add(e.getKey(), !(type != null && type.getKind().isPrimitive()), typeInfo);
  12. } else {
  13. xsdgen.add(e.getKey(),false,null);
  14. }
  15. }
  16. }
  17. return xsdgen;
  18. }
  19. }

代码示例来源:origin: com.sun.xml.bind/jaxb-jxc

  1. private synchronized XmlSchemaGenerator<TypeMirror, TypeElement, VariableElement, ExecutableElement> getSchemaGenerator() {
  2. if(xsdgen==null) {
  3. xsdgen = new XmlSchemaGenerator<TypeMirror, TypeElement, VariableElement, ExecutableElement>(types.getNavigator(), types);
  4. for (Map.Entry<QName, Reference> e : additionalElementDecls.entrySet()) {
  5. Reference value = e.getValue();
  6. if(value!=null) {
  7. NonElement<TypeMirror, TypeElement> typeInfo = refMap.get(value);
  8. if(typeInfo==null)
  9. throw new IllegalArgumentException(e.getValue()+" was not specified to JavaCompiler.bind");
  10. TypeMirror type = value.type;
  11. xsdgen.add(e.getKey(), !(type != null && type.getKind().isPrimitive()), typeInfo);
  12. } else {
  13. xsdgen.add(e.getKey(),false,null);
  14. }
  15. }
  16. }
  17. return xsdgen;
  18. }
  19. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl

  1. new XmlSchemaGenerator<Type,Class,Field,Method>(tis.getNavigator(),tis);

代码示例来源:origin: apache/servicemix-bundles

  1. new XmlSchemaGenerator<Type,Class,Field,Method>(tis.getNavigator(),tis);

相关文章