本文整理了Java中com.sun.tools.xjc.model.Model.getCustomizations()
方法的一些代码示例,展示了Model.getCustomizations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getCustomizations()
方法的具体详情如下:
包路径:com.sun.tools.xjc.model.Model
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!