Changeset 307
- Timestamp:
- 02/19/10 06:56:50 (5 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
corelib/src/org/bridgedb/AttributeMapper.java (modified) (1 diff)
-
corelib/src/org/bridgedb/IDMapperStack.java (modified) (2 diffs)
-
corelib/src/org/bridgedb/rdb/SimpleGdbImpl2.java (modified) (1 diff)
-
corelib/src/org/bridgedb/rdb/SimpleGdbImpl3.java (modified) (1 diff)
-
corelib/src/org/bridgedb/webservice/biomart/IDMapperBiomart.java (modified) (1 diff)
-
corelib/src/org/bridgedb/webservice/bridgerest/BridgeRest.java (modified) (1 diff)
-
picr/src/org/bridgedb/webservice/picr/IDMapperPicr.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/corelib/src/org/bridgedb/AttributeMapper.java
r283 r307 44 44 public Map<String, Set<String>> getAttributes(Xref ref) throws IDMapperException; 45 45 46 /** 47 * 48 * @return true if free attribute search is supported, false otherwise. 49 */ 50 public boolean isFreeAttributeSearchSupported(); 51 46 52 /** 47 53 * free text search for matching symbols. -
trunk/corelib/src/org/bridgedb/IDMapperStack.java
r291 r307 341 341 } 342 342 343 /** 344 * @return true if free attribute search is supported by one of the children 345 */ 346 public boolean isFreeAttributeSearchSupported() 347 { 348 // returns true if any returns true 349 // TODO: not sure if this is the right logic? 350 for (IDMapper child : IDMapperStack.this.gdbs) 351 { 352 if (child != null && child instanceof AttributeMapper) 353 { 354 if (((AttributeMapper)child).isFreeAttributeSearchSupported()) 355 return true; 356 } 357 } 358 return false; 359 } 360 343 361 /** {@inheritDoc} */ 344 362 public Map<Xref, String> freeAttributeSearch (String query, String attrType, int limit) throws IDMapperException … … 347 365 for (IDMapper child : gdbs) 348 366 { 349 if (child != null && child instanceof AttributeMapper && child.isConnected()) 367 if (child != null && child instanceof AttributeMapper && child.isConnected() 368 && ((AttributeMapper)child).isFreeAttributeSearchSupported()) 350 369 { 351 370 Map<Xref, String> childResult = -
trunk/corelib/src/org/bridgedb/rdb/SimpleGdbImpl2.java
r289 r307 661 661 662 662 /** 663 * 664 * @return true 665 */ 666 public boolean isFreeAttributeSearchSupported() 667 { 668 return true; 669 } 670 671 /** 663 672 * free text search for matching symbols. 664 673 * @return references that match the query -
trunk/corelib/src/org/bridgedb/rdb/SimpleGdbImpl3.java
r288 r307 581 581 } catch (SQLException e) { throw new IDMapperException ("Xref:" + ref, e); } // Database unavailable 582 582 } 583 584 /** 585 * 586 * @return true 587 */ 588 public boolean isFreeAttributeSearchSupported() 589 { 590 return true; 591 } 583 592 584 593 /** -
trunk/corelib/src/org/bridgedb/webservice/biomart/IDMapperBiomart.java
r297 r307 370 370 371 371 /** 372 * 373 * @return false 374 */ 375 public boolean isFreeAttributeSearchSupported() 376 { 377 return false; 378 } 379 380 /** 372 381 * {@inheritDoc} 373 382 */ -
trunk/corelib/src/org/bridgedb/webservice/bridgerest/BridgeRest.java
r298 r307 409 409 } 410 410 411 /** 412 * 413 * @return true 414 */ 415 public boolean isFreeAttributeSearchSupported() 416 { 417 return true; 418 } 419 411 420 /** {@inheritDoc} */ 412 421 public Map<Xref, String> freeAttributeSearch(String query, String attrType, -
trunk/picr/src/org/bridgedb/webservice/picr/IDMapperPicr.java
r252 r307 202 202 } 203 203 204 /** 205 * 206 * @return false 207 */ 208 public boolean isFreeAttributeSearchSupported() 209 { 210 return false; 211 } 212 204 213 public Map<Xref, String> freeAttributeSearch(String query, String attrType, 205 214 int limit) throws IDMapperException
