Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.importer.fetcher.transformers

public Class ScholarArchiveQueryTransformer

extends AbstractQueryTransformer
Class Inheritance

This class extends the AbstractQueryTransformer to provide specific implementations for transforming standard queries into ones suitable for the Scholar Archive's unique format.

Field Summary

Inherited from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer:
endYearNO_EXPLICIT_FIELDstartYear

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
getLogicalAndOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator

Example: " AND "

protected String
getLogicalNotOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Returns the logical NOT operator used by the library

Example: "!"

protected String
getLogicalOrOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator

Example: " OR "

protected String
handleAuthor(String author)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Return a string representation of the author fielded term

protected String
handleJournal(String journalTitle)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Return a string representation of the journal fielded term

protected String
handleTitle(String title)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Return a string representation of the title fielded term

protected String

Returns:

A string query segment formatted for the year search.
handleYear
(String
the publication year to be searched in the Scholar Archive.
year
)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYear.

Handles the year query by formatting it specifically for a range search in the Scholar Archive.

protected String

Returns:

A string query segment formatted for the year range search.
handleYearRange
(String
the range of years to be searched in the Scholar Archive, usually in the format "startYear-endYear".
yearRange
)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYearRange.

Handles a year range query, transforming it for the Scholar Archive's query format.

Inherited from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer:
createKeyValuePaircreateKeyValuePairhandleDoihandleOtherFieldhandleUnFieldedTermparseYearRangetransformtransformtransformSearchQuery

Constructor Detail

ScholarArchiveQueryTransformerback to summary
public ScholarArchiveQueryTransformer()

Method Detail

getLogicalAndOperatorback to summary
protected String getLogicalAndOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator

Example: " AND "

Annotations
@Override
getLogicalNotOperatorback to summary
protected String getLogicalNotOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Returns the logical NOT operator used by the library

Example: "!"

Annotations
@Override
getLogicalOrOperatorback to summary
protected String getLogicalOrOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator

Example: " OR "

Annotations
@Override
handleAuthorback to summary
protected String handleAuthor(String author)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Return a string representation of the author fielded term

Annotations
@Override
handleJournalback to summary
protected String handleJournal(String journalTitle)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Return a string representation of the journal fielded term

Annotations
@Override
handleTitleback to summary
protected String handleTitle(String title)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Return a string representation of the title fielded term

Annotations
@Override
handleYearback to summary
protected String handleYear(String year)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYear.

Handles the year query by formatting it specifically for a range search in the Scholar Archive. This method is for an exact year match.

Parameters
year:String

the publication year to be searched in the Scholar Archive.

Returns:String

A string query segment formatted for the year search.

Annotations
@Override
handleYearRangeback to summary
protected String handleYearRange(String yearRange)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYearRange.

Handles a year range query, transforming it for the Scholar Archive's query format. If only a start year is provided, the range will extend to the current year.

Parameters
yearRange:String

the range of years to be searched in the Scholar Archive, usually in the format "startYear-endYear".

Returns:String

A string query segment formatted for the year range search.

Annotations
@Override