net.datacrow.core.services
Class IsbnSearchMode
java.lang.Object
net.datacrow.core.services.SearchMode
net.datacrow.core.services.IsbnSearchMode
public abstract class IsbnSearchMode
- extends SearchMode
A search mode indicates a specific search such as a title, isbn, ean search.
- Author:
- Robert Jan van der Waals
Method Summary |
java.lang.String |
getDisplayName()
|
java.lang.String |
getIsbn(java.lang.String s)
|
boolean |
keywordSearch()
Indicates whether the search is a free form search (such as a title search). |
boolean |
singleIsPerfect()
Indicates if a match should be considered as perfect when only one result is
retrieved. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsbnSearchMode
public IsbnSearchMode(int fieldBinding)
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in class SearchMode
getIsbn
public java.lang.String getIsbn(java.lang.String s)
toString
public java.lang.String toString()
- Overrides:
toString
in class SearchMode
singleIsPerfect
public boolean singleIsPerfect()
- Indicates if a match should be considered as perfect when only one result is
retrieved. This is useful for ISBN and EAN searches. This is used for the
'Automatically add or update the item when a perfect match has occurred' setting.
- Specified by:
singleIsPerfect
in class SearchMode
keywordSearch
public boolean keywordSearch()
- Indicates whether the search is a free form search (such as a title search).
ISBN, EAN and other specific search modes should set this method to return false.
- Specified by:
keywordSearch
in class SearchMode