com.sun.tools.xjc.model.Model.getPackage()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(108)

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

Model.getPackage介绍

暂无

代码示例

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

public CClassInfo(Model model,JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  this(model,model.getPackage(pkg),shortName,location,typeName,elementName,source,customizations);
}

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

public CClassInfo(Model model,JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  this(model,model.getPackage(pkg),shortName,location,typeName,elementName,source,customizations);
}

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

public CClassInfo(Model model,JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  this(model,model.getPackage(pkg),shortName,location,typeName,elementName,source,customizations);
}

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

public CClassInfo(Model model,JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  this(model,model.getPackage(pkg),shortName,location,typeName,elementName,source,customizations);
}

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

public CClassInfo(Model model,JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  this(model,model.getPackage(pkg),shortName,location,typeName,elementName,source,customizations);
}

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

public CClassInfo(Model model,JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  super(model,source,location,customizations);
  this.model = model;
  int idx = fullName.indexOf('.');
  if(idx<0) {
    this.parent = model.getPackage(cm.rootPackage());
    this.shortName = model.allocator.assignClassName(parent,fullName);
  } else {
    this.parent = model.getPackage(cm._package(fullName.substring(0,idx)));
    this.shortName = model.allocator.assignClassName(parent,fullName.substring(idx+1));
  }
  this.typeName = typeName;
  this.elementName = elementName;
  model.add(this);
}

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

public CClassInfo(Model model,JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  super(model,source,location,customizations);
  this.model = model;
  int idx = fullName.indexOf('.');
  if(idx<0) {
    this.parent = model.getPackage(cm.rootPackage());
    this.shortName = model.allocator.assignClassName(parent,fullName);
  } else {
    this.parent = model.getPackage(cm._package(fullName.substring(0,idx)));
    this.shortName = model.allocator.assignClassName(parent,fullName.substring(idx+1));
  }
  this.typeName = typeName;
  this.elementName = elementName;
  model.add(this);
}

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

public CClassInfo(Model model,JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  super(model,source,location,customizations);
  this.model = model;
  int idx = fullName.indexOf('.');
  if(idx<0) {
    this.parent = model.getPackage(cm.rootPackage());
    this.shortName = model.allocator.assignClassName(parent,fullName);
  } else {
    this.parent = model.getPackage(cm._package(fullName.substring(0,idx)));
    this.shortName = model.allocator.assignClassName(parent,fullName.substring(idx+1));
  }
  this.typeName = typeName;
  this.elementName = elementName;
  model.add(this);
}

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

public CClassInfo(Model model,JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  super(model,source,location,customizations);
  this.model = model;
  int idx = fullName.indexOf('.');
  if(idx<0) {
    this.parent = model.getPackage(cm.rootPackage());
    this.shortName = model.allocator.assignClassName(parent,fullName);
  } else {
    this.parent = model.getPackage(cm._package(fullName.substring(0,idx)));
    this.shortName = model.allocator.assignClassName(parent,fullName.substring(idx+1));
  }
  this.typeName = typeName;
  this.elementName = elementName;
  model.add(this);
}

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

public CClassInfo(Model model,JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
  super(model,source,location,customizations);
  this.model = model;
  int idx = fullName.indexOf('.');
  if(idx<0) {
    this.parent = model.getPackage(cm.rootPackage());
    this.shortName = model.allocator.assignClassName(parent,fullName);
  } else {
    this.parent = model.getPackage(cm._package(fullName.substring(0,idx)));
    this.shortName = model.allocator.assignClassName(parent,fullName.substring(idx+1));
  }
  this.typeName = typeName;
  this.elementName = elementName;
  model.add(this);
}

相关文章