Show
Ignore:
Timestamp:
08/07/09 17:35:44 (3 years ago)
Author:
jgao
Message:

Picr onlyActive getter setter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/picr/src/org/bridgedb/webservice/picr/IDMapperPicr.java

    r132 r148  
    4646        } 
    4747 
    48     private final boolean onlyActive; 
     48    private boolean onlyActive; 
    4949     
    5050    private Set<DataSource> supportedDatabases = new HashSet<DataSource>(); 
    5151    private PICRClient client; 
    52      
    53     IDMapperPicr(boolean onlyActive) 
     52 
     53    /** 
     54     * 
     55     * @param onlyActive using only active mappings if true 
     56     */ 
     57    public IDMapperPicr(boolean onlyActive) 
    5458    { 
    5559        client = new PICRClient(); 
     
    6064        this.onlyActive = onlyActive; 
    6165    } 
    62      
    63         private static class Driver implements org.bridgedb.Driver  
     66 
     67    /** 
     68     * 
     69     * @return true if using only active mappings; false otherwise 
     70     */ 
     71    public boolean getOnlyActive() { 
     72        return onlyActive; 
     73    } 
     74 
     75    /** 
     76     * 
     77     * @param onlyActive using only active mappings if true 
     78     */ 
     79    public void setOnlyActive(boolean onlyActive) { 
     80        this.onlyActive = onlyActive; 
     81    } 
     82 
     83    private static class Driver implements org.bridgedb.Driver 
    6484        { 
    6585        private Driver() { } // prevent outside instantiation