/** * If the method has an explicit annotation, allow it to participate * to the processing even if it lacks the setter or the getter. */ private void resurrect(Map<String, M> methods, Set<String> complete) { for (Map.Entry<String, M> e : methods.entrySet()) { if(complete.contains(e.getKey())) continue; if(hasJAXBAnnotation(reader().getAllMethodAnnotations(e.getValue(),this))) complete.add(e.getKey()); } }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
M setter = setters.get(name); Annotation[] ga = getter!=null ? reader().getAllMethodAnnotations(getter,new MethodLocatable<M>(this,getter,nav())) : EMPTY_ANNOTATIONS; Annotation[] sa = setter!=null ? reader().getAllMethodAnnotations(setter,new MethodLocatable<M>(this,setter,nav())) : EMPTY_ANNOTATIONS;
/** * If the method has an explicit annotation, allow it to participate * to the processing even if it lacks the setter or the getter. */ private void resurrect(Map<String, M> methods, Set<String> complete) { for (Map.Entry<String, M> e : methods.entrySet()) { if(complete.contains(e.getKey())) continue; if(hasJAXBAnnotation(reader().getAllMethodAnnotations(e.getValue(),this))) complete.add(e.getKey()); } }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
M setter = setters.get(name); Annotation[] ga = getter!=null ? reader().getAllMethodAnnotations(getter,new MethodLocatable<M>(this,getter,nav())) : EMPTY_ANNOTATIONS; Annotation[] sa = setter!=null ? reader().getAllMethodAnnotations(setter,new MethodLocatable<M>(this,setter,nav())) : EMPTY_ANNOTATIONS;
/** * If the method has an explicit annotation, allow it to participate * to the processing even if it lacks the setter or the getter. */ private void resurrect(Map<String, M> methods, Set<String> complete) { for (Map.Entry<String, M> e : methods.entrySet()) { if(complete.contains(e.getKey())) continue; if(hasJAXBAnnotation(reader().getAllMethodAnnotations(e.getValue(),this))) complete.add(e.getKey()); } }
/** * If the method has an explicit annotation, allow it to participate * to the processing even if it lacks the setter or the getter. */ private void resurrect(Map<String, M> methods, Set<String> complete) { for (Map.Entry<String, M> e : methods.entrySet()) { if(complete.contains(e.getKey())) continue; if(hasJAXBAnnotation(reader().getAllMethodAnnotations(e.getValue(),this))) complete.add(e.getKey()); } }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
M setter = setters.get(name); Annotation[] ga = getter!=null ? reader().getAllMethodAnnotations(getter,new MethodLocatable<M>(this,getter,nav())) : EMPTY_ANNOTATIONS; Annotation[] sa = setter!=null ? reader().getAllMethodAnnotations(setter,new MethodLocatable<M>(this,setter,nav())) : EMPTY_ANNOTATIONS;
M setter = setters.get(name); Annotation[] ga = getter!=null ? reader().getAllMethodAnnotations(getter,new MethodLocatable<M>(this,getter,nav())) : EMPTY_ANNOTATIONS; Annotation[] sa = setter!=null ? reader().getAllMethodAnnotations(setter,new MethodLocatable<M>(this,setter,nav())) : EMPTY_ANNOTATIONS;