question: private void extract ( Detail detail , DefaultType access ) throws Exception { List < FieldDetail > fields = detail . getFields ( ) ; if ( access == FIELD ) { for ( FieldDetail entry : fields ) { Annotation [ ] list = entry . getAnnotations ( ) ; Field field = entry . getField ( ) ; Class real = field . getType ( ) ; if ( ! isStatic ( field ) && ! isTransient ( field ) ) { process ( field , real , list ) ; } } } }
target:  This is used to scan all the fields of the class in order to determine if it should have a default annotation. If the field should have a default XML annotation then it is added to the list of contacts to be used to form the class schema.