Project

General

Profile

« Previous | Next » 

Revision 4409

Added by Jing Tao about 16 years ago

Add new variable to see if resolver download a new schema.

View differences:

src/edu/ucsb/nceas/metacat/SchemaLocationResolver.java
65 65
  //private String schemaFileName = null;
66 66
  // constant
67 67
  //private String SCHEMATYPE ="Schema"; 
68
  private String WHITESPACESTRING =" ";                                                         
68
  private String WHITESPACESTRING =" ";   
69
  private boolean downloadNewSchema = false;
69 70

  
70 71
  private static Logger logMetacat = Logger.getLogger(SchemaLocationResolver.class);
71 72

  
......
117 118
       
118 119
        // reigister schema
119 120
        registerSchema(newURLInMetacat);
121
        downloadNewSchema = true;
120 122
     
121 123
       }
122 124
       catch(Exception e)
......
440 442
                                e.getMessage());
441 443
     }
442 444
  }
445
  
446
  /**
447
   * Gets the downloadNewSchema's value.
448
   * @return
449
   */
450
 public boolean getDownloadNewSchema()
451
 {
452
	 return this.downloadNewSchema;
453
 }
443 454
}

Also available in: Unified diff