Verified Owner
Top Description Fields Constructors Methods
org.jabref.model.entry.identifier

public Class SSRN

extends EprintIdentifier
Class Inheritance
Annotations
@AllowedToUseLogic:Because URL utility is needed
Imports
java.net.URI, java.util.Optional, java.util.regex.Matcher, .Pattern, org.jabref.architecture.AllowedToUseLogic, org.jabref.logic.util.URLUtil, org.jspecify.annotations.NonNull

Represents an SSRN article, identified by its abstract ID.

Field Summary

Modifier and TypeField and Description
private final Integer
private static final Pattern
private static final Pattern
private static final String

Constructor Summary

AccessConstructor and Description
public
SSRN(@NonNull String
Either a number or a SSRN url that has the abstract ID in it
string
)

Tries to parse an SSRN identifier

public
SSRN(Integer abstractId)

Method Summary

Modifier and TypeMethod and Description
public String
asString()

Implements org.jabref.model.entry.identifier.Identifier.asString.

Returns the identifier as String

public Optional<URI>
public static Optional<SSRN>
parse(String data)

public DOI

Returns:

a DOI formatted as 10.2139/ssrn.[article]
toDoi
()

Generate the DOI based on the SSRN

Inherited from org.jabref.model.entry.identifier.EprintIdentifier:
getDefaultField

Field Detail

abstractIdback to summary
private final Integer abstractId
SSRN_URL_FULL_MATCHback to summary
private static final Pattern SSRN_URL_FULL_MATCH
SSRN_URL_MATCHback to summary
private static final Pattern SSRN_URL_MATCH
SSRN_URL_REGEXback to summary
private static final String SSRN_URL_REGEX

Constructor Detail

SSRNback to summary
public SSRN(@NonNull String string)

Tries to parse an SSRN identifier

Parameters
string:@NonNull String

Either a number or a SSRN url that has the abstract ID in it

Exceptions
NullPointerException:
If you pass a null to the constructor
IllegalArgumentException:
Invalid string passed to the constructor
SSRNback to summary
public SSRN(Integer abstractId)

Method Detail

asStringback to summary
public String asString()

Implements org.jabref.model.entry.identifier.Identifier.asString.

Doc from org.jabref.model.entry.identifier.Identifier.asString.

Returns the identifier as String

Annotations
@Override
getExternalURIback to summary
public Optional<URI> getExternalURI()

Implements org.jabref.model.entry.identifier.Identifier.getExternalURI.

Annotations
@Override
parseback to summary
public static Optional<SSRN> parse(String data)
toDoiback to summary
public DOI toDoi()

Generate the DOI based on the SSRN

Returns:DOI

a DOI formatted as 10.2139/ssrn.[article]