public ElementInfoImpl<T,C,F,M> getElementInfo( C scope, QName name ) { while(scope!=null) { Map<QName,ElementInfoImpl<T,C,F,M>> m = elementMappings.get(scope); if(m!=null) { ElementInfoImpl<T,C,F,M> r = m.get(name); if(r!=null) return r; } scope = nav.getSuperClass(scope); } return elementMappings.get(null).get(name); }
public ClassInfoImpl<T,C,F,M> getBaseClass() { if (!baseClassComputed) { // compute the base class C s = nav().getSuperClass(clazz); if(s==null || s==nav().asDecl(Object.class)) { baseClass = null; } else { NonElement<T,C> b = builder.getClassInfo(s, true, this); if(b instanceof ClassInfoImpl) { baseClass = (ClassInfoImpl<T,C,F,M>) b; baseClass.hasSubClasses = true; } else { baseClass = null; } } baseClassComputed = true; } return baseClass; }
C sc = nav().getSuperClass(c); if(shouldRecurseSuperClass(sc)) collectGetterSetters(sc,getters,setters);
c = nav().getSuperClass(c); } while(shouldRecurseSuperClass(c));
public ElementInfoImpl<T,C,F,M> getElementInfo( C scope, QName name ) { while(scope!=null) { Map<QName,ElementInfoImpl<T,C,F,M>> m = elementMappings.get(scope); if(m!=null) { ElementInfoImpl<T,C,F,M> r = m.get(name); if(r!=null) return r; } scope = nav.getSuperClass(scope); } return elementMappings.get(null).get(name); }
if(reader.hasClassAnnotation(clazz,XmlTransient.class) || isReplaced) { r = getClassInfo( nav.getSuperClass(clazz), searchForSuperClass, new ClassLocatable<C>(upstream,clazz,nav) ); } else {
private void findFieldProperties(C c, XmlAccessType at) { C sc = nav().getSuperClass(c); if (shouldRecurseSuperClass(sc)) { findFieldProperties(sc,at);
public ClassInfoImpl<T,C,F,M> getBaseClass() { if (!baseClassComputed) { // compute the base class C s = nav().getSuperClass(clazz); if(s==null || s==nav().asDecl(Object.class)) { baseClass = null; } else { NonElement<T,C> b = builder.getClassInfo(s, true, this); if(b instanceof ClassInfoImpl) { baseClass = (ClassInfoImpl<T,C,F,M>) b; baseClass.hasSubClasses = true; } else { baseClass = null; } } baseClassComputed = true; } return baseClass; }
C sc = nav().getSuperClass(c); if(shouldRecurseSuperClass(sc)) collectGetterSetters(sc,getters,setters);
c = nav().getSuperClass(c); } while(shouldRecurseSuperClass(c));
public ElementInfoImpl<T,C,F,M> getElementInfo( C scope, QName name ) { while(scope!=null) { Map<QName,ElementInfoImpl<T,C,F,M>> m = elementMappings.get(scope); if(m!=null) { ElementInfoImpl<T,C,F,M> r = m.get(name); if(r!=null) return r; } scope = nav.getSuperClass(scope); } return elementMappings.get(null).get(name); }
public ElementInfoImpl<T,C,F,M> getElementInfo( C scope, QName name ) { while(scope!=null) { Map<QName,ElementInfoImpl<T,C,F,M>> m = elementMappings.get(scope); if(m!=null) { ElementInfoImpl<T,C,F,M> r = m.get(name); if(r!=null) return r; } scope = nav.getSuperClass(scope); } return elementMappings.get(null).get(name); }
if(reader.hasClassAnnotation(clazz,XmlTransient.class) || isReplaced) { r = getClassInfo( nav.getSuperClass(clazz), searchForSuperClass, new ClassLocatable<C>(upstream,clazz,nav) ); } else {
private void findFieldProperties(C c, XmlAccessType at) { C sc = nav().getSuperClass(c); if (shouldRecurseSuperClass(sc)) { findFieldProperties(sc,at);
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
private void getExceptionProperties(C exception, TreeMap<String, A> fields, boolean decapitalize) { C sc = nav.getSuperClass(exception); if (sc != null) { getExceptionProperties(sc, fields, decapitalize); } Collection<? extends M> methods = nav.getDeclaredMethods(exception); for (M method : methods) { // 2.1.x is doing the following: no final static, transient, non-public // transient cannot used as modifier for method, so not doing it now if (!nav.isPublicMethod(method) || (nav.isStaticMethod(method) && nav.isFinalMethod(method))) { continue; } if (!nav.isPublicMethod(method)) { continue; } String name = nav.getMethodName(method); if (!(name.startsWith("get") || name.startsWith("is")) || skipProperties.contains(name) || name.equals("get") || name.equals("is")) { // Don't bother with invalid propertyNames. continue; } T returnType = getSafeType(nav.getReturnType(method)); if (nav.getMethodParameters(method).length == 0) { String fieldName = name.startsWith("get") ? name.substring(3) : name.substring(2); if (decapitalize) fieldName = StringUtils.decapitalize(fieldName); fields.put(fieldName, factory.createWrapperBeanMember(returnType, fieldName, Collections.<Annotation>emptyList())); } } }
public ClassInfoImpl<T,C,F,M> getBaseClass() { if (!baseClassComputed) { // compute the base class C s = nav().getSuperClass(clazz); if(s==null || s==nav().asDecl(Object.class)) { baseClass = null; } else { NonElement<T,C> b = builder.getClassInfo(s, true, this); if(b instanceof ClassInfoImpl) { baseClass = (ClassInfoImpl<T,C,F,M>) b; baseClass.hasSubClasses = true; } else { baseClass = null; } } baseClassComputed = true; } return baseClass; }
public ClassInfoImpl<T,C,F,M> getBaseClass() { if (!baseClassComputed) { // compute the base class C s = nav().getSuperClass(clazz); if(s==null || s==nav().asDecl(Object.class)) { baseClass = null; } else { NonElement<T,C> b = builder.getClassInfo(s, true, this); if(b instanceof ClassInfoImpl) { baseClass = (ClassInfoImpl<T,C,F,M>) b; baseClass.hasSubClasses = true; } else { baseClass = null; } } baseClassComputed = true; } return baseClass; }
private void findFieldProperties(C c, XmlAccessType at) { C sc = nav().getSuperClass(c); if (shouldRecurseSuperClass(sc)) { findFieldProperties(sc,at);