static < T > T getAnnotationAttribute ( ModelWithAnnotation model , Class < ? extends Annotation > annotation , AnnotationAttributeType attribute , T defaultValue , OnAnnotationAttributeListener < T > listener ) { String attributeResult ; ModelAnnotation item = model . getAnnotation ( annotation ) ; if ( item != null ) { attributeResult = item . getAttribute ( attribute ) ; return listener . onFound ( attributeResult ) ; } return defaultValue ; }
Gets the annotation attribute .