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

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

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

Model.getCustomizations介绍

[英]Gets the global customizations.
[中]

代码示例

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/tools

public static CCustomizations getCustomizations(final Model model) {
  final CCustomizations main = new CCustomizations(model
      .getCustomizations());
  return main;
}

代码示例来源:origin: org.jvnet.jaxb2_commons/tools

public static CCustomizations getCustomizations(final Model model) {
  final CCustomizations main = new CCustomizations(model
      .getCustomizations());
  return main;
}

代码示例来源:origin: org.jvnet.jaxb2_commons/jaxb2-basics-tools

public static CCustomizations getCustomizations(final Model model) {
  final CCustomizations main = new CCustomizations(model.getCustomizations());
  return main;
}

代码示例来源:origin: mklemm/jaxb2-rich-contract-plugin

public <T> T getCustomization(final Class<T> customizationClass, final Deque<CCustomizable> schemaComponents) {
  final QName qName = getQName(customizationClass);
  if (!schemaComponents.isEmpty()) {
    final CCustomizable schemaComponent = schemaComponents.pop();
    final CPluginCustomization pluginCustomization = schemaComponent.getCustomizations().find(qName.getNamespaceURI(), qName.getLocalPart());
    if (pluginCustomization == null) {
      return getCustomization(customizationClass, schemaComponents);
    } else {
      pluginCustomization.markAsAcknowledged();
      return JAXB.unmarshal(new DOMSource(pluginCustomization.element), customizationClass);
    }
  } else {
    final CPluginCustomization pluginCustomization = this.outline.getModel().getCustomizations().find(qName.getNamespaceURI(), qName.getLocalPart());
    if (pluginCustomization != null) {
      pluginCustomization.markAsAcknowledged();
      return JAXB.unmarshal(new DOMSource(pluginCustomization.element), customizationClass);
    } else {
      return null;
    }
  }
}

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

model.getCustomizations().addAll(getGlobalCustomizations());

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

model.getCustomizations().addAll(getGlobalCustomizations());

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

model.getCustomizations().addAll(getGlobalCustomizations());

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

model.getCustomizations().addAll(getGlobalCustomizations());

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

model.getCustomizations().addAll(getGlobalCustomizations());

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

model.getCustomizations().addAll(bi.toCustomizationList());

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

model.getCustomizations().addAll(bi.toCustomizationList());

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

model.getCustomizations().addAll(bi.toCustomizationList());

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

model.getCustomizations().addAll(bi.toCustomizationList());

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

model.getCustomizations().addAll(bi.toCustomizationList());

相关文章