Java Code Examples for com.sun.tools.xjc.model.CCustomizations#find()
The following examples show how to use
com.sun.tools.xjc.model.CCustomizations#find() .
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: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(ClassOutline classOutline, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(classOutline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 2
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(EnumOutline classOutline, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(classOutline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 3
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(ElementOutline elementOutline, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(elementOutline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 4
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(CClassInfo classInfo, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(classInfo); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 5
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(CEnumLeafInfo enumLeafInfo, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(enumLeafInfo); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 6
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(CElementInfo elementInfo, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(elementInfo); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 7
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(FieldOutline fieldOutline, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(fieldOutline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 8
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(CPropertyInfo propertyInfo, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(propertyInfo); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 9
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(Outline outline, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(outline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 10
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPluginCustomization findCustomization(Model model, QName name) { final CCustomizations customizations = CustomizationUtils.getCustomizations(model); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) { customization.markAsAcknowledged(); } return customization; }
Example 11
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static FieldOutline findFieldWithCustomization(ClassOutline classOutline, final QName name) { for (final FieldOutline fieldOutline : classOutline.getDeclaredFields()) { final CCustomizations customizations = getCustomizations(fieldOutline); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) return fieldOutline; } return null; }
Example 12
Source File: CustomizationUtils.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
public static CPropertyInfo findPropertyWithCustomization(CClassInfo classInfo, final QName name) { for (final CPropertyInfo propertyInfo : classInfo.getProperties()) { final CCustomizations customizations = getCustomizations(propertyInfo); final CPluginCustomization customization = customizations.find(name.getNamespaceURI(), name.getLocalPart()); if (customization != null) return propertyInfo; } return null; }