public class SPIRESFetcher extends java.lang.Object implements EntryFetcher
| Constructor and Description |
|---|
SPIRESFetcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled() |
java.lang.String |
constructUrl(java.lang.String key)
Construct the query URL
|
static java.lang.String |
constructUrlFromEprint(java.lang.String eprint)
Construct an SPIRES query url from eprint field
|
static java.lang.String |
constructUrlFromSlaccitation(java.lang.String slaccitation)
Constructs a SPIRES query url from slaccitation field
|
void |
done(int entriesImported) |
java.lang.String |
getHelpPage()
Get the name of the help page for this activeFetcher.
|
java.net.URL |
getIcon()
Get the appropriate icon URL for this activeFetcher.
|
java.lang.String |
getKeyName()
Get the name of the key binding for this activeFetcher, if any.
|
javax.swing.JPanel |
getOptionsPanel()
If this activeFetcher requires additional options, a panel for setting up these
should be returned in a JPanel by this method.
|
java.lang.String |
getTitle()
The title for this activeFetcher, displayed in the menu and in the side pane.
|
boolean |
processQuery(java.lang.String query,
ImportInspector dialog,
OutputPrinter frame)
Handle a query entered by the user.
|
void |
stopFetching()
This method is called by the dialog when the user has cancelled or
signalled a stop.
|
public java.lang.String constructUrl(java.lang.String key)
key - The key of the OAI2 entry that the url should poitn to.public static java.lang.String constructUrlFromSlaccitation(java.lang.String slaccitation)
slaccitation - public static java.lang.String constructUrlFromEprint(java.lang.String eprint)
eprint - public java.lang.String getHelpPage()
EntryFetchergetHelpPage in interface EntryFetcherpublic java.net.URL getIcon()
EntryFetchergetIcon in interface EntryFetcherpublic java.lang.String getKeyName()
EntryFetchergetKeyName in interface EntryFetcherpublic javax.swing.JPanel getOptionsPanel()
EntryFetchergetOptionsPanel in interface EntryFetcherpublic java.lang.String getTitle()
EntryFetchergetTitle in interface EntryFetcherpublic void cancelled()
public void done(int entriesImported)
public void stopFetching()
ImportInspectionDialog.CallBackstopFetching in interface ImportInspectionDialog.CallBackpublic boolean processQuery(java.lang.String query,
ImportInspector dialog,
OutputPrinter frame)
EntryFetcherprocessQuery in interface EntryFetcherquery - The query text.dialog - The dialog to add imported entries to.frame - An OutputPrinter passed to the activeFetcher for reporting about the
status of the fetching.