Java Code Examples for com.sun.tools.xjc.model.CClassRef#fullName()
The following examples show how to use
com.sun.tools.xjc.model.CClassRef#fullName() .
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: DefaultProcessPropertyInfos.java From hyperjaxb3 with BSD 2-Clause "Simplified" License | 6 votes |
public boolean isSelfOrAncestorRootClass(ProcessModel context, CClassRef classRef) { final String className = classRef.fullName(); try { final Class<?> referencedClass = Class.forName(className); return isSelfOrAncestorRootClass(referencedClass); } catch (ClassNotFoundException cnfex) { logger.warn("Referenced class [" + className + "] could not be found, this may lead to incorrect generation of the identifier fields."); return true; } }
Example 2
Source File: XJCCMInfoFactory.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
protected MContainer getContainer(CClassRef info) { final String fullName = info.fullName(); try { final Class<?> _class = Class.forName(fullName); return getContainer(_class); } catch (ClassNotFoundException cnfex) { return getPackage(info); } }
Example 3
Source File: XJCCMInfoFactory.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
protected String getLocalName(CClassRef info) { final String fullName = info.fullName(); try { final Class<?> _class = Class.forName(fullName); return getLocalName(_class); } catch (ClassNotFoundException cnfex) { return getLocalName(fullName); } }
Example 4
Source File: SimplifyPlugin.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 5 votes |
private String createPropertyName(final Model model, CPropertyInfo propertyInfo, CElement element) { final String localPart; if (element instanceof CClassRef) { final CClassRef classRef = (CClassRef) element; final String fullName = classRef.fullName(); localPart = fullName.substring(fullName.lastIndexOf('.') + 1); } else { localPart = element.getElementName().getLocalPart(); } final String propertyName = model.getNameConverter().toPropertyName( pluralizeIfNecessary(propertyInfo, localPart)); return propertyName; }
Example 5
Source File: XJCCMInfoFactory.java From jaxb2-basics with BSD 2-Clause "Simplified" License | 4 votes |
protected MPackageInfo getPackage(CClassRef info) { final String fullName = info.fullName(); return getPackage(fullName); }