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);
      }
    }
  }
}

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 ) ; } } } }
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 .
