public Class scope() { return core.scope(); }
public Class scope() { return core.scope(); }
@Override public Class<?> call() throws Exception { return elementDecl.scope(); } }, this.env, XmlElementDecl.GLOBAL.class);
@Override public Class<?> call() throws Exception { return elementDecl.scope(); } }, this.env, XmlElementDecl.GLOBAL.class);
public Class scope() { return core.scope(); }
public Class scope() { return core.scope(); }
private static boolean checkObjectFactoryNamespaces(Class<?> clz) { for (Method meth : clz.getMethods()) { XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class); if (decl != null && XmlElementDecl.GLOBAL.class.equals(decl.scope()) && StringUtils.isEmpty(decl.namespace())) { return true; } } return false; }
private static boolean checkObjectFactoryNamespaces(Class<?> clz) { for (Method meth : clz.getMethods()) { XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class); if (decl != null && XmlElementDecl.GLOBAL.class.equals(decl.scope()) && StringUtils.isEmpty(decl.namespace())) { return true; } } return false; }
private static boolean checkObjectFactoryNamespaces(Class<?> clz) { for (Method meth : clz.getMethods()) { XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class); if (decl != null && XmlElementDecl.GLOBAL.class.equals(decl.scope()) && StringUtils.isEmpty(decl.namespace())) { return true; } } return false; }
private static boolean checkObjectFactoryNamespaces(Class<?> clz) { for (Method meth : clz.getMethods()) { XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class); if (decl != null && XmlElementDecl.GLOBAL.class.equals(decl.scope()) && StringUtils.isEmpty(decl.namespace())) { return true; } } return false; }
private static boolean checkObjectFactoryNamespaces(Class<?> clz) { for (Method meth : clz.getMethods()) { XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class); if (decl != null && XmlElementDecl.GLOBAL.class.equals(decl.scope()) && StringUtils.isEmpty(decl.namespace())) { return true; } } return false; }
/** * The scope of the local element. * * @return The scope of the local element. */ public TypeDeclaration getElementScope() { TypeDeclaration declaration = null; try { if (elementDecl.scope() != XmlElementDecl.GLOBAL.class) { Class typeClass = elementDecl.scope(); declaration = getEnv().getTypeDeclaration(typeClass.getName()); } } catch (MirroredTypeException e) { //This exception implies the ref is within the source base. TypeMirror typeMirror = e.getTypeMirror(); if (typeMirror instanceof DeclaredType) { declaration = ((DeclaredType) typeMirror).getDeclaration(); } } return declaration; }
url = elementDecl.namespace(); localName = elementDecl.name(); scopeClass = elementDecl.scope(); if (!elementDecl.substitutionHeadName().equals(EMPTY_STRING)) { String subHeadLocal = elementDecl.substitutionHeadName();
url = elementDecl.namespace(); localName = elementDecl.name(); scopeClass = elementDecl.scope(); if (!elementDecl.substitutionHeadName().equals(EMPTY_STRING)) { String subHeadLocal = elementDecl.substitutionHeadName();